tail
Linux · Text · available in the simulator
What it does
Output the last part of files.
Syntax
tail [-n líneas] [-f] [archivo...]
Options and parameters
-n NLast N lines
-fOutput appended data as the file grows.
tail -f /var/log/syslog-c NLast N bytes
-nOutput the specified last lines; defaults to 10.
tail -n 50 archivo.log-FSame as -f, but follow by filename and retry if rotated.
-cOutput the specified last bytes.
Usage examples
tail archivo.txttail -n 50 log.txttail -f /var/log/syslogtail -f app.logtail -n 50 archivo.log