- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how do I check what are the biggest files in /...
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
тАО07-11-2005 07:58 PM
тАО07-11-2005 07:58 PM
i know its the du command but with what options?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 08:02 PM
тАО07-11-2005 08:02 PM
Re: how do I check what are the biggest files in /var & its subdirectories
try:
# du -ka|sort -rnk1|more
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 08:03 PM
тАО07-11-2005 08:03 PM
Re: how do I check what are the biggest files in /var & its subdirectories
try this
find /var -size +5000000c -xdev -exec ll {} \;
where the files more than 5MB will be listed below directories and subdirectories of var
you can use du command also
cd /var
du -ks * |sort -rn |head
Good luck
Vinod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 08:04 PM
тАО07-11-2005 08:04 PM
Re: how do I check what are the biggest files in /var & its subdirectories
try too:
du -kx /var | sort -rn | more
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 08:04 PM
тАО07-11-2005 08:04 PM
Re: how do I check what are the biggest files in /var & its subdirectories
find /var -type d |xargs du -sk |sort -n
That might work.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 08:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 08:17 PM
тАО07-11-2005 08:17 PM
Re: how do I check what are the biggest files in /var & its subdirectories
root@hp10:/var -: find /var -size +10000000c -exec || {}\;|more
find: -exec requires an argument
sh: {};: not found.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 08:24 PM
тАО07-11-2005 08:24 PM
Re: how do I check what are the biggest files in /var & its subdirectories
it should be:
# find /var -size +10000000c -exec ls -ld {}\;
regards.
(p.s. please remember to assign points.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 08:25 PM
тАО07-11-2005 08:25 PM
Re: how do I check what are the biggest files in /var & its subdirectories
# find /var -size +10000000c -exec ls -ld {} \;
du command may be use as well.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 08:28 PM
тАО07-11-2005 08:28 PM
Re: how do I check what are the biggest files in /var & its subdirectories
find /var \( -type f -o -type d \) -exec du -k {} \+ | sort -rn | more
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 08:42 PM
тАО07-11-2005 08:42 PM
Re: how do I check what are the biggest files in /var & its subdirectories
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 08:45 PM
тАО07-11-2005 08:45 PM
Re: how do I check what are the biggest files in /var & its subdirectories
Another solution from me;
cd var;
find . -type f -exec ls -lrt {} \;|sort +4n
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 12:09 PM
тАО07-12-2005 12:09 PM
Re: how do I check what are the biggest files in /var & its subdirectories
"du -x | sort -n"
~Pradeep.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 02:03 PM
тАО07-12-2005 02:03 PM
Re: how do I check what are the biggest files in /var & its subdirectories
Probably you missed a space.
find
find /var -size +1000000c -exec ll {} \;|more
-rw-r--r-- 1 root sys 1094905 Jul 9 07:25 /var/adm/sw/products/I
NDEX
-r--r--r-- 1 bin bin 1168874 Jun 12 2003 /var/stm/data/eventdef
-r-xr-xr-- 1 bin bin 2280478 Mar 17 2003 /var/stm/data/tools/ve
rify/trap_big.bm
Sudeesh