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

    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 behavior is not desirable …

  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 different place …

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

    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.

  4. 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 looks …

  5. 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 -A /...

  6. 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. For that you …

  7. The 'less' command-line equivalent of 'tail -f'

    99 I would like to open up a file using less, and have it automatically scroll the file similar to tail -f. I know that I can do less file, and then hit Shift-F to forward forever; like tail -f. I need less because it …

  8. Why use "tail -n 1" for finding the nth line of a file in Unix?

    Mar 13, 2023 · Using head -n 7 prints 7 lines; if you only want the seventh, then tail -n 1 prints the last. The advantage of the sed command is that it works more economically when you want line 7654321 …

  9. How do I tail a log file and keep tailing it when the latest one ...

    tail monitors a single file, or at most a set of files that is determined when it starts up. In the command tail -F file_name*.log, first the shell expands the wildcard pattern, then tail is called on whatever file …

  10. How to tail multiple files using tail -0f in Linux/AIX

    The point is that tail -f file1 file2 doesn't work on AIX where tail accepts only one filename. You can do (tail -f file1 & tail -f file2) | process to redirect the stdout of both tail s to the pipe to process.