- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Seeing file size in Megs by using command ll or ls...
Operating System - HP-UX
1823714
Members
4087
Online
109664
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО06-16-2009 09:29 AM
тАО06-16-2009 09:29 AM
Hi,
I need to see file size and directory size (including its subdirectories)
in MegaByte or GigaByte while executing the command ll or ls -lrt.
Can anyone let me know the option to use after ll or ls -lrt by using
pipe (|) filter ?
Thanks,
Shiv
I need to see file size and directory size (including its subdirectories)
in MegaByte or GigaByte while executing the command ll or ls -lrt.
Can anyone let me know the option to use after ll or ls -lrt by using
pipe (|) filter ?
Thanks,
Shiv
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2009 09:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2009 10:30 AM
тАО06-16-2009 10:30 AM
Re: Seeing file size in Megs by using command ll or ls -lrt and pipe filter
Install coreutils.
http://hpux.connect.org.uk/hppd/hpux/Gnu/coreutils-7.4/
It has the GNU version of ls. You can use the -h (human-readable) option to get the sizes in Megs, Gigs, etc.
http://hpux.connect.org.uk/hppd/hpux/Gnu/coreutils-7.4/
It has the GNU version of ls. You can use the -h (human-readable) option to get the sizes in Megs, Gigs, etc.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2009 10:34 AM
тАО06-16-2009 10:34 AM
Re: Seeing file size in Megs by using command ll or ls -lrt and pipe filter
I guess I should also mention that you will want to add /usr/local/coreutils/bin to your PATH variable before /bin. Otherwise you will still be using the sysV/bsd style ls.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP