
164
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
-R oldfield newfield
Change all fields named oldfield to newfield.
-U headerfield
Delete all but the last occurrence of headerfield.
-Y Format in traditional Berkeley style (i.e., ignore Content-
Length fields).
-X headerfield
Display the field name and contents of headerfield on a single
line.
free
free [options]
Display statistics about memory usage: total free, used, physical,
swap, shared, and buffers used by the kernel.
Options
-b Calculate memory in bytes.
-k Default. Calculate memory in kilobytes.
-m Calculate memory in megabytes.
-o Do not display “buffer adjusted” line. The -o switch disables
the display “-/+ buffers” line that shows buffer memory
subtracted from the amount of memory used and added to the
amount of free memory.
-s time
Check memory usage every time seconds.
-t Display all totals on one line at the bottom of output.
-V Display version information.
fsck
fsck [options] [filesystem] ...
System administration command. Call the filesystem checker for the
appropriate system type to check and repair unmounted filesystems.
If a filesystem is consistent, the number of files, number of blocks
used, and number of blocks free are reported. If a filesystem is incon-
sistent, fsck prompts before each correction is attempted. fsck’s exit
code can be interpreted ...