Quantcast
Channel: Linux 101 Hacks » 09. System Administration Tasks
Viewing all articles
Browse latest Browse all 10

Hack 69. Create a swap file system.

$
0
0
Create a file for swap usage as shown below. # dd if=/dev/zero of=/home/swap-fs bs=1M count=512 512+0 records in 512+0 records out # ls -l /home/swap-fs -rw-r--r-- 1 root root 536870912 Jan 2 23:13 /home/swap-fs Use mkswap to setup a Linux swap area in the /home/swap-fs file that was created above. # mkswap /home/swap-fs Setting up [...]

Viewing all articles
Browse latest Browse all 10

Trending Articles