About 190,000 results
Open links in new tab
  1. What is the difference between "tail -f" and "tail -F"?

    tail -f fill not retry and load the new inode, tail -F will detect this. The same effect will happen if you rename/move a file. If you for example follows /var/log/messages and logrotate rotates the log to /var/log/messages.1. tail with -f will still listen to the old inode that points to messages.1. tail with -F will realize this and read the ...

  2. 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 when you really want to track the actual name of the file, not the file descrip- tor (e.g., log rotation).

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

    Nov 28, 2013 · Barring your files don't include strange characters in their names, such as spaces, new lines, etc. 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 …

  4. tail -f, but with line numbers - Unix & Linux Stack Exchange

    @OlivierDulac, tail -n +1 (read anything from the start position) addresses the race condition concerns. It will read the lines that were not in the file at the time wc -l terminated, from the exact position wc left it. So NR will have the right position regardless of how many lines have been written in between wc ending and tail starting.

  5. logs - `tail -f` until text is seen - Unix & Linux Stack Exchange

    You can pipe the tail -f into sed, telling it to quit when it sees the line you're searching for: tail -f /path/to/file.log | sed '/^Finished: SUCCESS$/ q' sed will output each line it processes by default, and exit after it sees that line. The tail process will stop when it tries to write the next line and sees its output pipe is broken

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

    In addition, tail will not read any more than head, so thus we have shown that head | tail reads the fewest number of lines possible (again, plus some negligible buffering that we are ignoring). The only efficiency advantage of a single tool approach that does not use pipes is fewer processes (and thus less overhead).

  7. shell - grep and tail -f? - Unix & Linux Stack Exchange

    Use --follow=name in that case. That causes tail to track the named file in a way that accommodates renaming, removal and creation. So, the tail portion of my command equates to tail --follow --retry --lines=+0, where the final argument directs it …

  8. How to view the output of a running process in another bash …

    Then, read from it. You can always do that with things like tail, to minimize output, etc. Whenever you clear the pipe (read from it), it gets cleared, so the output is not preserved. The other option would be to write everything to a file (much like a logfile) and then analyze it an any time.

  9. tail program output to file in Linux - Unix & Linux Stack Exchange

    I know we can use below format to redirect the screen output to a file: $ your_program > /tmp/output.txt However when I used below command, it says "-bash: /home/user/errors.txt: Permission den...

  10. tail - Observe multiple log files in one output - Unix & Linux Stack ...

    Dec 4, 2012 · Another improvemtn, actually main reason I wrote this, is the ability to have .splexrc.json files in different folders, so instead having to type tail -f f1 f2 f3in one folder, then different files in other, you can write .splexrc.json file in root of your project and just type splex without file list arguments and it automatically stream ...

Refresh