Skip to content

Instantly share code, notes, and snippets.

@Ashaba
Created November 13, 2017 15:18
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 Ashaba/eb675b692cc7e6e040c21fbafeea1fac to your computer and use it in GitHub Desktop.
Save Ashaba/eb675b692cc7e6e040c21fbafeea1fac to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
mkdir directory1 directory2 directory3 #create multiple directories
pwd #show the current directory
ls # list contents of a directory
cd directory1 # move to a particular directory
touch script.py # create a file
cp script.py ../directory2 # copy contents a file to another directory
echo "foo" | xargs touch #command with pipes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment