Last active
August 29, 2015 14:16
-
-
Save t-cyrill/96df1ac7487fe83a0fd0 to your computer and use it in GitHub Desktop.
useful shell commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ionice | |
sudo ionice -c2 -n7 nice -n19 du -sh * | |
# check current running unicorn ruby version | |
pgrep -f unicorn -l | grep master | cut -d' ' -f1 | sudo xargs -I{} readlink -f /proc/{}/exe | xargs -I{} sh -c "{} -v" | |
# curl view header (not HEAD) | |
curl -D - -s -o /dev/null "http://google.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment