Back up sources.list
This page was last updated on July 25, 2011.
This command will make a copy of the sources.list file, adding the current date and time to the backed up file’s name. The copy will be placed into the same directory as the original.
- Open a terminal window and type:
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list.`date +%b-%d-%Y~%T`
Obligatory Happy Ending
And they all lived happily ever after. The end.
