I want to quickly create a backup of a file, by creating a duplicate with a '~' at the end, in terminal. Is there any straight forward single command way of doing this?
Ubuntu – Fastest way to backup a single file
backupfiles
backupfiles
I want to quickly create a backup of a file, by creating a duplicate with a '~' at the end, in terminal. Is there any straight forward single command way of doing this?
Best Answer
Create a shell function
Put it in your shell rc file, for bash it is ~/.bashrc. Source .bashrc or start a new shell.
And you have a copy of yourFile.