-
Contributing Member
Sticky bit
can any one explain the sticky bit concept??
Last edited by sharifhere; 01-16-2007 at 07:50 AM.
Reason: corrected typo
-
Expert Member
Re: Sticky bit
hi friend
sticky bit - The bit in the mode of a Unix file which, if set for an executable, tells the kernel to keep the code loaded in swap space even after it has finished executing on the assumption that it is likely to be used again soon. This performance optimisation was included in some early (and recent?) versions of Unix to save reloading frequently used programs such as the shell or vi from disk.
for more info
Sticky bit - Wikipedia, the free encyclopedia
bye
-
Contributing Member
Re: Sticky bit
Thanks a lot friend, explanation is very good n understandable.
cheers
Sharif
-
Expert Member
Re: Sticky bit
Hi sharif,
Sticky bit = The bit in the mode of a Unix file which, if set for an executable, tells the kernel to keep the code loaded in swap space even after it has finished executing on the assumption that it is likely to be used again soon. This performance optimisation was included in some early (and recent?) versions of Unix to save reloading frequently used programs such as the shell or vi from disk.
If the sticky bit is set on a directory, an unprivileged user may not delete or rename files of other users in that directory even if he has write access to the directory.
The Unix "ls" command displays a set sticky bit as a "t" in the permissions of a file or directory.
Regards
Nikhil Rattan
-
Contributing Member
Re: Sticky bit
Thanksfor the information guys..
-
Junior Member
Re: Sticky bit
Hi Friends,
The most common use of the sticky bit today is on directories. Generally this is set on the /temp directory to prevent ordinary users from deleting or moving other users files.
Sticky bit is set on non-executable files: those files, when accessed , will not be cached by the kernel. This is usually set on swap files to prevent access on the file from flushing more important data from the system cache, It is also used occasionally for benchmarking tests
Example:
The sticky bit can only be set by superuser, using the chmod command(chmod +t)
# chmod +t seshadri; ls -l seshadri
-rw-r--r-T 1 root other 0 Nov 10 12:57 seshadri
Thanks & Regards
Seshadri Sethi
Last edited by sesethi; 05-22-2009 at 04:23 PM.
-
Junior Member
Re: Sticky bit
if it is correct ,please reply me ASAP
Thanks
Seshadri Sethi
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules