Skip to content

Instantly share code, notes, and snippets.

@coderjonny
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coderjonny/f4d027350c8fa2fefb8d to your computer and use it in GitHub Desktop.
Save coderjonny/f4d027350c8fa2fefb8d to your computer and use it in GitHub Desktop.

Commmand Line Basics

pwd = shows your current directory

whoami = shows who you are

cd = moving in and out of directories

cd .. = Moving up to the parent dir.

ls = listing files in current dir.

cp [source] [destination] = Copying files

mv [source] [destination] = Moving files/folders

touch [filename] = creating an empty file

cat = shows raw content of a file

history = see past commands in the terminal

other

up arrow key = shows last used commands

command + k = clears the terminal to the top.

command + - = decrease font size

command + + = increase font size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment