mkswap Command
This command is used to add a swap file.
Syntax
mkswap [device ] [ block ]
The options for the mkswap command:
-c: Before a swap fileis created CHECKS the device for bad blocks.
-f: Forcibly makes a swap file.
Let consider the following example to make a swap file:
# mkswap /dev/hda9 2000
mkfile is the command that is used to make a swap file, swap is the commands that is used to check and activate the swap staus in Solaris.
Syntax:
# mkfile nnn[k/b/m] filename
Let consider the given example to create a swap file:
# mkfile 24m /opt/abc
The swap file of the size nnn(in bytes, Kbytes, or Mbytes) and the specified name is make