Moving files from Desktop to Usr/Java

I have a file I need to move from the Desktop folder to the usr/java folder.

  • What I have tried:

    I tried using the Nautilus Files utility and got a "permission denied" error.
    I tried using mv, and got Cannot Stat '/desktop/jre-8u241-linux-x64.tar.gz': No such file or directory.

2

1 Answer

Your desktop is in /home/your_user_name/Desktop. Letters' register is important in Linux systems. desktop and Desktop are different folders. Also, run Nautilus as root from terminal, if you want it to work with root user's folders.

If you want to move files into root user's folders using terminal, use sudo command:

$ sudo mv /home/your_user_name/Desktop/jre-8u241-linux-x64.tar.gz /usr/java/

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like