Skip to main content

Questions tagged [mkdir]

The tag has no usage guidance.

0 votes
1 answer
66 views

Missing files but system said it exist!

I have a working folder with all output files generated from command. When I tried to re-coding one of my file, after a few attempts, I realized the files in my folder left only 1/3 of them! I first ...
2 votes
3 answers
3k views

Create file in subdirectories that doesn't exist (../new_folder/new_folder/new_file.ext)

For now i use this: mkdir -p a/b/c/d/e; touch a/b/c/d/e/file.abc; Is there more efficient ways?
1 vote
1 answer
154 views

fstab and systemd automount overlay

On an embedded device based on Yocto Linux my rootfs is RO, while I have an additional partition for RW data. Now I want to automount at boot an overlay onto /etc stored on a different partition. Here ...
279 votes
13 answers
150k views

Is there a one-liner that allows me to create a directory and move into it at the same time?

I find myself repeating a lot of: mkdir longtitleproject cd longtitleproject Is there a way of doing it in one line without repeating the directory name? I'm on bash here.
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: ...
1 vote
2 answers
116 views

Can't create included directory [duplicate]

I'd like to create a new directory that looks like /dir1/dir2/dir3/dir4 but I can't. If I create the directories one by one from the parent and new parent directories, everything works: lm@debian:~$ ...
1 vote
1 answer
227 views

mkdir -p dir with braces created wrongly

I executed the following code in Ubuntu server 16.04 xenial: mkdir -p /root/backups/{db, dirs} I recall that in another system, it worked like charm creating all 3 dirs: /root/backups/ /root/...
0 votes
0 answers
37 views

Why did this mkdir not work properly? [duplicate]

Why did this mkdir not work properly? The folder is strangely named as {a. mkdir -p myfile/{a/a{1..10}, b/b{10..30}, c/c{1,2,3}}
1 vote
1 answer
355 views

sudo mkdir /srv/www permission denied

I'm setting up a new webserver on Debian. As my previous install had everything located in /srv/www I want to use the same setup to avoid rewriting a bunch of config files. However executing mkdir /...
0 votes
0 answers
1k views

Inside Docker: mkdir(-p): No such file or directory

I have encountered a strange problem where the mkdir -p command fails to create a directory and returns the following error message: [root@202 ~]# pwd /root [root@202 ~]# mkdir -p a/b/c mkdir: cannot ...
-2 votes
1 answer
631 views

how to create a directory that already exists with another name

i want to create directory called "A" inside my home directory but i don't know if such a directory already exists. i want to write a command that creates the directory if it does not exist. ...
2 votes
1 answer
274 views

touch/mkdir seems to ignore default ACL

I am pretty sure it is a stupid mistake but I can't seem to figure it out by myself, so please have a look. I set up an ACL for the current folder like so: zigbee2mqtt@nuc:/tmp/folder$ getfacl . # ...
0 votes
2 answers
2k views

move and make directory

I know its a big classical but I didn't found the exact situation that concerns me I need a mkdir+mv command that can be invoked like that : mvdir /home/user/Documents/irs.pdf /mnt/work/45/223/insight/...
-1 votes
1 answer
2k views

mkdir error, permission denied

i was installed spotify yesterday with snap in kali linux, then i run with snap run spotify and i get error like this : snap run spotify WARNING: cgroup v2 is not fully supported yet, proceeding with ...
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 ...

15 30 50 per page
1
2 3 4 5
11