Mailinglist Archive: opensuse (3378 mails)

< Previous Next >
Re: [SLE] Replacing Hard Drive
  • From: Nick Selby <php@xxxxxxxxxxxxx>
  • Date: Thu, 04 Apr 2002 15:45:07 +0200
  • Message-id: <5.0.0.25.2.20020404154449.04513d20@xxxxxxxxxxxxxxxxxx>
DOH!


At 02:23 PM 4/4/2002 +0100, you wrote:
On Thu, Apr 04, 2002 at 03:10:01PM +0200, php@xxxxxxxxxxxxx wrote:
> Hmmm. When I did cat /dev/null it started scrolling for about a week
> (actually about two hours) but I got the impression it was COPYING the file
> to /dev/null not moving the cvontents there. Was that just plain wrong of
> me?


You remembered the redirection arrow?

cat /dev/null > /var/log/messages

^
|
This is important

what it's doing is copying /dev/null (which is a zero-length file)
to overwrite /var/log/messages.

If you miss out the arrow, then you're just asking cat to display
the contents of /dev/null and /var/log/messages on the screen.
I'm not surprised that it scrolled for ages.

--
David Smith | Tel: +44 (0)1454 462380 Home: +44 (0)1454 616963
STMicroelectronics | Fax: +44 (0)1454 617910 Mobile: +44 (0)7932 642724
1000 Aztec West | TINA: 065 2380
Almondsbury | Work Email: Dave.Smith@xxxxxx
BRISTOL, BS32 4SQ | Home Email: David.Smith@xxxxxxxxxxxxxxxxxxxx

--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com


< Previous Next >