How to move the folder from home directory to the root directory in Linux?

12.3k Views Asked by At

I copied one folder from local to home directory by using WINSCP.

Now I want to move the folder from home directory into root directory.

I used this command:

  mv /home/user/data/* /root/data

It throws Permission Denied Error

Can anyone help me to achieve this?

1

There are 1 best solutions below

0
Sukhmeet Sethi On

Seems like you don't have root privileges. In case you have root password, you can try using sudo:

sudo mv /home/user/data/* /root/data