Skip to content

Instantly share code, notes, and snippets.

@Opus1no2
Last active August 29, 2015 14:03
Show Gist options
  • Save Opus1no2/9ed4761651108e7d64d0 to your computer and use it in GitHub Desktop.
Save Opus1no2/9ed4761651108e7d64d0 to your computer and use it in GitHub Desktop.
cd #Takes you to home directory
cd - #Takes you to your previous directory
cd ../../ #Takes you back two directorys
cd ~/ #Takes you to the home directory
cd ~ #Takes you to the home directory
pwd #Path to working directory (tells you where you are)
ls -l #list directory contents
ls -a #list directory contents and hidden files
lsof -wni tcp:3000 #get PID for port 3000
time curl https://secure.opinionlab.com/includes/universal/images/foot-logo.png > /dev/null
ab -n 20 -c 5 https://cdn.opinionlab.com/includes/universal/images/foot-logo.png
curl -I -H 'If-None-Match: 0c0c1a8ee6e3251ab320301a847e37c8' https://olab-assets.s3.amazonaws.com/includes/universal/javascripts/compiled/cc-engine-5.1.min.js
ruby emcee-sync.rb && echo 'foo'
ruby emcee-sync.rb ; echo 'foo'
echo $? //exit code of last processed job in shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment