common linux commands Flashcards
(14 cards)
What does the ‘clear’ command do?
Clears the terminal screen
What does the ‘reset’ command do?
Resets your terminal to use default terminal settings
What information does the ‘who’ command display?
Displays currently logged-in users
What does the ‘w’ command show?
Displays currently logged-in users and their tasks
What does the ‘whoami’ command display?
Displays your login name
What information does the ‘id’ command provide?
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)
What does the ‘date’ command display?
Displays the current date and time
What does the ‘cal’ command show?
Displays the calendar for the current month
What information does the ‘uname -a’ command provide?
Displays system information
What does the ‘ls’ command do?
Lists files
What does the ‘exit’ command do?
Exits out of your current shell
what does the su command with the - option do?
use the root users environment
what does su c do>
runs a single command as a user