Skip to content

Instantly share code, notes, and snippets.

@darrenterhune
Last active September 4, 2015 02:45
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 darrenterhune/251869 to your computer and use it in GitHub Desktop.
Save darrenterhune/251869 to your computer and use it in GitHub Desktop.
helpful unix kernel commands
# convert lines in text file
tr '[:lower:]' '[:upper:]' <oldfile> newfile
# download a gzip file from remote server
ssh server "gzip -c remote_file" > local_file.gz
# secure copy local file to remote server
scp localfile user@remote_server.com:remote_directory
# find all files that have been modified in the last 3 days
find . -type f -mtime -3 | grep -v "/Maildir/" | grep -v "/logs/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment