Questions tagged [mkdir]
The mkdir tag has no summary.
161 questions
9 votes
5 answers
2k views
Is there a command to recreate directory trees?
I created a 'cron' subdirectory in /var/log/ . It is: /var/log/cron Within /var/log/cron I've created numerous sub-directories to store my log files for cron jobs. I am wondering if there is a way ...
0 votes
1 answer
163 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 ...
1 vote
1 answer
1k 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 ...
1 vote
2 answers
167 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:~$ ...
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
700 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
2k 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
942 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
425 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
5k 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/...
0 votes
1 answer
237 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
36 views
/dev/sda4/ on USB stick isn't available after formatting. 'Discs' shows the following:
size: 58 GB contents: unknown device: /dev/sda4 partition type: basic data When I ran the format, I selected the type which I expected result in type of Linux. I found a similar issue from 2019, but ...
0 votes
0 answers
496 views
mkdir - create directory (with ":" in its name) does not work in specific directory, works in others
I am trying to create a directory for a movie on my Plex media server and ran into a strange issue. When I try to make a directory with the movie name ("Borat: Cultural Learnings of America for ...
1 vote
1 answer
1k views
Create directory using filenames and move the files to its respective folder
My question is a bit different than: Create directory using filenames and move the files to its repective folder Since in the same folder I have two similar copy of each file like: 001.txt and 001(1)....
0 votes
1 answer
373 views
How can i create sub directories within a directory? [closed]
I am trying to make a photo organizer with a zsh shell script. But i am having trouble creating sub directories within each main directory(based on date). Currently the script starts from a folder i ...