Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I wanna know howmuch disk space I used...

Status
Not open for further replies.

swaroop

Programmer
Feb 4, 2001
100
US
I wanna know what is the disk space occupied by my files in directories and subdirs.
Please I need script for this.

Thanks in advance.

Regards,

Swaroop.
 
Annihilannic I downloaded your dispus program and it kinda works. I'm running AIX 5100-04 and here is the error I get from your program:

mount: A flag requires a parameter: v
Usage: mount [-fipr] [-n Node] [-o Options] [-t Type] [-{v|V} Vfs]
[-a | all | [[Node:]Device] [Directory]]
dispus v2.3 - Reading usage in /

1. 2,190,504 KB usr
2. 364,896 KB proc
3. 63,949 KB var
4. 55,062 KB opt
5. 37,996 KB tmp
11,636 KB core
7. 5,044 KB etc
8. 3,824 KB lpp
9. 3,684 KB gtechcommands
3,436 KB gtkcmds.tar
11. 2,993 KB home
12. 2,244 KB sbin
13. 368 KB .netscape
196 KB smit.log
15. 172 KB .dt
76 KB smit.script

1 to 16 of 66 shown ? - help f - forward q - quit

dispus>
 
Ooo, I don't have access to AIX, so it's good to see that it has worked that well.

Could you please post an example of the output of the mount command on AIX and I'll adapt it as necessary.

Also, what does the uname command return on AIX?

Annihilannic.
 
I would manually change the command and add Vfx after the -v as mentioned on the "usage:".

This may still not work, as the output of the mount on Aix may not be the one expected by the script.


Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Here is the mount output

363: mount -v
mount: A flag requires a parameter: v
Usage: mount [-fipr] [-n Node] [-o Options] [-t Type] [-{v|V} Vfs][-a | all | [[Node:]Device] [Directory]]

362: mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs Sep 11 15:41 rw,log=/dev/hd8
/dev/hd2 /usr jfs Sep 11 15:41 rw,log=/dev/hd8
/dev/hd9var /var jfs Sep 11 15:41 rw,log=/dev/hd8
/dev/hd3 /tmp jfs Sep 11 15:41 rw,log=/dev/hd8
/dev/hd1 /home jfs Sep 11 15:41 rw,log=/dev/hd8
/proc /proc procfs Sep 11 15:41 rw
/dev/hd10opt /opt jfs Sep 11 15:41 rw,log=/dev/hd8
/dev/lv00 /audit jfs Sep 11 15:41 rw,log=/dev/hd8
/dev/lv01 /d2 jfs Sep 11 15:41 rw,log=/dev/hd8

364: uname
AIX
[testdb2::root]:/
365: uname ?
Usage: uname [-snlrvmaxupMS:T:L]
 
Thanks for the information. Could you please email me at annihilannic (at) hotmail.com so I can send you a test version?

Annihilannic.
 
I've uploaded a new version of dispus which should work fine on AIX.

Thanks to lblauen for testing it!

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top