[sf-lug] What is the sticky bit?
jim
jim at well.com
Sat Apr 3 10:37:27 PDT 2010
the stat command has lots of format sequence options,
similar to the date command, uses the -c option
followed by %_ where _ is one of the "format sequence"
options; for examples:
$ stat -c %A ~
...
$ stat -c %A%x ~
...
$ stat -c %A%x%U ~
the man page suggests using
$ info coreutils 'stat invocation'
which presents a lot of invocation for those who can
use emacs editing commands.
thanks for that, rick.
On Fri, 2010-04-02 at 09:15 -0700, Rick Moen wrote:
> 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
> $
>
>
> _______________________________________________
> sf-lug mailing list
> sf-lug at linuxmafia.com
> http://linuxmafia.com/mailman/listinfo/sf-lug
> Information about SF-LUG is at http://www.sf-lug.org/
More information about the sf-lug
mailing list