Skip to main content

Questions tagged [mkdir]

The tag has no usage guidance.

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, ... ...
Pushpa's user avatar
  • 113
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 ...
Артем Максимов's user avatar
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 ...
Bamboo's user avatar
  • 495
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 ...
Malcolm's user avatar
  • 11
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 ...
Chris2048's user avatar
  • 601
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 ...
user541686's user avatar
  • 3,103
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 ...
elbarna's user avatar
  • 12.8k
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
kenn's user avatar
  • 783
-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 ...
firewallcj's user avatar
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/...
Chris Stryczynski's user avatar
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 ...
Mark's user avatar
  • 733
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 ...
James Wright's user avatar
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 ...
LocalHost's user avatar
  • 509
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?
TsV's user avatar
  • 131
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 ...
Matt's user avatar
  • 385

15 30 50 per page
1
3 4
5
6 7
11