- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to view in human readble format?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 07:25 AM
тАО10-22-2009 07:25 AM
we use bdf cmd to view the used and avail space is there any cmd to see directly in GB format, bdf gives in kbytes.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 07:29 AM
тАО10-22-2009 07:29 AM
Re: how to view in human readble format?
you can use
#du -hs
regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 07:33 AM
тАО10-22-2009 07:33 AM
Re: how to view in human readble format?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 07:36 AM
тАО10-22-2009 07:36 AM
Re: how to view in human readble format?
ON WHAT?
uname -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 07:37 AM
тАО10-22-2009 07:37 AM
Re: how to view in human readble format?
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1369648
which will do what you require (plus a heap of other neat stuff)
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 07:43 AM
тАО10-22-2009 07:43 AM
Re: how to view in human readble format?
Not on HP-UX. There is no '-h' option.
I also recommend Bill Hassels bdfmegs script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 07:39 PM
тАО10-22-2009 07:39 PM
Re: how to view in human readble format?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 07:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 07:47 PM
тАО10-22-2009 07:47 PM
Re: how to view in human readble format?
Above script hold good :)
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 08:11 PM
тАО10-22-2009 08:11 PM
Re: how to view in human readble format?
You can use this single command to print bdf o/p in GB:
# bdf | grep -v Filesystem | awk '{ printf ("%s\t %d\t %d\t %d\t %s\t %s\t \n", $1, $2/1048576, $3/1048576, $4/1048576, $5, $6)}'
Only thing is that it will not print the first line (heading) :(
Note: There are 1 or 2 exceptions unless it works fine on your system.
Regds..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 09:38 PM
тАО10-22-2009 09:38 PM
Re: how to view in human readble format?
If you use "%f" in place of "%d", you will get output in decimal places.
Ex:
# bdf | grep -v Filesystem | awk '{ printf ("%s\t %f\t %f\t %f\t %s\t %s\t \n", $1, $2/1048576, $3/1048576, $4/1048576, $5, $6)}'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 10:35 PM
тАО10-22-2009 10:35 PM
Re: how to view in human readble format?
Hi Fizan,
No such , Thing like humean readable format?
even before the (gigbyte) its (kilobyte) measuring term for bits & btyes - Binary Digit Conversion
,
As mentioned above "You can use " Bill's ,excellent :) make our life easy,
or couple choices,
1. Use http://www.onlineconversion.com/computer_base2.htm
2. (total size) / 1024 = (GB)
Thanka,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 11:05 PM
тАО10-22-2009 11:05 PM
Re: how to view in human readble format?
for bill and all helped me a lot for this conversion by providing scripts.