All Questions
6
questions
0
votes
1
answer
163
views
replacing explicit user names with variables in mkdir and chown
What specific changes need to be made in the commands below in order to use a variable username and a variable user_home to create a subdirectory within the current user's home and then to change ...
0
votes
1
answer
561
views
Using mkdir -p, is it possible to create files within subdirectories using regular expressions? [duplicate]
I am trying to create a file using the mkdir -p command.
Using mkdir -p ~/1/2/3/4, how would I put files (w,x) into /2, and (y,z) into /3 all in a single command?
I know I could use a touch command ...
-4
votes
1
answer
1k
views
mkdir not working, only with mkdir -p in rootserver with plesk [duplicate]
I just ordered a new root server 18.04 Ubuntu with Plesk.
I log in as root and want to create a folder for example:
mkdir /usr/local/myfolder/hello
I get the error:
mkdir: cannot create directory ‘/...
1
vote
1
answer
178
views
How to create nested folders (start with .) properly?
I want to create the nested folder .aa/.bb in the current user root's home directory. So I use the command mkdir -p "~/.aa/.bb/". But it doesn't work as I expected and it created a folder ~, ...
0
votes
1
answer
2k
views
Trying to remove current directory using rmdir
I created a directory dir at Desktop and then i keyed in cd dir so as to make dir as my current directory and then i typed in the terminal rmdir /home/user_name/Desktop/dir from the dir directory ...
3
votes
0
answers
7k
views
mkdir: cannot create directory under /root : Permission denied
And here it is, another permission denied, sorry for that, but I cannot get it running.
Let me be a stack user with sudo permissions, so that I can create a folder x by sudo mkdir /root/x.
That's ...