
312
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
:p Skip to previous file, or numth previous if an argument is
specified.
:f Print current filename and line number.
. Re-execute previous command.
Examples
Page through file in “clear” mode, and display prompts:
more -cd file
Format doc to the screen, removing underlines:
nroff doc | more -u
View the manpage for the more command; begin at the first
appearance of the word “scroll”:
man more|more +/scroll
mount
mount [options] [[device] directory]
System administration command. Mount a file structure. The file
structure on device is mounted on directory.Ifnodevice is speci-
fied, mount looks for an entry in /etc/fstab to find out what device
is associated with the given directory. The directory, which must
already exist and should be empty, becomes the name of the root
of the newly mounted file structure. If mount is invoked with no
arguments, it displays the name of each mounted device, the direc-
tory on which it is mounted, its filesystem type, and any mount
options associated with the device.
Options
-a Mount all filesystems listed in /etc/fstab. Use -t to limit this to
all filesystems of a particular type.
--bind olddirectory newdirectory
Bind a mounted subtree to a new location. The tree will be
available from both the old and new directory. This binding
does not ...