Commands Flashcards
clear
Clears the terminal screen
reset
Resets your terminal to use default settings
who
Displays currently logged-in users
w
Displays currently logged-in users and their tasks
whoami
Displays your login name
id
Displays the numbers associated with your user account name and group names; these are commonly referred to as User IDs (UIDs) and Group IDs (GIDs)
date
Displays the current date and time
cal
Displays the current calendar month
uname -a
Displays system information
ls
Lists files
exit
Exits out of your current shell
~
Special home directory meta character
man
Displays the manual pages of a given command
poweroff
Powers off the system immediately
halt
Halts your system immediately but does not turn it off
reboot
Reboots the system immediately
shutdown
Can use -p to power off, or -h to halt. Then this will be followed up with +x to indicate how long to wait before powering off/halting, or followed by now to power off/halt the system immediately.