Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...you guys have given us a way of asking a question and getting some very timely feedback from other users so we don't have to re-invent the wheel time and again..."

Geography

Where in the world do Tek-Tips members come from?
SamBones (Programmer)
4 Jun 12 12:53
Is there a command that shows how many inodes on a file system are available and in use? The command "apropos" doesn't seem to shed any light...

CODE

$ apropos inode clri clri (1m) - clear inode dcopy clri (1m) - clear inode fsirand fsirand (1m) - install random inode generation numbers

BTW, this is for Solaris, but also looking for a generic *NIX solution.


Helpful Member!  piperent (Programmer)
4 Jun 12 13:19
I can only speak for the systems I have worked with.

see the 'df' command. df -i should report both used and free inodes.

Hope this helps

piperent
SamBones (Programmer)
4 Jun 12 13:34
Awesome, thanks piperent. The Solaris "df" doesn't have the "-i" switch, but it does have a couple others that seem to give me what I'm looking for.

CODE

$ df -F ufs -o i Filesystem iused ifree %iused Mounted on /dev/dsk/c0t0d0s1 168563 1077773 14% / /dev/dsk/c0t0d0s3 20070 480794 4% /var /dev/dsk/c0t1d0s0 212 17084716 0% /backup /dev/dsk/c0t0d0s5 4153 2482695 0% /app /dev/dsk/c0t0d0s6 12 1246324 0% /log /dev/dsk/c0t0d0s4 19354 481510 4% /opt /dev/dsk/c0t0d0s7 7798 2531466 0% /export/home $ df -F ufs -e Filesystem ifree /dev/dsk/c0t0d0s1 1077773 /dev/dsk/c0t0d0s3 480794 /dev/dsk/c0t1d0s0 17084716 /dev/dsk/c0t0d0s5 2482695 /dev/dsk/c0t0d0s6 1246324 /dev/dsk/c0t0d0s4 481510 /dev/dsk/c0t0d0s7 2531466 $ df -g . /export/home (/dev/dsk/c0t0d0s7 ): 8192 block size 1024 frag size 42207296 total blocks 21770494 free blocks 21348422 available 2539264 total files 2531466 free files 8388623 filesys id ufs fstype 0x00000004 flag 255 filename length


Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close