Where Online Learning is simpler!



$ whatis uncompress

uncompress (1) - compress or expand files

Examples:

I like to copy the error_log as tmp_log and then compress and compress it as shown below:

-rw-r--r-- 1 root root 2409238 2011-04-08 00:33 error_log

2.4M error_log

error_log: ascii textg

2.4M tmp_log

tmp_log: ascii textg

tmp_log.Z: compressed data block compressed 16 bitsg

-rw-r--r-- 1 root root 231605 2011-04-08 01:00 tmp_log.Z

259K tmp_log.Z

[Fri Apr 08 00:27:38 2011] [error] [client 173.51.166.200] Name "main::mycmd" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 29., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:28:19 2011] [error] [client 173.51.166.200] Name "main::arg" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 29., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:28:19 2011] [error] [client 173.51.166.200] Name "main::cmdargs" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 31., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:28:19 2011] [error] [client 173.51.166.200] Name "main::cmdbase" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 31., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:28:19 2011] [error] [client 173.51.166.200] Name "main::mycmd" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 29., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:33:43 2011] [error] [client 173.51.166.200] Name "main::arg" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 29., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:33:43 2011] [error] [client 173.51.166.200] Name "main::cmdargs" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 31., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:33:43 2011] [error] [client 173.51.166.200] Name "main::cmdbase" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 31., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:33:43 2011] [error] [client 173.51.166.200] Name "main::mycmd" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 29., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:33:43 2011] [error] [client 173.51.166.200] Can't open the file! at /var/apache2/2.2/cgi-bin/CH3.cgi line 37., referer: https://www.mywebuniversity.com/chapter-3.htmlg

-rw-r--r-- 1 root root 2409238 2011-04-08 01:00 tmp_log

tmp_log: ascii textg

[Fri Apr 08 00:27:38 2011] [error] [client 173.51.166.200] Name "main::mycmd" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 29., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:28:19 2011] [error] [client 173.51.166.200] Name "main::arg" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 29., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:28:19 2011] [error] [client 173.51.166.200] Name "main::cmdargs" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 31., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:28:19 2011] [error] [client 173.51.166.200] Name "main::cmdbase" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 31., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:28:19 2011] [error] [client 173.51.166.200] Name "main::mycmd" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 29., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:33:43 2011] [error] [client 173.51.166.200] Name "main::arg" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 29., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:33:43 2011] [error] [client 173.51.166.200] Name "main::cmdargs" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 31., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:33:43 2011] [error] [client 173.51.166.200] Name "main::cmdbase" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 31., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:33:43 2011] [error] [client 173.51.166.200] Name "main::mycmd" used only once: possible typo at /var/apache2/2.2/cgi-bin/CH3.cgi line 29., referer: https://www.mywebuniversity.com/chapter-3.htmlg

[Fri Apr 08 00:33:43 2011] [error] [client 173.51.166.200] Can't open the file! at /var/apache2/2.2/cgi-bin/CH3.cgi line 37., referer: https://www.mywebuniversity.com/chapter-3.htmlg

tmp_log: ascii textg

2.4M tmp_log

-rw-r--r-- 1 root root 231605 2011-04-08 01:00 tmp_log.Z

259K tmp_log.Z

tmp_log.Z: compressed data block compressed 16 bitsg

#zcat tmp_log.Z | head -5

[Fri Feb 18 20:43:52 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]g

[Fri Feb 18 20:43:53 2011] [notice] Digest: generating secret for digest authentication ...g

[Fri Feb 18 20:43:53 2011] [notice] Digest: doneg

[Fri Feb 18 20:43:54 2011] [notice] Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8o DAV/2 PHP/5.2.12 mod_fcgid/2.3.4 configured -- resuming normal operationsg

[Fri Feb 18 21:07:57 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]g

-rw-r--r-- 1 root root 2409238 2011-04-08 01:00 tmp_log

tmp_log: ascii textg

[Fri Feb 18 20:43:52 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]g

[Fri Feb 18 20:43:53 2011] [notice] Digest: generating secret for digest authentication ...g

[Fri Feb 18 20:43:53 2011] [notice] Digest: doneg

[Fri Feb 18 20:43:54 2011] [notice] Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8o DAV/2 PHP/5.2.12 mod_fcgid/2.3.4 configured -- resuming normal operationsg

[Fri Feb 18 21:07:57 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]g

Please click on " uncompress in PDF " format.

Please click on " uncompress in HTML " format.


Previous Home Page Next



Contact us     |      About us     |      Term of use      |      Copyright © 2000-2025 MyWebUniversity.com ™