Skip to content

Instantly share code, notes, and snippets.

@smmoosavi
Last active August 29, 2015 14:11
Show Gist options
  • Save smmoosavi/d62a13ba424dcfbf229b to your computer and use it in GitHub Desktop.
Save smmoosavi/d62a13ba424dcfbf229b to your computer and use it in GitHub Desktop.
Some useful commands

Some useful commands.

extract tar.gz files

tar -zxvf file.tar.gz

source

tilde files

# list files
find . -type f -name '*~'

# delete them
find . -type f -name '*~' -exec rm -f '{}' \;

# alternative
find . -type f -name '*~' -delete

for pyc files change *~ to *.pyc.

source

ruby/rvm

When you got

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You must run:

source ~/.rvm/scripts/rvm
type rvm | head -n 1 # must be rvm is a function

source

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