Questions tagged [mkdir]
The mkdir tag has no usage guidance.
159
questions
0
votes
2
answers
4k
views
LINUX unable to create a directory | mkdir: cannot create directory ‘test_nfs’: Permission denied
I am trying to create a new directory under /mnt but unable to do so.
I have presented a volume through nfs server to client.
-->RPCbind is active.
/mnt$ service rpcbind status
● rpcbind.service - ...
0
votes
1
answer
84
views
copy files from multiple remote machines to local and create directories for remote machines
Have multiple vm machines that am using for studying, and have come up with this script for copying some files from vm's to my local machine:
SG=rohos; date; for i in `cat /etc/hosts | grep "$SG-&...
1
vote
1
answer
2k
views
mkdir says folder exists even though it doesn't show with ls -a
Arch linux.
I have a CIFS mount from my NAS that was mounted with full permissions
# line from my fstab
//IP_ADDRESS/path/to/dir /path/to/local/dir cifs uid=my_user,gid=my_group,dir_mode=0777,...
0
votes
2
answers
1k
views
How to run a remote script with sudo via ssh without entering password
I would like my script to connect to ssh with password, and once connected it will switch to sudo -s and run the mkdir command
for the moment I manage to connect to ssh without entering the password ...
6
votes
2
answers
7k
views
Synchronizing with rsync outputs error "Invalid argument (22)" for directories with dots and other symbols in their name
I tried to synchronize /dir1 (ext4) and /dir2 (ntfs) using rsync -azP, but got these errors:
rsync: recv_generator: mkdir "dir2/X.Y." failed: Invalid argument (22)
rsync: recv_generator: ...
0
votes
1
answer
245
views
Creating directories inside a directory, from variable values, to redirect output from sed
I am trying to take a file, modify this file by using a value from a for loop (using sed) and redirecting it to a directory that has been created during the same for loop.
Original file > Make ...
-1
votes
1
answer
407
views
Where is /tmp/myname located? [closed]
When using the following, I understand that I make a directory inside a directory:
mkdir /tmp/myname
but where is it located?
How can I see its parent folder?
-2
votes
1
answer
272
views
Move every 500 files in new directory [closed]
I have a directory that contains 10,665 jpeg files.
I want to move 500 files to a new directory, and 500 to the next directory, etc.
The largest files must be moved first:
500-1 contains the 500 ...
0
votes
2
answers
664
views
Directory creation using brace expansion
mkdir Public/1 2 3 ----- This line creates folder 1 in the Public folder and creates folders named 2 and 3 in my pwd.
mkdir Public/{1..3} ---- This line creates folders 1,2,3 in Public only as ...
0
votes
0
answers
41
views
Deleting read-only directory on linux? [duplicate]
I created an empty read-only directory:
mkdir -m 400 ~/Desktop/hello
As per the octal permission, it indicates the directory has read only permission.
But contrast to that when I am using the ...
-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
mkdir "No such file or directory" within a directory that exists
I have a network (samba) share mounted at /run/user/1000/gvfs/smb-share:server=wdmycloud,share=family. Most activities work fine within the share - I can move stuff around, create and delete files, ...
0
votes
2
answers
59
views
How to make sure directory only has specific subdirectories?
I have a directory that has some subdirectories with files in them. I have another directory that has very similar subdirectories but there may be a few that are added or removed. How can I add and ...
0
votes
2
answers
34
views
move contents of directory to static named subdirectory
I have directories of media structured as followed:
~ $ tree baz
baz
├── Ajin [Season 1]
│ ├── Ajin Demi-Human - 01 - A Topic That Has Nothing to Do with Us.mkv
│ ├── Ajin Demi-Human - 02 - Why Is ...