Cheat Sheet Flashcards
(76 cards)
Opens man pages for the specified tool.
man <tools>
Prints the help page of the tool.
<tool>
-h
Searches through man pages’ descriptions for instances of a given keyword.
apropos <keyword>
Concatenate and print files.
cat
Displays current username.
whoami
Returns users identity.
id
Sets or prints the name of the current host system.
hostname
Prints operating system name.
uname
Returns working directory name.
pwd
Used to assign or view an address to a network interface and/or configure network interface parameters.
ifconfig
A utility to show or manipulate routing, network devices, interfaces, and tunnels.
ip
Shows network status.
netstat
Another utility to investigate sockets.
ss
Shows process status.
ps
Displays who is logged in.
who
Prints environment or sets and executes a command.
env
Lists block devices.
lsblk
Lists USB devices.
lsusb
Lists opened files.
lsof
Lists PCI devices.
lspci
Execute command as a different user.
sudo
The utility requests appropriate user credentials via PAM and switches to that user ID (the default user is the superuser). A shell is then executed.
su
Creates a new user or update default new user information.
useradd
Deletes a user account and related files.
userdel