- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File system
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
11-05-2007 12:59 AM
11-05-2007 12:59 AM
File system
to check the /tmp, the following command #du -sk *|sort -nr|more.
But for / file system it does not work,
can you suggest me command to to sort the file or folder with greater size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2007 01:03 AM
11-05-2007 01:03 AM
Re: File system
Works for me:
root@sha1 [ / ]
# du -sk * |sort -n
0 SD_CDROM
0 bin
0 dvdrom
0 lib
0 lost+found
0 mnt
0 mnt-aix
0 net
0 sha1_xpinfo.csv
0 users
0 {print $2}
8 mapfile
8 sha1.err
8 sha1_xpinfo.txt
8 zmnt
8 zzz
100 dev
128 sha1.txt
144 sha1.html
139992 sbin
184856 etc
217720 tmp
268008 stand
1063160 home
3656416 var
4675736 opt
7918144 usr
15207316 v00
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2007 01:04 AM
11-05-2007 01:04 AM
Re: File system
# du -kx | sort -rn | more
# find / -type f | -size +10000 -exec ll {} \;
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2007 01:05 AM
11-05-2007 01:05 AM
Re: File system
hasan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2007 01:06 AM
11-05-2007 01:06 AM
Re: File system
Because you pipe to sort and more, the output will only show when the complete command has completed.
On the / filesystem this may take a quite a while, depending on your system.. but it should work.
Cheers,
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2007 01:16 AM
11-05-2007 01:16 AM
Re: File system
If you truly want to confine yourself to the '/' filesystem and not visit mountpoints subordinate to it (e.g. /tmp, /var) then you must add the '-x' switch:
# du -xk / | sort -k1,1nr | more
Regards!
...JRF...