Cheatography
https://cheatography.com
Frequently used linux command
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Help
man |
an interface to the on-line reference manuals |
apropos |
search the manual page names and descriptions (man -k) |
whatis |
display manual page descriptions (man -f) |
info |
read info documents |
help |
shell help |
konqueror |
browse man and info thanks to kio |
Administration
chroot |
run command or interactive shell with special root directory |
su |
change user id or become superuser |
sudo |
execute a command as another user |
runcon |
run command with specified security context (selinux) |
chcon |
change file security context (selinux) |
Kernel
insmod |
simple program to insert a module into the linux kernel |
lsmod |
program to show the status of modules in the linux kernel |
modinfo |
program to show information about a linux kernel module |
modprobe |
program to add and remove modules from the linux kernel |
rmmod |
simple program to remove a module from the linux kernel |
depmod |
program to generate modules.dep and map files |
System
uptime |
view the system load and tell how long it has been running |
uname |
print system/kernel information |
arch |
print machine hardware name (same as uname -m) |
hostid |
print the numeric identifier for the current host |
lsb_release |
print distribution-specific information |
nproc |
print the number of processing units available |
free |
display amount of free/used/swap memory in the system |
vmstat |
report virtual memory statistics |
iostat |
report central processing unit (cpu) statistics and input/output statistics for devices, partitions and network filesystems (nfs) |
mpstat |
report processors related statistics |
initctl |
upstart service configuration |
start |
init daemon control tool |
stop |
init daemon control tool |
status |
init daemon control tool |
chkconfig |
enable or disable system services |
service |
run a system v init script |
sysv-rc-conf |
run-level configuration for sysv like init script links |
runlevel |
output previous and current runlevel |
telinit |
change system runlevel |
halt |
reboot or stop the system |
reboot |
reboot or stop the system |
shutdown |
shutdown or restart the system |
sysctl |
configure kernel parameters at runtime |
|
|
|
|
|