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 »
killall: Send a signal to all processes matching a given name
August 9th, 2024 1:09 PM Mr. Q Categories: Command
Command: killall The killall command sends a specified signal to all processes matching a given name. By default, killall sends the SIGTERM signal, which requests a graceful shutdown of the processes. It is a powerful tool, especially when you need to terminate multiple instances of the same process. Sample Commands […] Read more »
kill: Send a signal to a process to terminate it
August 9th, 2024 1:08 PM Mr. Q Categories: Command
Command: kill The kill command sends a signal to a process, typically to terminate it. By default, kill sends the SIGTERM signal, which requests a graceful shutdown of the process. You can also send other signals, such as SIGKILL, which forces an immediate termination. Sample Commands and Outputs: Description: Description: […] Read more »
ps: Display a snapshot of currently running processes
August 9th, 2024 1:07 PM Mr. Q Categories: Command
Command: ps The ps command provides a snapshot of the current processes running on the system. It shows information like process IDs (PIDs), user ownership, CPU usage, memory usage, and more. The output can be filtered and formatted using various options to display specific details. Sample Command and Output: Description: […] Read more »
uname: Print all information about the current operating system
August 9th, 2024 1:01 PM Mr. Q Categories: Command
uname -a All information: Displays all available system information. Command: uname -a Example Output: The uname command provides information about the system on which it is run. The -a option prints all available system information, including the kernel name, version, and architecture, as well as the system’s hostname. uname -s […] Read more »