What is TAIL command?
What is TAIL command?
Rating:
The
where, n is the number of lines a user wants to view. If no value is provided for n, ten lines will be retrieved.
For example, the following command is used to view the last ten lines of the /var/log/messages log file:
The following command is used to view the last twenty lines of the /var/log/messages log file.
Using option -f with the command displays its log entries when a message is added to a file. For example, the following command opens up the the /var/log/messages log file when a log entry is added to the file:
Rating:
Other articles
- What are SUID and SGID?
- What is UMOUNT command?
- What is GREP command?
- What is APROPOS command?
- What is VI?