Results 1 to 7 of 7

Thread: Sticky bit

  1. #1
    Contributing Member
    Join Date
    Dec 2006
    Answers
    39

    Sticky bit

    can any one explain the sticky bit concept??

    Last edited by sharifhere; 01-16-2007 at 07:50 AM. Reason: corrected typo

  2. #2
    Expert Member
    Join Date
    Oct 2005
    Answers
    383

    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


    :)
    NEVER SAY DIE.

  3. #3
    Contributing Member
    Join Date
    Dec 2006
    Answers
    39

    Re: Sticky bit

    Thanks a lot friend, explanation is very good n understandable.
    cheers
    Sharif


  4. #4
    Expert Member
    Join Date
    Dec 2006
    Answers
    139

    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


  5. #5
    Contributing Member
    Join Date
    Dec 2006
    Answers
    39

    Re: Sticky bit

    Thanksfor the information guys..


  6. #6
    Junior Member
    Join Date
    Oct 2008
    Answers
    6

    Thumbs up 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.

  7. #7
    Junior Member
    Join Date
    Oct 2008
    Answers
    6

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact