The sticky bit can be applied to directories. When the sticky bit is set, only the owner can delete files, even though others have write permission for the folder.
The sticky bit is set with the +t option to chmod:
$ chmod a+t directory_name
Linux Shell Scripting Cookbook - Third Edition
by Shantanu Tushar
Published by
Packt Publishing, 2017
The sticky bit can be applied to directories. When the sticky bit is set, only the owner can delete files, even though others have write permission for the folder.
The sticky bit is set with the +t option to chmod:
$ chmod a+t directory_name