Last active
September 4, 2015 02:45
-
-
Save darrenterhune/251869 to your computer and use it in GitHub Desktop.
helpful unix kernel 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
# 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