- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to Zip the .gz files to free space in /var ?
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
09-07-2012 11:32 AM
09-07-2012 11:32 AM
How to Zip the .gz files to free space in /var ?
Hi,
How to zip log.gz files ?
These files are taki ng lot of space on /var filesystem and /var has reached 90%.
Kindly let me know the command to compress .gz files..
Regards,
Aparna.
- Tags:
- gzip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2012 11:39 AM
09-07-2012 11:39 AM
Re: How to Zip the .gz files to free space in /var ?
>let me know the command to compress .gz files.
These files have already been gzipped. I doubt you can make them much smaller, unless you use an option to change the compression level. It will be CPU intensive.
Why not move the files to storage?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2012 01:43 AM
09-10-2012 01:43 AM
Re: How to Zip the .gz files to free space in /var ?
You can also use the below command to find the 10 largest files in the /var filesystem and move it to free up space under /var.
# find /var -type f -xdev -print | xargs -e ll | sort -rn -k5 | head -n 10
Pradeep
I am an HP Employee
A quick resolution to technical issues for your HP Enterprise products is just a click away HP Support Center Knowledge-base
See Self Help Post for more details
- Tags:
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2012 12:40 PM
09-10-2012 12:40 PM
Re: How to Zip the .gz files to free space in /var ?
In this case, there is no need to use xargs with find:
find /var -type f -xdev -exec ll {} + | sort -rn -k5 | head -n 10