Swapon Command
swapon is the command that is used to activate the swap on the device.
Syntax:
# swapon [options] [ device ]
Options:
-h Prints the help information.
-s Prints the swap usage information.
Consider the following example
# swapon /dev/hda9
Swap is the command which is used to activate and check the status of a swap file system in Solaris.
Consider the following example
Activate the swap file:
Syntax:
# swap -a [file name]
The options of swap command:
-a: It is used to add swap file.
-l: It is used to verify the swap file is added.
-s: It is used to list the status of swap file.
-d: It is used to remove the swap file from use.
Let consider the following example
# swap -a /opt/kishore