Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.