Questions tagged [mkdir]
The mkdir tag has no usage guidance.
159
questions
1
vote
1
answer
99
views
Create a folder for each file in a folder without the folder itself
| folderA1 | fileA11, fileA12, ...
folderA | folderA2 | fileA21, fileA22...
| ... | ...
I want to make a copy of it represented as:
| folderA1 | folderA11, folderA12, ...
...
3
votes
0
answers
28
views
How to create a directory behalf on root user? [duplicate]
I have a script:
[postgres@LaHarch ~]$ cat mkrundir.sh
#!/bin/bash
mkdir /run/postresql
With attributes:
[postgres@LaHarch ~]$ ll mkrundir.sh
-rwsr-sr-x 1 root root 74 Aug 26 18:53 mkrundir.sh
...
15
votes
3
answers
4k
views
Why did my folder names end up like this, and how can I fix this using a script?
Sorry if this has an answer elsewhere, I've no idea how to search for my problem.
I was running some simulations on a redhat linux HPC server, and my code for handling the folder structure to save ...
1
vote
1
answer
484
views
Fedora terminal script to create a directory and copy a file to directory
I need help to write a script to create a directory, so far I have mkdir ./directory.
This would create a folder called Directory, but I need to make it ask if the user wants to copy a file called ...
0
votes
0
answers
1k
views
mkdir relative/absolute path permissions
I'm currently in a directory foo (pwd is /some/lepath/foo)
I own foo, but not /some/lepath. I got here by cd'ing to foo, then sudo -uing to the owner of foo, hence I am now in a directory I could not ...
3
votes
1
answer
749
views
Is mkdir -p safe to parallelize?
I'm writing Makefile rules like this:
out/%.x: ...
mkdir -p $(@D)/
...
I intend to parallelize this Makefile (-j), which will trigger many mkdir -p's to simultaneously.
Is this safe? Or do ...
0
votes
1
answer
288
views
Why mkdir with ssh doesn't want create longname dir? [duplicate]
Two slackware 14.2 systems,ssh is 7.9p1.
On local system
mkdir -p -v "I want to create long dir name with spaces"
mkdir: directory 'I want to create long dir name with spaces' created
And is OK
On ...
7
votes
2
answers
6k
views
Is it possible to detect file or folder creation/deletion in real time?
I want to monitor file or folder creation/deletion instantaneously, is it possible?
EDIT:I am using Ubuntu 16.04
-1
votes
1
answer
11k
views
Mkdir and Insmod - File Exists error
Any ideas what im doing wrong?
mkdir /mnt/zmg
mount -t cifs -o username=Administrator,password=*****,domain=Provisorio,noserverino //10.20.30.1/zmg /mnt/zmg
insmod /mnt/zmg/tntfs.ko
Heres a print of ...
4
votes
2
answers
3k
views
How do I specify a path to an executable for a systemd unit file on nix?
I'm trying to write a systemd unit file.
How do I specify the path to an executable? How can I determine what to use?
In this specific case I'm trying to use mkdir.
ExecStartPre = "/bin/mkdir -p %h/...
1
vote
1
answer
4k
views
mkdir -p returns error if exists
Raspbian Stretch Lite:
$ mkdir --help
Usage: mkdir [OPTION]... DIRECTORY...
Create the DIRECTORY(ies), if they do not already exist.
Mandatory arguments to long options are mandatory for short ...
1
vote
2
answers
533
views
How to create multiple directories in Ranger?
As in the equivalent of mkdir dir1 dir2 when running in bash. This creates two separate directories, dir1 and dir2.
If you run :mkdir dir1 dir2 in ranger, it simply creates a directory called 'dir1 ...
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 ...
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?
0
votes
2
answers
3k
views
Single "mkdir" command to make a new directory and change to that directory at the same time? [duplicate]
Quick question:
Is it possible to use "mkdir" to make a new directory AND change to that directory at the same time using a single 'mkdir' command?
Whole question:
I have this question:
What ...