- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Freeing space on / (root)
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
01-17-2003 09:52 AM
01-17-2003 09:52 AM
Which one could be the best way to know which folders or files are using more space on a path (in my case, root).
I just want to know this information specifically for this filesystem, because it is reaching its limit.
Thanks in advance for any suggestion!!!
Best regards
RQT
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 09:57 AM
01-17-2003 09:57 AM
SolutionTo see what directories are taking up space do:
# cd /
# du -kx | sort +n
this will give you a list of directories in / (without crossing mountpoints) and sort them in size order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 09:58 AM
01-17-2003 09:58 AM
Re: Freeing space on / (root)
du -kx /
Each directory under root will be in 1024-byte blocs.
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 09:59 AM
01-17-2003 09:59 AM
Re: Freeing space on / (root)
cd /
du -sk *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 10:02 AM
01-17-2003 10:02 AM
Re: Freeing space on / (root)
Use find command to see which file(s) is taking lots of place in /var
EX:
find /var -size +100000c -exec ls -al {} \;
Increase or decrease the number of zeroes to look for the desired file size
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 10:24 AM
01-17-2003 10:24 AM
Re: Freeing space on / (root)
This will be you useful:
du / -akx|sort -nr|more
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 10:40 AM
01-17-2003 10:40 AM
Re: Freeing space on / (root)
find / -xdev -size +2000 -depth -print -exec ls -la {} \;
raise or lower the value from 2000 as needed
the -xdev keeps the search within the root FS and will not scan /var /opt and such
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 10:58 AM
01-17-2003 10:58 AM
Re: Freeing space on / (root)
All you, gave me really usefull information.
Best Regards
RQT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 06:42 PM
01-17-2003 06:42 PM
Re: Freeing space on / (root)
ll | sort -rnk5 | more -e
Note that / never grows except by mistake. The most common reason is mispelled device files (tpyically in /dev/rmt) and bad applications that store their files in /.
Bill Hassell, sysadmin