Ubuntu – How to access a folder as root

directoryroot

I want to open a folder in desktop as root and install .jar file in that folder.

I have a ".jar" file in desktop that I need to open it as root user but I want to copy that file into a folder in desktop and then open it as root user. How can I access .jar file in that folder via terminal?

How can I do that?

Best Answer

sudo

fill in your password

cd your-directory
cp path-to-jar/file.jar ./
sudo -k

or

gksu nautilus

then you can do it graphically. That said, why do you think you need to be root to install a jar in you own home folder?

Related Question