Basic Directory Functions:

Functions: What it does: Example:
~$ server name and directories + prompt($) ~/practice/day1$
pwd show current directory ~$ pwd
cd (dir) return to home or directory ~$ cd practice
mkdir ~ make directory ~$ mkdir one two three
ls ~ print out the context in the directory ~$ ls one two
cp (copy) (paste) copy items from (copy) and paste it at (paste) ~$ cp /etc/hosts test.org
mv (old) (new) change the name of the (old) file into (new) ~$ mv test.org test.bak
rm ~ remove/delete the file ~$ rm test.bak
rmdir ~ remove/delete the directory ~$ rmdir test

Basic Commands:

Commands: What it does: Example:
~$ date print out date and time
~$ clear clear the screen
~$ man (command) print out the manual for the command ~$ man date
~$ pwd check the current directory
~$ cat (file) print out the contexts in the file ~$ cat /etc/hosts
~$ less (file) create pages if the screen is too small to fit all the context in the file ~$ less /etc/hosts
~$ touch (file) edit the last edited time as current time ~$ touch file1