tail

tail : Output the last few lines of the file.

It is very convenient for linux to view the log, if the log file is: Console.log
usage:
1. tail Console.log
    The content of the last 10 lines of the output file
2.  tail -n 5 Console.log
    The content of the last 5 lines of the output file
3. tail -nf Console.log --n is the last n lines (default 10 lines when n is not input)
    Output the content of the last n lines of the file, while monitoring the changes of the file, as long as there is a change in the file, it will be refreshed and displayed synchronously

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325318546&siteId=291194637
Recommended