Make a Backup of a File
Saw this pro tip on CW and had to share and clarify.
This will copy the file with the original extension and append ".bak" to the new file:
cp FILENAME.EXTENSION{,.bak}
This will copy the file from the old extension to the new extension ('.bak')
cp FILENAME{.EXTENSION,.bak}
Thanks Marc for the tip!
Written by Steven Wade
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#