userdel: Delete a user account
August 9th, 2024 1:21 PM Mr. Q Categories: Command
Command: userdel The userdel command is used to delete a user account from the system. This command can remove the user’s home directory and mail spool if specified. It requires superuser (root) privileges. Sample Commands and Outputs: Description: Description: Description: Description: Note: The userdel command is used for removing user […] Read more »
useradd: Create a new user account
August 9th, 2024 1:20 PM Mr. Q Categories: Command
Command: useradd The useradd command is used to create a new user account on the system. It allows specifying various options to configure the new user’s home directory, default shell, user ID, and more. This command requires superuser (root) privileges. Sample Commands and Outputs: Description: Description: Description: Description: Description: Note: […] Read more »
usermod: Modify a user account
August 9th, 2024 1:20 PM Mr. Q Categories: Command
Command: usermod The usermod command allows administrators to modify a user’s account details, such as changing the user’s home directory, adding the user to groups, or changing the user’s login name. This command requires superuser (root) privileges. Sample Commands and Outputs: Description: Description: Description: Description: Description: Note: The usermod command […] Read more »
passwd: Change the password for the current user
August 9th, 2024 1:18 PM Mr. Q Categories: Command
Command: passwd The passwd command allows users to change their own password or the password of another user if run with appropriate privileges. When changing your own password, you will be prompted to enter your current password and then the new password. Sample Commands and Outputs: Description: Description: Note: The […] Read more »
whoami: Display the current user’s username
August 9th, 2024 1:18 PM Mr. Q Categories: Command
Command: whoami The whoami command shows the username of the currently logged-in user. It is a simple and quick way to verify which user account is active. Sample Commands and Outputs: Description: Note: The whoami command is particularly useful for scripts and troubleshooting to confirm the identity of the active […] Read more »
who: Display who is currently logged in to the system
August 9th, 2024 1:17 PM Mr. Q Categories: Command
Command: who The who command shows a list of users currently logged into the system. It provides information about the username, terminal, login time, and sometimes the originating IP address or hostname. Sample Commands and Outputs: Description: Description: Description: Description: Note: The who command is useful for monitoring active users […] Read more »
last: Display the login history of users on the system
August 9th, 2024 1:16 PM Mr. Q Categories: Command
Command: last The last command shows a list of the most recent logins to the system. It displays information about the username, the terminal used, the IP address or hostname of the remote system (if applicable), and the time and duration of each login session. Sample Commands and Outputs: Description: […] Read more »
uptime: Display how long the current system session has been running
August 9th, 2024 1:15 PM Mr. Q Categories: Command
Command: uptime The uptime command shows how long the system has been running since the last reboot, along with the current time, the number of users logged in, and the system’s load averages. Sample Commands and Outputs: Description: Description: Description: Description: Description: Note: The uptime command is essential for monitoring […] Read more »
shutdown: Shutdown the system
August 9th, 2024 1:11 PM Mr. Q Categories: Command
Command: shutdown The shutdown command is used to power off or halt the system in an orderly manner. It ensures that all processes are terminated, filesystems are unmounted, and the system is safely powered down. It requires superuser privileges to execute. Sample Commands and Outputs: Description: Description: Description: Description: Note: […] Read more »
reboot: Reboot the system
August 9th, 2024 1:10 PM Mr. Q Categories: Command
Command: reboot The reboot command is used to restart the system. It initiates a shutdown sequence, terminating all running processes, unmounting filesystems, and then rebooting the computer. It requires superuser privileges to execute. Sample Commands and Outputs: Description: Description: Description: Note: The reboot command is essential for system administration, especially […] Read more »