-->

Previous | Table of Contents | Next

Page 323

AUTHOR

Copyright " 1989 by Jef Poskanzer.

24 January 1989

mkdir

mkdir—Make directories

SYNOPSIS

mkdir [_p] [_m mode] [--parents] [--mode=mode] [--help] [--version] dir...

DESCRIPTION

This manual page documents the GNU version of mkdir. mkdir creates a directory with each given name. By default, the mode of created directories is 0777 minus the bits set in the umask.

OPTIONS

_m, --mode mode Set the mode of created directories to mode, which is symbolic as in chmod and uses the default mode as the point of departure.
_p, --parents Ensure that each given directory exists. Create any missing parent directories for each argument. Parent directories default to the umask modified by u+wx. Do not consider an argument directory that already exists to be an error.
--help Print a usage message on standard output and exit successfully.
--version Print version information on standard output then exit successfully.

GNU File Utilities

mkdirhier

mkdirhier—Make a directory hierarchy

SYNOPSIS

mkdirhier directory ...

DESCRIPTION

The mkdirhier command creates the specified directories. Unlike mkdir, if any of the parent directories of the specified directory do not exist, it creates them as well.

SEE ALSO

mkdir(1)

X Version 11 Release 6

mkfifo

mkfifo—Make FIFOs (named pipes)

SYNOPSIS

mkfifo [_m mode] [--mode=mode] [--help] [--version] filename...

Page 324

DESCRIPTION

This manual page documents the GNU version of mkfifo. mkfifo creates a FIFO with each given name. By default, the mode of created FIFOs is 0666 minus the bits set in the umask.

OPTIONS

_m, --mode mode Set the mode of created FIFOs to mode, which is symbolic as in chmod and uses the default mode as the point of departure.
--help Print a usage message on standard output and exit successfully.
--version Print version information on standard output then exit successfully.

GNU File Utilities

mkmanifest

mkmanifest—Create a shell script to restore UNIX filenames

SYNOPSIS

mkmanifest [ FILES ]

DESCRIPTION

mkmanifest creates a shell script that will aid in the restoration of UNIX filenames that got clobbered by the MS-DOS filename restrictions. MS-DOS filenames are restricted to eight-character names, three-character extensions, uppercase only, no device names, and no illegal characters.

The mkmanifest program is compatible with the methods used in pcomm, arc, and mtools to change perfectly good UNIX filenames to fit the MS-DOS restrictions.

Example

Say you want to copy the following UNIX FILES to an MS-DOS disk (using the mcopy command):

very_long_name

2.many.dots

illegal:

good.c

prn.dev

Capital

mcopy will convert the names to

very_lon

2xmany.dot

illegalx

good.c

xprn.dev

capital

The command:

mkmanifest very_long_name 2.many.dots illegal: good.c prn.dev Capital > manifest

would produce the following:

mv very_lon very_long_name

mv 2xmany.dot 2.many.dots

mv illegalx illegal:

mv xprn.dev prn.dev

mv capital Capital

Page 325

Notice that good.c did not require any conversion, so it did not appear in the output.

Suppose I've copied these FILES from the disk to another UNIX system, and I now want the FILES back to their original names. If the file manifest (the output captured above) was sent along with those FILES, it could be used to convert the filenames.

BUGS

The short names generated by mkmanifest follow the old convention (from mtools-2.0.7) and not the one from Windows 95 and mtools-3.0.

SEE ALSO

arc(1), pcomm(1), mtools(1)

Local

mknod

mknod—Make special FILES

SYNOPSIS

mknod [OPTIONS] filename {bcu} major minor

mknod [OPTIONS] filename p

OPTIONS:

[_m mode] [--mode=mode] [--help] [--version]

DESCRIPTION

This manual page documents the GNU version of mknod. mknod creates a FIFO, character special file, or block special file with the given filename. By default, the mode of created FILES is 0666 minus the bits set in the umask.

The argument after filename specifies the type of file to make:

p for a FIFO

b for a block (buffered) special file

c or u for a character (unbuffered) special file

When making a block or character special file, the major and minor device numbers must be given after the file type.

OPTIONS

_m, --mode mode Set the mode of created FILES to mode, which is symbolic as in chmod and uses the default mode as the point of departure.
--help Print a usage message on standard output and exit successfully.
--version Print version information on standard output then exit successfully.

GNU File Utilities

mlabel

mlabel—Make an MS-DOS volume label

SYNOPSIS

mlabel [ -v ] drive: [ new_label ]

Previous | Table of Contents | Next