Dear,
How can i check inode information in my Solaris box?
With Regards,
Mjoshi
Dear,
How can i check inode information in my Solaris box?
With Regards,
Mjoshi
what kind of inode information do you need?
If you mean inode usage data, you can use df like:
$ df -g /
/ (/dev/md/dsk/d0 ): 8192 block size 1024 frag size
41310292 total blocks 18193814 free blocks 17780712 available 2486848 total files
2293351 free files 22282240 filesys id
ufs fstype 0x00000004 flag 255 filename length
(total files = number of inodes available, free files = number of inodes free)
If you want information about a particular inode, you can use the stat command, found in the coreutils package on sunfreeware.com:
$ stat a.out
File: `a.out'
Size: 6104 Blocks: 12 IO Block: 8192 regular file
Device: 1548032h/22315058d Inode: 82 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 101/ hergp) Gid: ( 101/ rzadmin)
Access: 2010-05-19 17:28:16.409808000 +0200
Modify: 2010-05-19 17:29:49.233960000 +0200
Change: 2010-05-19 17:30:15.818544000 +0200
Run the command df -oi and the output will list the disks in your filesystem and the number of inodes used and free.
for inode number of any file/directory u can try the command
ls -laibr
it will shouw u inode number for any file/directory..However if u have the inumber and want to get to the directory/file which has the known inumber try the command
find / -inum <inumber> -print