how does mkdir work? I've been trying to install java, and when I type:
mkdir -p /usr/local/java
nothing happens except the terminal just writes it down. when I get to later steps, it says that directory /usr/local/java
doesn't exist
how does mkdir work? I've been trying to install java, and when I type:
mkdir -p /usr/local/java
nothing happens except the terminal just writes it down. when I get to later steps, it says that directory /usr/local/java
doesn't exist
All system folders are owned by root; thus,you need root permissions:
sudo mkdir -p /usr/local/java
sudo
is indeed necessary, however note that OP said nothing happens if they do the command as regular user. However, mkdir
should produce "Permission denied" error. There's discrepancy
– Sergiy Kolodyazhnyy
Dec 8 '17 at 23:46
mkdir
should produce "Permission denied" error because /usr beling to root, yet you said "nothing happens". Can you clarify, please – Sergiy Kolodyazhnyy Dec 8 '17 at 23:47