Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: about detecting hard drives with problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about detecting hard drives with problems



On Tue, November 21, 2006 2:46 pm, Shawn Welter wrote:
> You can also use zcat  which is in /usr/bin
> so you would get this command
>
> zcat var/log/system.log.0.gz | grep "I/O"

Heh. While they are separate binaries they are the same thing.

from man zcat...
<snip>
NAME
       gzip, gunzip, zcat - compress or expand files

SYNOPSIS
       gzip [ -acdfhlLnNrtvV19 ] [-S suffix] [ name ...  ]
       gunzip [ -acfhlLnNrtvV ] [-S suffix] [ name ...  ]
       zcat [ -fhLV ] [ name ...  ]

</snip>

Even more fun...

dhcp172-21s10n84:~ jwisenba$ crc32 /usr/bin/zcat
21b9c4c7
dhcp172-21s10n84:~ jwisenba$ crc32 /usr/bin/gzip
21b9c4c7
dhcp172-21s10n84:~ jwisenba$ crc32 /usr/bin/gunzip
21b9c4c7

Or

dhcp172-21s10n84:~ jwisenba$ cksum /usr/bin/zcat
3714269913 129920 /usr/bin/zcat
dhcp172-21s10n84:~ jwisenba$ cksum /usr/bin/gzip
3714269913 129920 /usr/bin/gzip
dhcp172-21s10n84:~ jwisenba$ cksum /usr/bin/gunzip
3714269913 129920 /usr/bin/gunzip

:)

Josh

> On Nov 21, 2006, at 5:42 AM, Peter Bukowinski wrote:
>
>> To read the a .gz'ed log file, simply 'gunzip -c' it. For example:
>>
>>    gunzip -c /var/log/system.log.0.gz | grep "I/O"
>
> -------
> Shawn Welter
> Systems Administrator.
> Dark Horse Comics, Inc.
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Remote-desktop mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


--
Josh Wisenbaker
U, U, D, D, L, R, L, R, B, A, Start for your server
http://www.afp548.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: about detecting hard drives with problems (From: Peter Bukowinski <email@hidden>)
 >Re: about detecting hard drives with problems (From: Shawn Welter <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.