Brief IntroductionThe Tail command writes the file to standard output from the specified point and uses the "-f" option of the tail command to easily view the log file that is being changed, and "Tail-f filename" will display the top-most contents of the filename on the screen and constantly refresh, You can see the latest file content. 1. Command Formattail[necessary parameters [selection parameters] [file]2. Command functionused to display the content at the end of the specified file, and is processed as input when the file is not specified. Common view log files. 3. Command Parameters- F: Loop read- Q: Do not display processing information-V: Displays detailed processing informationnumber of-c<;: Number of bytes displayed-n< rows;: Displays the number of rows4. Example1) Display the end of the file:tail-n 5 Log.log2) Start displaying the file from line 5th:tail-n +5 Log.log3) cycle through the contents of the file:tail-f Log.log
Linux under tail command