Hacker News new | ask | show | jobs
by C0d3r 3516 days ago
"echo "tmpfs DIR tmpfs rw,nosuid,nodev,noatime" | sudo tee -a /etc/fstab" Is this command correct? Shouldn't it be something like: "/tmp DIR tmpfs rw,nosuid,nodev,noatime"?
1 comments

In your particular case it would be: tmpfs /tmp tmpfs rw,nosuid,nodev,noatime

The first value is a name since we aren't mounting a device, the source is implied to be ram because of the tmpfs filesystem.

OH I understand now, thanks!