Posts

Cheat Sheet - Command Line.

A quick reference of all of the commands Linux. $ pwd : Prints the path of the current directory to the screen $ ls : Lists out the contents of the current folder $ cd directory-name : Changes the current directory to the one specified $ cd  or  $ cd ~ : Changes the current directory to the home directory $ cd .. : Changes the current directory up one level $ mkdir directory-name : Creates a new directory (folder) in the current directory with the name specified $ touch file-name.html : Creates a new, empty file in the current directory with the name specified $ cp original-file.html new-file.html : Creates a duplicate copy of the first file listed and gives it the name of the second file listed. Both files still exist. $ mv original-file-name.html new-file-name.html : Moves the contents of the first file into the second file. Effectively renames the file. $ mv sample-file.html new-location/sample-file.html : Moves the first file into the folder specified for the second file. ...