out of space on /root
Xen
list at xenhideout.nl
Mon Mar 6 13:10:34 UTC 2017
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.
> 3. I think it is more performant not to start with "cat" because "cat"
> would go reading through all the file
Yes, that's what I said.
> before "tail" will be able to prune all but the last 100 lines.
> Perhaps "tail" has some optimizations to ignore reading the majority
> of the 27GB syslog,
Yes, that's what I said.
> so it is better to to just "tail".
Yes, that's what I said ;-).
More information about the ubuntu-users
mailing list