Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 10100  / 2 Years ago, mon, june 13, 2022, 4:08:32

can anybody help me in solving this issue. I am new to Linux and here's
problem:



gourab@gourab-RV509:/usr/share/java$ cd /
gourab@gourab-RV509:/$ cd usr
gourab@gourab-RV509:/usr$ mkdir JAVA
mkdir: cannot create directory `JAVA': Permission denied
gourab@gourab-RV509:/usr$

More From » permissions

 Answers
1

Instead of mkdir JAVA use sudo mkdir JAVA, then enter your password.



That should fix it.



However, you only really need to use one command instead of these two or three.



cd / 
cd usr
sudo mkdir JAVA


cd just changes the directory, no point in doing that. You can simply put the path of the file after mkdir, like so.



sudo mkdir /usr/JAVA

[#33423] Tuesday, June 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
teromato

Total Points: 139
Total Questions: 102
Total Answers: 100

Location: Liechtenstein
Member since Mon, May 15, 2023
1 Year ago
;