good evening dear friends hello dear buddies at JustLinux,
well at the moment i want to create a swap-file for my linux notebook
i have learned that - before creating the file, i need to ensure that i have enough free disk space to complete the whole process successfully.
that said - i should get a kind of a detailed report on the system?s disk space usage with the df command:
Here, the root filesystem (/) has enough free space (53G) to create the file.
this way i get some insights into the data - consisting of the following categories:
Code:
Filesystem Size Used Avail Use% Mounted on
the nextg step is to create a file that will be used as a swap:
Code:
sudo fallocate -l 8G /swap.img
hopefully the fallocate utility is present on the system,
Code:
sudo dd if=/dev/zero of=/swap.img bs=1024 count=8194404
Question: Once we have the file being created, do i need to set the file permissions to 600
is this necessary!?
Any and all help is greatly appreciated
greetings