Linux Cheatsheet (Ubuntu/Debian)
Current Path
pwd
Print File
cat filename
with options:
-n: number all output lines-b: number non-blank output lines-s: squeeze multiple adjacent blank lines
Print First 10 Lines of File
head filename
with options:
-n N: print first N lines-c N: print first N bytes-q: do not print headers-v: always print headers-f: print all lines and keep file open for new lines (liketail -f)
Free Storage
df -h
Change User Password
passwd