Show Menu
Cheatography

Survival Linux Cheat Sheet (DRAFT) by

A survival list of linux commands

This is a draft cheat sheet. It is a work in progress and is not finished yet.

File Commands

ls [dir(s)]
directory listing
ls -lha [dir[s]]
(l)ist (h)uman readable sizes with (a)hidden files
pwd
show path to working directory
cd [dir]
change directory to [dir]
touch [file_­nam­e(s)]
create empty file
mkdir [dir(s)]
create direct­ory­(ies)
rmdir [dir(s)]
remove direct­ory­(ies)
rm [file(s)]
remove file
rm -fr [files­/di­r(s)]
(f)orce remove files (r)ecu­rsively
cp [source] [dest]
copy file
mv [source] [dest]
move/r­ename file
cat [file]
Concat­enate file to standard output
less [file]
Page through text
head [file]
Output the first part of files (10 lines)
tail [file]
Output the last part of files (10 lines)
tail -f [file]
Output appended data as file grows

Terminal

clear
clear the terminal screen