Skip to content

Instantly share code, notes, and snippets.

@Cspeisman
Last active August 29, 2015 14:01
Show Gist options
  • Save Cspeisman/387c446d842701398fc1 to your computer and use it in GitHub Desktop.
Save Cspeisman/387c446d842701398fc1 to your computer and use it in GitHub Desktop.

##Bash Basics

Bash (born again shell) is a unix shell that allows us to talk to our computer through commands.


A typical command syntax will look like command [args ...]

You'll also often see command [-options] [args ...]

  • pwd (shows your path)
  • ls (list items)
  • ls -la (will list a lot more items -la are options)
  • cd (change into directory)
  • mkdir (make a directory)
  • touch (creates a new file)
  • rm (removes a file)
  • subl (opens sublime application)
  • cp (copies one file to another)
  • mv (moves one file to another)

*if you're ever curious about a command use the command man followed by the command name to bring up the command's manual page i.e. man rm will bring up rm's manual and man cd will bring up cd's manual pages

@britm09
Copy link

britm09 commented May 13, 2014

Also:

cd .. takes you one level up

cd ~/ takes you back to users/profile

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