!! # last command
sudo !! # last command as root
mkdir -p /mnt/ram; mount -t tmpfs tmpfs /mnt/ram -o size=4096M # create a ram disk
ls # with a trailing space -> not in history
disown -a && exit # leave terminal but don't kill running processes
touch
# touch FILE
mkdir
# mkdir DIR
rmdir
# rmdir DIR
rm -r
# rm -r DIR
diff
# diff FILE_1 FILE_2
cmp
# cmp FILE_1 FILE_2
comm
# comm FILE_1 FILE_2
zip
# zip ARCHIVE.zip FILE
gzip
gunzip
# gzip FILE
bzip2
# bzip2 FILE
file
# file temp.txt
uniq
ulimit -a
cat
# cat FILE_1 FILE_2
paste
# paste FILE_1 FILE_2
umask
# override to FILE
cmd > FILE
# append to FILE
cmd >> FILE
cmd >& FILE
cmd &> FILE
redirect stdout and stderr to FILE
cmd < FILE
cmd <<< "string"
CMD_1 | CMD_2
CMD_1 ; CMD_2 ; CMD_3
CMD &
CMD_1 && CMD_2
CMD_1 || CMD_2
# show all signals
kill -L
kill -SIGKILL <PID>
kill -9 <PID>
pstree
kill
crontab
nice
write
mesg
telnet
ssh
ftp
command &
fg # change to foreground
# pause with CTRL+Z
bg # sent it to background