Built-In Command Line Tools

Your terminal will have several commands already built into the command line. Below are a few of them with examples of how they are used.

pwd: print working directory (where am I currently?)

 

/: root directory (folder that holds all other folders)
./: current directory (current folder)
../: parent directory (folder containing your current folder)

 

ls: list directory contents (list everything in current folder) (usage)

 

mkdir: make directory (i.e. folder) (usage)

 

mv: move object (usage)

 

cp: copy object (usage)

 

head: display the beginning (i.e. top) of a file (usage)

 

tail: display the end (i.e. bottom) of a file (usage)

 

| (shift + backslash): pipe (use outputs from one command as inputs for another)

 

wc: word count (lines, words, characters) (usage)