How to Copy files in Ubuntu or any linux

Copying files in ubuntu

How do I copy a file in Ubuntu terminal? The Linux cp command is used for copying files and directories to another location. To copy a file, specify “cp” followed by the name of a file to copy. Then, state the location at which the new file should appear. The new file does not need to have the same name as the one you are copying

For example:

To copy files from desktop to /etc folder:

Sudo cp ~/Desktop/Folder/filename /etc/destination folder/

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *