I have downloaded java 1.8.0 to copy from downloads to /usr/local. And it does not get copied. What is the reason?
as I m following this.
And i am stuck at when it said "next, i copied this to local folder where i created the following script."
I have downloaded java 1.8.0 to copy from downloads to /usr/local. And it does not get copied. What is the reason?
as I m following this.
And i am stuck at when it said "next, i copied this to local folder where i created the following script."
This is related to permissions:
$ ls -ld /usr/local/
drwxr-xr-x 14 root root 4096 Sep 4 2014 /usr/local/
As you can see the directory /usr/local/
is owned by user root
and group root
so you are not able to just copy any file to this directory as a normal user.
To overcome permissions you should use sudo
:
sudo cp ~/Downloads/java* /usr/local
If you want to copy/paste in GUI mode using Ctrl+c , Ctrlv then use this trick.
From your terminal run nautilus
as root:
sudo nautilus
This will open your file manager nautilus
to use as root, then you can just copy /paste as you want.
But be careful a simple error here will be a disaster