MKDIR(1) General Commands Manual MKDIR(1)NAME
mkdir - make a directory
SYNOPSIS
mkdir dirname ...
DESCRIPTION
Mkdir creates specified directories in mode 777. Standard entries, `.', for the directory itself, and `..' for its parent, are made auto-
matically.
Mkdir requires write permission in the parent directory.
SEE ALSO rm(1)DIAGNOSTICS
Mkdir returns exit code 0 if all directories were successfully made. Otherwise it prints a diagnostic and returns nonzero.
MKDIR(1)
Check Out this Related Man Page
LFC-MKDIR(1) LFC User Commands LFC-MKDIR(1)NAME
lfc-mkdir - make LFC directory in the name server
SYNOPSIS
lfc-mkdir [-m mode] [-p] path...
DESCRIPTION
lfc-mkdir creates the specified LFC directories in the name server.
This requires write permission in the parent directory. The owner ID and group ID of the new directories are set to the requestor's real
user ID and group ID, respectively.
path specifies the LFC pathname. If path does not start with /, it is prefixed by the content of the LFC_HOME environment variable.
The lfc-mkdir command has the following options:
-m specifies the mode to be used. Default mode is 777.
-p creates all the non-existing parent directories first. The mode set for the created intermediate directories is the logical differ-
ence between 0777 and the user umask but at least 0300.
EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed.
SEE ALSO Castor_limits(4), lfc_chmod(3), lfc_mkdir(3), lfc_umask(3)AUTHOR
LCG Grid Deployment Team
LFC $Date: 2001/10/04 12:12:54 $ LFC-MKDIR(1)
I am having trouble using cp and mkdir commands on a small script. The problem is I have spaces what I am trying to mkdir and then copy. Any suggestions on how I can solve this problem? I've tried searching online.
while read linefile
do
echo mkdir -p $CPP$linefile | cut -d / -f 1-5,8-12
... (10 Replies)
I'm trying to make use of mkdir(char *pathname, S_IRWXU) to create the directories.
but it only creates one directory at a time. so I have to separate the tokens for "/home/blah1/blah2/blah3" as "home blah1 blah2 blah3" using delimiter "/", but it is again hectic to create such directory... (8 Replies)
Dear,
I have the following script:
maak_backup ()
{
echo 'Maken van tijdelijke bestanden, even geduld aub.'
for i in /home/yannick/* ;
do
cp -r $i $i.bac
done
if ;
then
echo 'Backup map = OK!'
echo 'Bezig met kopiëren, even geduld... (9 Replies)
Hi, I have network mount on two servers.
One server I can create any directories without any issues, other server with the similar mount, I am not able to create directories starting with number!
Creation, name start with a number:
$ mkdir 1212
mkdir: cannot create directory `1212': No such... (12 Replies)
Hi All,
I am really new to Linux.I am trying to write a script for creating a new directory by getting input of folder name from the user.Please help me in this regard.
#! /bin/bash
echo "Enter name of dir":$filename
mkdir -p $filename
When executing this I am getting following error
... (13 Replies)
Hello,
I'm pretty new to scripting and trying to do a simple (well, I thought so) administrator task. I'm using bash.
I want to create 10 directories under the one directory and apply permissions at the same time.
I've worked out the make directories part: mkdir /userdata/folder{1..50}... (7 Replies)
Hi Guys
I am trying to move file containing more than two - at the 3rd line of each files to a new directory. The files are something like this :
****** Text ******
/text/
text text
I want to make sure the search effect only take place on the 3rd line one as there might me... (46 Replies)
Hi,
In a parent directory there are several files in the form
IDENTIFIER1x
IDENTIFIER1.yyy
IDENTIFIER1_Z, etc
IDENTIFIER2x
IDENTIFIER2.yyy
IDENTIFIER2_Z, etc
IDENTIFIER3x
IDENTIFIER3.yyy,
IDENTIFIER3_Z, etcIn the same parent directory there are corresponding directories named... (7 Replies)
In the below script i found that the alias mkdir_s is getting invoked from function configure() i.e the alias is kicking in.
#!/bin/bash -e
shopt -s expand_aliases
alias mkdir=mkdir_s
mkdir_s(){
if ]; then
return
else
/usr/bin/mkdir "$1"
return
fi
}
configure()
{
mkdir -p... (9 Replies)
Hi...
Thanks to read this...
I want to use mkdir to create many directories listed in a text file, let's say.
How do I do this?
Sorry for this maybe very basic question :) (13 Replies)
I have a file with lines like:
111 12 7
111 13 8
112 12 9
115 31 3
120 31 9
123 10 7
125 12
I want to make a script which, split the first column into parts (101-110, 111-120...), and make directories for its part with name (101-110, 111-120...) Also i want in every directory include... (7 Replies)
Importing images from a camera (or two).
I sort by date (1901 this month).
Currently (failing)
if ]
then
echo "Found Panasonic G9X"
#echo "List files on camera"
#ls ${pana}/*
. chxdir.sh ${photos}/$mn
I want to change directory to a fixed base ($photos)/$mn... (10 Replies)