About 522,000 results
Open links in new tab
  1. How does the "tail" command's "-f" parameter work?

    77 From the tail(1) man page: With --follow (-f), tail defaults to following the file descriptor, which means that even if a tail’ed file is renamed, tail will continue to track its end. This default …

  2. What is the difference between "tail -f" and "tail -F"?

    Tail will then listen for changes to that file. If you remove the file, and create a new one with the same name the filename will be the same but it's a different inode (and probably stored on a …

  3. Show tail of files in a directory? - Unix & Linux Stack Exchange

    A simple pipe to tail -n 200 should suffice. Example Sample data. $ touch $(seq 300) Now the last 200: $ ls -l | tail -n 200 You might not like the way the results are presented in that list of 200. …

  4. tail - cat line X to line Y on a huge file - Unix & Linux Stack Exchange

    Say I have a huge text file (>2GB) and I just want to cat the lines X to Y (e.g. 57890000 to 57890010). From what I understand I can do this by piping head into tail or viceversa, i.e. head …

  5. What does "tail -f " do? - Unix & Linux Stack Exchange

    7 It means tail -f command will wait for new strings in the file and show these strings dynamically. This command useful for observing log files . For example try, tail -f /var/log/messages.

  6. How do I read the last lines of a huge log file?

    Feb 20, 2024 · tail --bytes 100M logfile.log | tail However, if you're using GNU Coreutil¹'s tail implementation, that already does this (i.e., it seeks to the end of the file minus 2.5 kB, and …

  7. tail - How to limit the number of lines a command's output has ...

    I tried $ tail -n 1 -f nohup.out but it seems to affect only the initial tailin'. Generally speaking, if it is possible to limit (in this case to 1) the number of lines a command's output has …

  8. tail - Continuously print last line of file to single line on terminal ...

    Jul 15, 2018 · How can I continuously print the last line of a file to a single line in the terminal? The following works, but has a high performance hit. while true; do tail -1 /tmp/somelog | tr …

  9. Side by side output from two `tail -f` commands - Unix & Linux …

    Aug 11, 2023 · 0 I have two scripts emitting single string to log files periodically that I need to tail -f and combine side by side for which I am using paste. This works but I am unable to pipe the …

  10. tail - Tailing a New File with an Old Name - Unix & Linux Stack …

    If I tail the primary name, even with -F, it begins tailing the extant file immediately and retains the handle to that inode even when the file is renamed, ignoring the new file. The program is run …