Swap File's Default Location [Duplicate]

Swap File's Default Location [Duplicate]

I have just created a swap file and now I want to check the location on this swap file.

How can I check on which partition my swap file is residing?

0

1 Answer

There are probably several ways to do this, but the simplest ones are:

sh@uruk:~$ cat /proc/swaps 
Filename                Type        Size    Used    Priority
/dev/nvme0n1p3          partition   2097148 456     -2
sh@uruk:~$ swapon -s
Filename                Type        Size    Used    Priority
/dev/nvme0n1p3          partition   2097148 456     -2
3
Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.