A short list of “must know” shell commands

Basic

pwd
cd; cd -; cd ..
ls; ls -lhrt
mkdir; mkdir -p
mv
cp; cp -a
cat; zcat
less; zless
head; tail
wc -l
history
top; htop
chmod; chmod +x
tar xzvf; tar czvf; tar xjvf; tar cjvf

Intermediate

grep; grep -r; grep -n; grep -v
sort
uniq
find
tree
du -h
rsync; rsync -auzP

Advanced (yet commonly used!)

|
awk
sed

Contact

Gao Wang