HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: List files with descending order
Operating System - HP-UX
1825747
Members
2383
Online
109687
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
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
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
04-19-2004 09:50 PM
04-19-2004 09:50 PM
Hi All,
I need help on this. I need to list files with descending order (from bigger to smaller size)on a particular directory.
Anyone can tell me how I can do that?
Example :
# ll vg*
-rw-r--r-- 1 root sys 0 Apr 19 23:08 vg_check
-rw-r--r-- 1 root sys 5826 Apr 19 15:41 vgdisplay.out
-rw-r--r-- 1 root sys 232 Apr 19 23:03 vglv
-rw-r--r-- 1 root sys 29 Apr 19 22:17 vgs
-rw-r--r-- 1 root sys 41 Apr 19 23:08 vgstd_check
The output must be :
-rw-r--r-- 1 root sys 5826 Apr 19 15:41 vgdisplay.out
-rw-r--r-- 1 root sys 232 Apr 19 23:03 vglv
-rw-r--r-- 1 root sys 41 Apr 19 23:08 vgstd_check
-rw-r--r-- 1 root sys 29 Apr 19 22:17 vgs
-rw-r--r-- 1 root sys 0 Apr 19 23:08 vg_check
Thanks in advance.
Rgds,
Negara
I need help on this. I need to list files with descending order (from bigger to smaller size)on a particular directory.
Anyone can tell me how I can do that?
Example :
# ll vg*
-rw-r--r-- 1 root sys 0 Apr 19 23:08 vg_check
-rw-r--r-- 1 root sys 5826 Apr 19 15:41 vgdisplay.out
-rw-r--r-- 1 root sys 232 Apr 19 23:03 vglv
-rw-r--r-- 1 root sys 29 Apr 19 22:17 vgs
-rw-r--r-- 1 root sys 41 Apr 19 23:08 vgstd_check
The output must be :
-rw-r--r-- 1 root sys 5826 Apr 19 15:41 vgdisplay.out
-rw-r--r-- 1 root sys 232 Apr 19 23:03 vglv
-rw-r--r-- 1 root sys 41 Apr 19 23:08 vgstd_check
-rw-r--r-- 1 root sys 29 Apr 19 22:17 vgs
-rw-r--r-- 1 root sys 0 Apr 19 23:08 vg_check
Thanks in advance.
Rgds,
Negara
Santos
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 09:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:04 PM
04-19-2004 10:04 PM
Re: List files with descending order
Thanks. I got it.
Santos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:09 PM
04-19-2004 10:09 PM
Re: List files with descending order
Hi
I use
du -sk * | awk '{ printf("%8d %\n",$1,$2) }' | sort -r
Rgds
Michael
I use
du -sk * | awk '{ printf("%8d %\n",$1,$2) }' | sort -r
Rgds
Michael
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP