Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Compress your 'man' pages to save space System
Run this command:
gzip -f /usr/share/man/man1/*
to save some disk space!

Re-run for man2 to man8... Also run on any other man directories you might have (like /usr/X11R6/man if you installed XFree86 or /usr/local/man if you installed lots of 3rd party UNIX software).

The command will compress the man pages, significantly reducing their space usage. after that, 'man' will be a bit slower because it has to decompress all the man pages before display, but it's worth it if you want some drive space back.
  • Currently 4.25 / 5
  You rated: 3 / 5 (4 votes cast)

Compress your 'man' pages to save space | 2 comments | Create New Account
Click here to return to the 'Compress your 'man' pages to save space' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
compressing 'man' pages
Authored by: grotz on Apr 13, '01 09:17:33AM

...just how much space can man pages take up?
I'm curious as they are nothing but text ....

[ Reply to This | # ]
About 20mb...
Authored by: robg on Apr 13, '01 09:28:08AM
Here's the output from "du -h" (disk usage, human readable, installed with GNU file utilities) on my hard drive:
% du -h
8.3M ./man1
780k ./man2
6.9M ./man3
396k ./man4
732k ./man5
4.0k ./man6
356k ./man7
1.3M ./man8
19M .
The last number shows the total at 19mb, so compression will free up a good bit of space - especially since they are text files.

[ Reply to This | # ]