[Courses][Linux comands] tee, file, stat, find
Katie Bechtold
katie at katie-and-rob.org
Wed Mar 10 14:33:53 EST 2004
On Wed, Mar 10, 2004 at 09:30:18AM -0800, Carla Schroder wrote:
> stat
> this command gives you the complete dish on files:
Wow, how have I managed to live this long without finding out about
stat? This looks like a great tool -- thanks, Carla!
Now I have a question -- what's up with the number of links to a
directory file? For instance, I tried this:
# stat Mail
File: `Mail'
Size: 3256 Blocks: 7 IO Block: 4096
directory
Device: 303h/771d Inode: 184799 Links: 3
Access: (0710/drwx--x---) Uid: ( 1000/ katie) Gid: ( 100/
users)
Access: 2003-11-11 04:30:58.000000000 -0500
Modify: 2004-03-10 13:10:15.000000000 -0500
Change: 2004-03-10 13:10:15.000000000 -0500
# find / -inum 184799
/home/katie/Mail
What's going on there? There are three links to the directory Mail,
but "find" only finds one.
--
Katie Bechtold http://katie-and-rob.org/
Many receive advice, few profit by it.
-- Publilius Syrus
More information about the Courses
mailing list