Please note, this issue is not with mount, I cannot create directory anywhere with a numeric name. ---------- Post updated at 02:41 PM ---------- Previous update was at 02:26 PM ----------
first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Hi, Unix Gurus,
- I have a simple question, I need create multiple directory. I use
mkdir {dir1, dir2, dir3)
I got one directory as
{dir1, dir2, dir3}
I searched @ google, I got answer as above code.:wall::confused:
Anybody has any idea
Thanks in advance
---------- Post updated... (3 Replies)
Hi,
I am trying to run a shell script which contains an mkdir command as part of the execution. The script fails with the following error:
mkdir: cannot create directory `/builds/somedir/': Permission denied
The user running the script is 'harry' and belongs to group 'school'.... (5 Replies)
Is there a way to create a directory in home directory through a bash script?
And if yes then the files we want to put in there have to be put by the time is created in the bash script? (3 Replies)
for incompatibility installation problems, I've decided to reinstall Centos 6.3
as can be seem from the df output, I've partitioned both / and and /home directories
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda8 12G 5.3G 6.5G 45% /
tmpfs ... (2 Replies)
Is is possible to create the directories in following manner.
for example my home dir is empty
and i want to create dir a/b/c
mkdir a/b/c # where a/b does not exists. (5 Replies)
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
To bakunin and corona688:
My result when text in file is
ms_ww_546
ms_rrL_99999
ms_nnn_67_756675
is
https://www.unix.com/C:\Users\Fejoz\Desktop\ttt.jpg
I hope you can see the picture. There is like a "whitespace character" after 2 of the 3 created directories.
---------- Post... (0 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)
Discussion started by: setub
13 Replies
LEARN ABOUT MOJAVE
mkpath_np
mkpath_np(3) BSD Library Functions Manual mkpath_np(3)NAME
mkpath_np -- Auxiliary routine for efficiently creating paths
SYNOPSIS
#include <unistd.h>
int
mkpath_np(const char * path, mode_t omode);
DESCRIPTION
This routine allows the caller to create a path, including intermediate directories. It is equivalent to calling mkdir(1) with the -p com-
mand line argument.
Intermediate directories are created with permission bits of rwxrwxrwx (0777) as modified by the current umask, plus write and search permis-
sion for the owner.
The leaf directory is created with permission bits of omode as modified by the current umask.
RETURN VALUES
A 0 return value indicates success. If an error occurs, the return value is a non-zero error code. Note that EEXIST is returned iff the
leaf directory already exists and is a directory, so under certain circumstances, this error value may not indicate a failure state.
This routine does NOT modify errno.
ERRORS
Any error code that can be returned by mkdir(2) can be returned by mkpath_np(), but mkpath_np() will return the error code rather than set-
ting errno.
[ENOTDIR] A component of the path is not a directory (in contrast to mkdir(2) which returns this based on the path prefix rather
than the path).
[EEXIST] The path already exists and is a directory.
HISTORY
This function first appeared in iOS 5.0.
SEE ALSO mkdir(1), chmod(2), mkdir(2)Mac OS X July 13, 2011 Mac OS X