Last active
November 8, 2017 01:14
-
-
Save jtr109/cf8901434da71363e997cf611e38a3ed to your computer and use it in GitHub Desktop.
Bash Cheatsheet
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
#!/bin/bash | |
# Copy a file with time as tail. | |
# Reference: https://i.linuxtoy.org/docs/guide/ch15s05.html | |
sudo cp $1 $1_`date +%y%m%d_%H:%M:%S` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment