Command Description Example
Make directory
mkdir <name> $ mkdir foo
with name
Print working
pwd $ pwd
directory
cd <dir> Change to <dir> $ cd foo/
cd relative to
cd ~/<dir> $ cd ~/foo/
home
Change to home
cd $ cd
directory
Change to
$ cd && pwd
cd - previous && cd -
directory
The current $ cp
.
directory ~/foo.txt .
.. One directory up $ cd ..
find Find files & $ find .
directories -name foo*.*
$ cp -r ~/foo
cp -r <old> <new> Copy recursively .
Remove (empty)
rmdir <dir> $ rmdir foo/
dir
Remove dir &
rm -rf <dir> $ rm -rf foo/
contents
Grep recursively
grep -ri <string> $ grep -ri
(case- foo bar/
<dir>
insensitive)