FilePermissionsCommands Unix
FilePermissionsCommands Unix
net/publication/340609244
CITATIONS READS
0 969
1 author:
Nilu Singh
K L University
82 PUBLICATIONS 190 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Nilu Singh on 13 April 2020.
Du
Shows disk usage.
Sticky Bit
• It was first introduced in in 1974 in the Unix
operating system.
• It was introduced to minimize the time delay
introduced every time when a program is
executed.
• A Sticky bit is a permission bit that is set on a file
or a directory that lets only the owner of the
file/directory or the root user to delete or rename
the file.
Need of Sticky Bit
• There exists, for example, /tmp directory in the
Unix system that can be used by different Unix
users to create temporary files.
• Now, what if an user accidentally or deliberately
deletes (or rename) a file created by some other
user in this directory?
• To avoid these kind of issues, the concept of
sticky bit is used.
Example: Create a directory and provide all the
users read-write-execute access to it :
Conti…