Questions tagged [mkdir]
The mkdir tag has no usage guidance.
159
questions
0
votes
1
answer
65
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
128
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
115
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
349
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
623
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
267
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/...
0
votes
1
answer
162
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
20
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
362
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
761
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
295
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 ...
1
vote
2
answers
896
views
Creating and arranging files into folders based on date and time in file name
I have many files in a folder Main which are named like these:
2021_10_15_23_35_SIP_CDR_pid3894_ins2_thread_1_4718.csv.gz
2021_11_24_21_15_Gi_pid25961_ins2_thread_1_6438.csv.gz ...