↑ Top
Kaai24
dev studios
| Sign in | DE EN

Linux Cheat Sheet


My first operating system were Windows 3.1 and DOS as well as Windows 98. So as I took my first steps in Linux I had some problems. This cheat sheet should make everyone's life more easy. Some commands may differ if you use a Linux which doesn't belong to the Debian family.

Basics
0

The most basic commands every Linux user should know are probably:

cat, cd, cp (-a), chmod (-R), df (-h), du (-hs), grep (-i)(-r)(-v), gzip (-l), history, less, ln (-s), ls (-ahl)(-t), man,
mkdir, nano (-c), rm (-r), tar, unzip, wget, whatis

The minimal set for the admin should be
0

chown (-R), crontab (-e), dd, dmesg (-T), head, htop, ip (a), kill (-9), lsblk, lscpu, lspci, lsof, lsusb, mount, passwd,
ps (aux)(axjf), rsync (-aP)(-n)(--delete), scp, ssh, su, systemctl, tail, useradd, usermod, zip
For detailed informations about the commands check the manpages.

Additionally you should know these shortcuts
0

Print a file tree with all data like ls -lh

tree -pughD
hide indentation
tree -pughD -i
full (relative) path
tree -pughDi -f
only dirs but 2 levels
tree -pughDif -d -L 2

Editors
0

For editing text files the most easy way is to use nano (nano /file).
But you will see some sadists who use vim (aka vi, read more here). The most important thing you need to know about it is you can "write-quit" it with the command :wq

(Edited 11-04-20)

Comments