Mailinglist Archive: opensuse (2358 mails)
| < Previous | Next > |
Re: [SLE] Clearing log files
- From: alexm@xxxxxxxxxxx (alex medvedev)
- Date: Sat, 16 Oct 1999 17:12:29 -0500 (CDT)
- Message-id: <Pine.LNX.4.10.9910161710410.1592-100000@xxxxxxxxxxxxxx>
Hi,
i usually do "cp /dev/null /var/log/messages" or
simply "vi file", then ":0" then "dG"
-alexm
On Sun, 17 Oct 1999, Steve Crane wrote:
> On Sat, Oct 16, 1999 at 02:37:48PM -0700, Jon Pennington wrote:
> > The preferred method as I understand it is to `cat /dev/null >
> > /path/logfile' (or was it echo?), which overwrites the file with no data.
>
> Thanks, this worked fine for /var/log/fetchmail but I get permission
> denied (even as root) for /var/log/messages.
--
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 FAQ at http://www.suse.com/Support/Doku/FAQ/
| < Previous | Next > |