Linux Commands Question:

Explain Difference between swap partition and swap file?

Tweet Share WhatsApp

Answer:

Swap partition maintained seperate partition.
same swap partition can be used in two OS within single
machine.
If system crashes their is a chance to recover itor may not
be corrupt the partition.
Less fragmented.

where as swap file takes very less space. we can increase
the space very easily, compared to swap partition.
SWap file system fragmented.
If system crashes their is a huge chance to lost the swap
file system.

Download Linux Commands PDF Read All 23 Linux Commands Questions
Previous QuestionNext Question
How to monitor ports in a linux machine, with single command?How to recover /etc/passwd file and /etc/shadow file?