Copying files in all Linux distros is basically the same.

Like in Windows, you can do it via the GUI and it will still work. There are however a few exceptions like when you are moving files that require root access. In this scenario, copying via GUI will not work and you will need to use the terminal.

In this scenario, we will be using a folder called Test located in Downloads.

To copy folders, the command is:

$cp <folder> /<destination>

To copy Test from Downloads into /opt, we first go to the Downloads folder:

$cd Downloads

Then we run:

$sudo cp Test /opt

We use sudo since the normal user has no permission to write into /opt.

If we wanted to move Test into opt instead of copying, we run:

$sudo mv Test /opt

NB: The folder names are case sensitive

Also published on Medium.

About The Author

My name is Patrick. I am a Linux Ninja (DevOps) | Data Analyst | Network Eng | writer. I live the Linux life and dream in R and Scala. I am an aspiring author with my first two books on the way. In my free time, I play WIFI

Related Posts

Leave a Reply

%d bloggers like this: