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
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
03-05-2002 12:59 PM
03-05-2002 12:59 PM
/usr
I have /usr as 92% used in my J machine.I would like to find out which file is occuping more space.If i use sort then what will be the exact syntax.Please help.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 01:04 PM
03-05-2002 01:04 PM
Re: /usr
# cd /usr
# find . -size +2000000c
Also look for core files ..
# find . -name core
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 01:04 PM
03-05-2002 01:04 PM
Re: /usr
It's much better and faster to use du and sort in reverse numerical order to find large directories and then drill down.
du -k /usr | sort -n -r | pg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 01:06 PM
03-05-2002 01:06 PM
Re: /usr
Try this:
# cd dir_path
# du -k | sort -rn
This will list you the biggest files/directories in Kbytes.
Also you can try find command:
# find . -xdev -size +10000 -exec ll {} \; > /tmp/bigfiles
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 01:07 PM
03-05-2002 01:07 PM
Re: /usr
du -akx | sort -nr | more
This will keep output to the /usr FS only.
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 01:08 PM
03-05-2002 01:08 PM
Re: /usr
Try this,
cd /usr
du -k .
You can sort this output. Check for log files not cleared. You may have huge log files.
Look for core files,
find /usr -name core -exec ll {} \;
Remove core files from /usr,
find /usr -name core -exec rm {} \;
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 01:41 PM
03-05-2002 01:41 PM
Re: /usr
All your suggesstions are useful.Thanks.