- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: command bdf
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
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
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
04-07-2010 09:52 AM
04-07-2010 09:52 AM
when I run the command "bdf" shows the list of FileSystem
This list I can order it?
example:
/ Var
/ Opt
/ App1
/ App1/data1
/ App2/app2
/ App2
order:
/ App2/app2
/ App2
/ App1/data1
/ App1
/ Opt
/ Var
This is possible?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2010 09:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2010 10:10 AM
04-07-2010 10:10 AM
Re: command bdf
The list shows the FileSystem in the order of fstab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2010 10:15 AM
04-07-2010 10:15 AM
Re: command bdf
> it can be done automatically?
Well, you could simply alias 'bdf' in your '${HOME}/.profile' like:
# alias bdf='bdf|grep -v Filesystem|sort -k6,6'
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2010 11:15 AM
04-07-2010 11:15 AM
Re: command bdf
Usage: bdfmegs [ -cghlNPpqstuVv ] [
where:
-c # = Sort on column #
-d = Toggle divisor (1000 or 1024, current=1000)
-g = show gigabytes, otherwise megabytes
-h = Usage (return code=0, Usage to stdout)
-l = local (no NFS)
-M
-N
Repeat -N or use commas: -N vg10,vg24
-p ## = highlight % -ge ##
-P ## = show only % -ge ##
-q = suppress header line and no char enhancements
-s = summarize total, used and available
-t
-u = usage (return code=0, Usage to stdout)
-v = verbose (type, version, largefiles)
(version info needs read permission for mountpoint)
-V
Repeat -V or use commas: -V vg00,vg01
File(s) or dirpath(s) may be specified to reduce the output of bdfmegs:
bdfmegs -vg /usr/contrib/bin /var/tmp
If bdfmegs is run as bdfgigs (ie, a link), then -g is default.
(bdfmegs ver 5.5_Dec2009)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2010 11:31 PM
04-07-2010 11:31 PM
Re: command bdf
/App2/app2
/App2
/App1/data1
/App1
/Opt
/Var
>This is possible?
I'm not sure how you would do that. You have App2 before App1 then you have Opt then Var. (Was that a typo?)
If you want the subdirectories before the parents, you could append a ":" to the end and then "/" would sort before the ":". Then you could strip off the ":".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2010 03:33 AM
04-08-2010 03:33 AM
Re: command bdf
If you prefer it WITH the header, then you could do:
# bdf | head -n 1; bdf | grep -v Filesystem | sort -k6,6
(Ok, I know it's not performance-optimized running bdf two times, but it works like a charm.)
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2010 07:34 AM
04-09-2010 07:34 AM