out of space on /root
Oliver Grawert
ogra at ubuntu.com
Mon Mar 6 14:23:03 UTC 2017
hi,
On Mo, 2017-03-06 at 14:10 +0100, Xen wrote:
>
> Simos Xenitellis schreef op 06-03-2017 11:57:
>
> >
> > >
> > > In general commands such as:
> > >
> > > cat "file" | tail -n 500
> > >
> > > will get you the last 500 lines.
> >
> > Preferably, you can write straight ahead
> >
> > tail -100 /var/log/syslog
>
> Yes, that's what I said. But his files are no longer in /var/log, so
> that doesn't help.
>
no, you said to cat the file and then tail the result ... which means
reading the whole file into ram and pipe the output to read the last
500 lines ... while simos suggested to read the last 500 lines (and
only these) directly from the file (admittedly from the wrong place).
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20170306/a6cf1493/attachment.sig>
More information about the ubuntu-users
mailing list