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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check a file used space?

Status
Not open for further replies.

redbub

Technical User
Jun 6, 2001
14
US
I want to figure out how much space do the samba used in my aix system. what can I do?
Thanks
 
check FS using:

* df -k (display mounted FS)
* ls -all (go to samba directory and list)
* ps -ef | grep samba (i dunno samba's running process)

these are just a few commands to start with.

goodluck!
 
Thanks. I got it.
I forget I can use "du -k'.


redbub
 
I guess you must try something like
[tt]
du -ks `lslpp -f *samba* | cut -c25- | grep '^/'`
[/tt]
because samba installs in shared directories with some GNU tools.
I hope it works...
Unix was made by and for smart people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top