How to Backup a File in Linux

Found This Helpful

The Linux operating system has many configuration files. These files are normally plain text files that can be edited in any text editor. It is a good idea to create a backup copy of the file before making changes when editing any of the configuration files.

Instructions

  1. Open a terminal window. The terminal window will be found under the "Accessories," "System Tools" or "Utilities" section of the main menu.

  2. Type the command "cd Directory/" to navigate to the directory that contains the file you want to backup. Replace the word "Directory/" with the correct name of the directory.

  3. Type the command "cp file.txt file.bk" to create a backup copy of the file named "file.txt". The backup copy will be called "file.bk". Replace the file name with the exact name of the file you want to backup.

  4. Type the command "ls -la file.bk" to make sure the file was created correctly.

  5. Type the command "exit" to close the terminal window.

Related Searches

References

Comments

You May Also Like

Featured

Related Ads

Related Searches
Watch Video

#eHowHacks: Open a Wine Bottle With a Shoe