querry on du


 
Thread Tools Search this Thread
Operating Systems HP-UX querry on du
# 1  
Old 10-31-2006
querry on du

hi all,

To summerize disk usage in human readable format we have "du -h" in linux,which gives the
disk usage in MBs.
do we have something similar in HP-UX ?

thanks,
amit
# 2  
Old 10-31-2006
hpux du

try this

du -k --max-depth=0 /var/adm/newdir/mydir

Last edited by hynakelly; 11-13-2006 at 12:54 AM..
# 3  
Old 10-31-2006
Hi,

after doing bdf i got following output:
root@MC1/var/adm/newdir/ $ bdf mydir/
Filesystem kbytes used avail %used Mounted on
/dev/vx/dsk/rootdg/varvol 10240000 4471684 5407807 45% /var

I guess the value under "used" column is giving disk usage of entire /var directory.
but i am intrested in only /var/adm/newdir/mydir directory.

thanks,
amit
# 4  
Old 10-31-2006
Quote:
Originally Posted by amit4g
do we have something similar in HP-UX ?
Yes, we do. Get di from here: http://www.gentoo.com/di/
# 5  
Old 10-31-2006
amit4g

try this: du - sk *

Let me knowif it helps. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help in executing the following db2 sql querry in unix

Hi All, Please help me out in executing the following db2 querry in unix db2 "select AP_RQ_ACQ_INST_ID || ',' || txn_classifier || ',' || AP_RS_RESP_CD || ',' || (count(*) AS COUNT1) || ',' || (SUM(AP_RQ_TXN_AMT) AS TOTAL_AMT) from TXN_RECORD where CREATE_TS > '2010-11-22 11:00:00.008645' ... (1 Reply)
Discussion started by: dudd9
1 Replies

2. Solaris

solaris native binary ...querry

In a solaris 8 machine the native binaries are mainly kept under /bin and /usr/bin but some binaries i found in /usr/xpg4/bin please can anyone tell me in a little detail what is the reason to keep the binaries in different locations i mean /bin /usr/bin /usr/xpg4/bin ... (1 Reply)
Discussion started by: mobydick
1 Replies

3. Shell Programming and Scripting

text parsing querry

$ A=/t1/bin/f410pdb oIFS=$IFS IFS=/ $ set -- $A $ IFS=$oIFS $ echo $2 t1 $ echo $3 bin $ echo $4 f410pdb can any one please explain me what is done with IFS and how it is working internally ...i am interested to know in depth (2 Replies)
Discussion started by: mobydick
2 Replies

4. UNIX for Dummies Questions & Answers

Querry LDAP data

from aix server, is it a way to extract data from windows LDAP. i will need to extract only firstname, lastname and login either xml or csv format ? i can use ldifde command to extract above information, but i have to do it from windows server. (1 Reply)
Discussion started by: tjmannonline
1 Replies

5. UNIX for Dummies Questions & Answers

querry about xargs command

what is the real use of xargs command ..? ls -tr |xargs -I{} rm -f {} ....can any one tell me what is the significance of {} curly brackets in this command (1 Reply)
Discussion started by: mobydick
1 Replies

6. Shell Programming and Scripting

querry ..including external shell script

is there any way to include one shell script into other like include in c apart from putting it in a function (3 Replies)
Discussion started by: mobydick
3 Replies

7. UNIX for Dummies Questions & Answers

querry about ftp problem

hello , i want to know about a situation suppose i want to ftp to a system i try to login through root login root password ...will it fail i am getting ftp:500 command not recognized in a similar situation as soon as i am entering my email... (0 Replies)
Discussion started by: mobydick
0 Replies

8. UNIX for Dummies Questions & Answers

makefile ---querry

my querry is about writing makefiles:- i have gone through some sample make file and noticed that while writing the commands for a particular target.. some times two lines are written with a backslash like LD_LIBRARY_PATH="/usr/openwin/lib"; export LD_LIBRARY_PATH; \... (3 Replies)
Discussion started by: mobydick
3 Replies

9. UNIX for Dummies Questions & Answers

gcc compiler ---querry

i am newbie my querry is if i am having a gcc compiler which has been a native build with a particular version of binutilities..then when i will use this compiler to build other packages ..then in the linking stage which linker it will use if i do not set my path. ...will it uses by default... (0 Replies)
Discussion started by: mobydick
0 Replies

10. Shell Programming and Scripting

parsing output from SQL querry

Hi all I have this output in a variable called ...yes $OUTPUT :-) original...huh these are tablespaces in an Oracle db how do I get this into another variable in two columns so I can do a check on the numbers (space left) SYSTEM 290; USERS 19; UNDOTBS1 1863; DATA 5982; SYSTEM 290; USERS... (7 Replies)
Discussion started by: ludvig
7 Replies
Login or Register to Ask a Question