Show Menu
Cheatography

Ubuntu CLI basics Cheat Sheet (DRAFT) by

basic Ubuntu CLI commands for newbies

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

Folder Navigation

cd dir
change to dir directory
cd ..
move up one directory
cd /
move to the lowest level
cd ~
go to the logged user's home
ls
list files and direct­ories
ls -la
list all files and direct­ories (hidden and permis­sions)
pwd
print working directory

File management

cp file loc new_loc
copy file from loc to new_loc
cp -R
copy directory
mkdir dir_path
create a directory at dir_path
mv path new_path
move direct­ory­/file from path to new_path
rm -rf
remove a directory with
rmdir
remove an empty directory
touch
create an empty file