Foe the ones, like me, who didn't know why you recommended that:
By setting umask 077 first and then creating the file, the file gets created with the correct restrictive permissions (0600) in one step instead leaving the file readable for "everyone" for a moment.
_davide_ 8 hours ago [-]
just buy more RAM, it's cheap enough...
malkocoglu 3 hours ago [-]
Where do you live ? Must be some magical place where RAM is cheap !
avadodin 18 hours ago [-]
Thank you for your opinion, Bill.
Just kidding, I agree with the sentiment. It's 2026 not 1976. You don't need separate physical partitions for most use cases.
[0]: https://btrfs.readthedocs.io/en/latest/Swapfile.html#:~:text...
By setting umask 077 first and then creating the file, the file gets created with the correct restrictive permissions (0600) in one step instead leaving the file readable for "everyone" for a moment.
Just kidding, I agree with the sentiment. It's 2026 not 1976. You don't need separate physical partitions for most use cases.