
454
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
swapoff
swapoff [options] [devicelist]
System administration command. Stop making devices and files
specified in devicelist available for swapping and paging.
Option
-a Consult /etc/fstab for devices marked sw. Use those in place of
the device argument.
-h Print help message and then exit.
-V Display version number and then exit.
swapon
swapon [options] devices
System administration command. Make the listed devices available
for swapping and paging.
Options
-a Consult /etc/fstab for devices marked sw. Use those in place of
the devices argument.
-e Used with -a. Don’t complain about missing devices.
-h Print help message, then exit.
-p priority
Specify a priority for the swap area. Higher priority areas will
be used up before lower priority areas are used.
-s Print swap usage summaries, then exit.
-V Print version information, then exit.
sync
sync
System administration command. Write filesystem buffers to disk.
sync executes the sync( ) system call. If the system is to be stopped,
sync must be called to ensure filesystem integrity. Note that shut-
down automatically calls sync before shutting down the system.
sync may take several seconds to complete, so the system should be
told to sleep briefly if you are about to manually call halt or
reboot. Note that shutdown is the ...