-->
Previous Table of Contents Next


mc......Midnight Commander

mc option(s) directory1 directory2

PURPOSE

The mc command launches the Midnight Commander, a directory browser and file manager for Linux that doesn’t require the X Window System. It allows you to move, copy, and delete files and directories, either with mouse actions and pulldown menus or commands entered on a command line as with vi.

There is an extensive set of commands associated with the Midnight Commander; see the online-manual pages for more details.

OPTIONS

-b Works in black and white.
-c Works in color.
-C arg Uses arg color set instead of the default.
-d Turns off mouse support.
-f Displays compiled-in search paths for Midnight Commander files.
-l file Saves the ftpfs dialog with the server on file.
-P Prints the last working directory after Midnight Commander exits. (See the manual pages for shell scripts that makes this option very useful.)
-s Works in slow mode, where line drawings are suppressed and verbose mode is turned off.
-t Uses TERMCAP for terminal information.
-u Disables a concurrent shell.
-U Enables a concurrent shell.
-v file Launches the internal viewer to view file.
-x Works under xterm.

mkdir......Make Directory

mkdir option(s) directories

PURPOSE

The mkdir command is used to create directories. The default mode of new directories is 0777.

OPTIONS

-m mode Sets the mode of the new directories to mode.
-p Creates new parent directories as needed.

mkdirhier......Make Directory Hierarchy

mkdirhier directory

PURPOSE

The mkdirhier creates a directory hierarchy. This command is made redundant by the GNU version of mkdir (covered separately), which will create a directory hierarchy.

RELATED COMMAND

mkdir

mkfifo......Make FIFO

mkfifo option(s) filename

PURPOSE

The mkfifo creates a FIFO, or a named pipe. The mode of the new FIFO is 0666.

OPTIONS

-m mode Sets the mode of new FIFOs to mode.

mkfontdir......Make Font Directory

mkfontdir directory

PURPOSE

The mkfontdir creates an index of X font files, fonts.dir, in the specified directory. There’s no option to change this filename, and you wouldn’t want to—this is the name that the X font server and the X server look to for font information.

RELATED COMMANDS

xfs
xset

mkmanifest......Restores UNIX Filenames

mkmanifest file(s)

PURPOSE

The mkmanifest command create a shell script to restore Linux filenames that have been truncated by the MS-DOS filename restrictions.

RELATED COMMANDS

arc
pcomm
mtools

mknod......Make Special Files

mknod option(s) filename filetype major_dev minor_dev

PURPOSE

The mknod command creates special files (FIFO, character special file, or block special file) with the given filename. The default mode of these files is 0666. The filetype can be one of the following:

p FIFO
b Block (buffered) special file
c Character (unbuffered) special file
u Character (unbuffered) special file

Major_dev and minor_dev refer to major and minor device numbers.

OPTION

-m mode Sets the mode of the new file to mode. This is a symbolic value.

mv......Move Files

mv option(s) sources target

PURPOSE

The mv command moves files—or, more accurately, gives them a new name and a new location on the file hierarchy. If the target names a directory, mv moves the sources into files with the same names in that directory. Otherwise, if two files are given as sources and target, it moves the first file onto the second.

If the new file is unwritable, mv will ask you to confirm that you want to overwrite a file.

OPTIONS

-b Creates backups before removing files.
-f Removes existing destination files without prompting you.
-i Prompts you before overwriting destination files.
-S Sets a new suffix for backups; the system default is ~.
-u Declines moving a file to a new destination with the same or newer modification time.
-v Verbose mode; prints the name of each file before moving it.

RELATED COMMANDS

cp

newgrp......New Group

newgrp GID

PURPOSE

The newgrp command changes your group permissions after you’ve already logged in the system. If you don’t specify a new GID, your login GID is used.

RELATED COMMANDS

login
group

pwd......Print Working Directory

pwd

PURPOSE

The pwd command prints the name of the current (working) directory.


Previous Table of Contents Next