UNIX Shells by Example
Authors: Quigley E.
Published year: 2004
Pages: 341-347/454
Buy this book on amazon.com >>
 <  Day Day Up  >  

man ”formats and displays the online manual pages

man [-acdfhktwW] [-m system] [-p string] [-C config_file] [-M path]

    [-P pager] [-S section_list] [section] name...

 <  Day Day Up  >  
 <  Day Day Up  >  

manpath ”determines user 's search path for man pages

man [-acdfhkKtwW] [-m system] [-p string][-C config_file][-M path]

   [-P pager] [-S section_list][section] name  ...

man formats and displays the online manual pages. This version knows about the MANPATH and ( MAN ) PAGER environment variables , so you can have your own set(s) of personal man pages and choose whatever program you like to display the formatted pages. If section is specified, man only looks in that section of the manual.

 <  Day Day Up  >  
 <  Day Day Up  >  

mesg ” permits or denies messages resulting from the write command

mesg [ n ] [ y ]

mesg with argument “n forbids messages via write by revoking nonuser write permission on the user 's terminal. mesg with argument “y reinstates permission. All by itself, mesg reports the current state without changing it.

 <  Day Day Up  >  
 <  Day Day Up  >  

mkdir ”creates a directory

mkdir [ p ] dirname ...

 <  Day Day Up  >  
 <  Day Day Up  >  

more ”browses or pages through a text file

more [ cdflrsuw ] [ lines ] [ +linenumber ] [ +/pattern ] [ filename ... ]

page [ cdflrsuw ] [ lines ] [ +linenumber ] [ +/pattern ] [ filename ... ]

more is a filter that displays the contents of a text file on the terminal, one screenful at a time. It normally pauses after each screenful, and prints ”More ” at the bottom of the screen.

 <  Day Day Up  >  
 <  Day Day Up  >  

mtools ”utilities to access DOS disks in UNIX

mtools is a public domain collection of tools to allow UNIX systems to manipulate MS-DOS files read, write, and move around files on an MS-DOS file system (typically a floppy disk). Where reasonable, each program attempts to emulate the MS-DOS equivalent command. However, unnecessary restrictions and oddities of DOS are not emulated. For instance, it is possible to move subdirectories from one subdirectory to another. mtools can be found at the following places (and their mirrors):

http://mtools.ltnb.lu/mtools-3.9.1.tar.gz

ftp://www.tux.org/pub/knaff/mtools/mtools-3.9.1.tar.gz

ftp://sunsite.unc.edu/pub/Linux/ utils /disk-management/mtools-3.9.1.tar.gz

 <  Day Day Up  >  
 <  Day Day Up  >  

mv ”moves or renames files

mv [ f ] [ i ] filename1 [ filename2 ...] target

The mv command moves a source filename to a target filename. The filename and the target may not have the same name . If target is not a directory, only one file may be specified before it; if it is a directory, more than one file may be specified. If target does not exist, mv creates a file named target . If target exists and is not a directory, its contents are overwritten. If target is a directory, the file(s) are moved to that directory.

Example A.38.
1   mv file1 newname

2   mv -i test1 test2 train

EXPLANATION

  1. Renames file1 to newname . If newname exists its contents are overwritten.

  2. Moves files test1 and test2 to the train directory. The “i switch is for interactive mode, meaning it asks before moving the files.

 <  Day Day Up  >  
UNIX Shells by Example
Authors: Quigley E.
Published year: 2004
Pages: 341-347/454
Buy this book on amazon.com >>

Similar books on Amazon

Similar books