[sf-lug] What is the sticky bit?

Rick Moen rick at linuxmafia.com
Fri Apr 2 09:15:57 PDT 2010


Quoting Grant Bowman (grantbow at gmail.com):

> What is the sticky bit?

Ah, one of my standard interview questions.  ;->

> So what is a directory?  It is a special type of inode.  Each block
> group has it's own inode table that contains not only the file name
> and inode reference but in later ext2 "revisions" also contains a copy
> of the file type of the referenced inode.  I hope others on the list
> will find some of this useful.

Tip:  Play around with the "stat" command, and you'll learn some
rather interesting things about what data are stored in inodes for files 
you ask the "stat" command about (including for directories).

$ stat /home/rick
  File: `rick'
  Size: 20480           Blocks: 40         IO Block: 4096   directory
Device: 903h/2307d      Inode: 162881      Links: 53
Access: (0755/drwxr-xr-x)  Uid: ( 1000/    rick)   Gid: ( 1000/    rick)
Access: 2010-04-02 09:11:58.000000000 -0700
Modify: 2010-04-02 09:10:02.000000000 -0700
Change: 2010-04-02 09:10:02.000000000 -0700
$





More information about the sf-lug mailing list