Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In Linux, if you are viewing a live log, log.txt, what is best command to view the last 10 lines of that log file, in real time?
Answer
tail -n 10 -f log.txt
^^ note -f will keep showing lines at end of log file, as they get appended, in real time

Question
In Linux, if you are viewing a live log, log.txt, what is best command to view the last 10 lines of that log file, in real time?
Answer
?

Question
In Linux, if you are viewing a live log, log.txt, what is best command to view the last 10 lines of that log file, in real time?
Answer
tail -n 10 -f log.txt
^^ note -f will keep showing lines at end of log file, as they get appended, in real time
If you want to change selection, open document below and click on "Move attachment"

4. Basic Commands
...] Writes the contents of all the files listed to the screen, reversing the order of the lines--that is, printing the last line of the file first. tac is cat backwards and behaves similarly. <span>tail [-f] [-n <lines>] <filename> Prints the last <lines> lines of a file or 10 lines if the -n option is not given. The -f option means to watch the file for lines being a

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.