Commands & Directories Flashcards
Learning Linux (91 cards)
cd ..
Returns to previous directory
rm
Remove file
adduser
add new user
man “tool”
Opens man pages for the specified tool.
“tool” -h
Prints the help page of the tool.
apropos “keyword”
Searches through man pages’ descriptions for instances of a given keyword.
cat
Concatenate and print files.
whoami
Displays current username.
id
Returns user’s identity.
hostname
Sets or prints the name of the current host system.
uname
Prints operating system name.
pwd
Returns working directory name.
ifconfig
The ifconfig utility is used to assign or view an address to a network interface and/or configure network interface parameters.
ip
Ip is a utility to show or manipulate routing, network devices, interfaces, and tunnels.
netstat
Shows network status.
ss
Another utility to investigate sockets.
What does the ‘ps’ command do?
Shows process status.
What does the ‘who’ command do?
Displays who is logged in.
What does the ‘env’ command do?
Prints environment or sets and executes a command.
What does the ‘lsblk’ command do?
Lists block devices.
What does the ‘lsusb’ command do?
Lists USB devices.
What does the ‘lsof’ command do?
Lists opened files.
What does the ‘lspci’ command do?
Lists PCI devices.
What does the ‘sudo’ command do?
Execute command as a different user.