What does the sticky bit on /tmp do?
BeginnerConceptFilesystem Hierarchy, Inodes & Links
Answer
On a world-writable directory, the sticky bit (t) means only the file's owner, the directory owner, or root can delete or rename a file, even though everyone can write in the directory. Without it, any user could delete other users' temp files.
ls -ld /tmp # drwxrwxrwt
chmod +t /shared
chmod 1777 /shared
More on Filesystem Hierarchy, Inodes & Links
Explain the purpose of the main top-level directories in the FHS.BeginnerWhat is the "/usr merge"?IntermediateWhat are /proc and /sys?BeginnerWhat is an inode? What does it store and what does it NOT store?BeginnerA disk shows free space but you get "No space left on device". Why?IntermediateWhat is a hard link?Beginner