tar -zxvf file.tar.gz
# 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
.
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