Unix command to view the end of a file

learn more… | top users | synonyms

2
votes
2answers
998 views

GUI for tail for Linux

Could someone recommend a graphical tail kind of document viewer? So that I could open a document, scroll up and down, etc. and that the document would refresh itself automatically (without prompting, ...
1
vote
1answer
227 views

^L while tail -f is running

I frequently use tail to monitor errors: tail -f /var/log/apache2/error_log I can use the shortcut cmd+K to clear the screen (OSX), but I've grown accustomed to using ^L in other linuxy situations. ...
3
votes
5answers
896 views

Linux application to tail multiple log files (like OS X Console.app)

I'm constantly tailing log files. At any given time I've got half a dozen terminal windows open that are simply running tail -f . In OS X, the Console app is brilliant. All the usual log files are ...
2
votes
0answers
343 views

tail -f is not updating on AFP mounted share

I am running Mac OS 10.6.8 I have mounted a network drive, whose file I need to watch. I was planning on using tail. When I run the following: tail -f /Volumes/Cache-A/TransferLog.txt I end up ...
1
vote
1answer
338 views

Equivalent of tail/less --follow-name under OS X

I need to tail -f a log file that is rotated. This is the exact same issue as the one here, but on OS X: Why does less tail mode stop working? So how can I constantly track a file whose inode might ...
0
votes
2answers
380 views

How can I have ls follow the content of a directory like tail -f does on a file

I want to basically continuously update the file list of a directory similar to how tail does with the -f flag on a file. is there any reasonable way to do this?
2
votes
1answer
140 views

Tail keeps snapping to the bottom after i scroll up with mousewheel

I'm having a problem with tail in Xubuntu (Xfce 4). In my previous ubuntu install (Ubuntu 9.10), if i was tailing a file with tail -f myfile, i could scroll up with the mousewheel to look at an ...
2
votes
2answers
463 views

appending timestamp to tail -f results

I would like to have a timestamp printed in front of every line that comes out of a "tail -f outputfile", so that I know when is each line printed in. Something like: [...] 20110617_070222:results ...
56
votes
10answers
33k views

Is it possible to `tail -f` the output of `dmesg`?

Want to do something like dmesg | tail -f but it doesn't work: I use Mac OSX 10.6.7, by doing that the tail will exit, instead of monitoring the output. I wonder if there is any way to do it, or ...
0
votes
1answer
446 views

How to use tail -f with sound?

I am trying to use tail -f and play a sound everytime a new line appears. I tried this: for i in tail -f myFile; do aplay alert.wav; done; Which kinda worked, the output is: Playing WAVE ...
2
votes
3answers
498 views

How to grab a random section in the middle of a huge file?

I have a huge log file of around 3.5 GB and would like to sample random sections in the middle of say 10 MB for the purpose of debugging what my application is doing. I could use head or tail ...
9
votes
10answers
11k views

Monitoring a file until a string is found

I am using tail -f to monitor a log file that is being actively written to. When a certain string is written to the log file, I want to quit the monitoring, and continue with the rest of my script. ...
1
vote
2answers
528 views

tail stops working

I am tailing a file in unix. It stops working sometimes and I have to re-run the command. Anyone know why this happens?
0
votes
1answer
209 views

Shell doesn't display input characters after “tail -f”

I use "tail -f" to monitor log files. After interrupted by ctrl-c, the shell doesn't display my input chars from keyboard any more. Something like terminal> tail -f /log/a.log then ctrl-c ...
1
vote
1answer
337 views

Tail the filename, not the file

In UNIX (OS X BSD to be precise), I have a "tail -f" command on a log file. From time to time I want to delete this log file so I can more easily review it in my text editor. I delete the file, and ...
1
vote
2answers
2k views

How to use tail.exe : Windows 2003 Resource kit tool

Tail.exe from Windows 2003 Resource kit link to download page I tried "option -f filename.xyz" - this doesnot seem to update. In my .net app, log file is updated using this code : FileStream ...
1
vote
1answer
939 views

pipes & tail -f in linux

Is it possible to execute cat logfile | tail -f? For some reason it just reads the initial log, but then it doesn't update incoming entries. I know I can directly do tail -f logfile. I just wanted ...
1
vote
1answer
861 views

Unix “tail” that clears screen on truncation?

Using tail -F to follow a file that might not exist yet, and it works across truncations, as follows: tail: cannot open `mylog.log' for reading: No such file or directory tail: `mylog.log' has ...
0
votes
4answers
3k views

tail -v a file while excluding a list of words

I'd like to tail a log file that's continuously being written to but would like to exclude various entries that are 'common' so I only see errors, etc. as they are thrown. I can pipe to grep -v ...
1
vote
2answers
135 views

How can I tail a file and capture the output for one minute?

I am tailing a log file. How can I capture the output for one minute?
4
votes
3answers
1k views

Tail multiple files while piping one of the files through grep

I want to use tail follow two log files, but one of the log files has too much data, so I want it filtered with grep. tail -f file1 file2|grep mySearch The issue with this is that both files are ...
5
votes
3answers
2k views

tail -f not tracking file changes

I was recently looking into using tail -f to monitor some text files like so: tail -f /var/sometext However, when I did some testing, it doesn't seem to work. What I did was I created a new file and ...
20
votes
2answers
4k views

Using watch with pipes

I'd like to run this command: watch -n 1 tail -n 200 log/site_dev.log | grep Doctrine But it does not run, because "I think" that the grep tries to run on the watch instead of the tail... Is there ...
3
votes
1answer
292 views

Tailing multiple files with less

I want to have the best of both worlds with tail and less. Following multiple files, like tail can, but also having the scrollable buffer of less. So, I tried: tail -f mylog1 mylog2 | less +F But ...
0
votes
4answers
976 views

Issues ending script with tail -f

I use the following script to restart a Java server running on a Solaris Sun 5.10 box... pkill -9 java nohup ./start_java.sh & tail -f smx.log I SSH to the box (using Putty) to run the ...
3
votes
2answers
3k views

multitail for Windows cmd/powershell?

Is there a program like multitail but for Windows cmd.exe or powershell (not GUI)?
13
votes
6answers
15k views

Windows XP equivalent of “tail -f”?

Is there way have windows XP show me updates to a log file as they happen? I'm thinking of something similar to tail -f <file path> in the linux realm.
-1
votes
3answers
224 views

what does tail + number does? What about head

I just called this command ls -l | tail +3. Firstly, ls -s, produces 3 lines, adding piping strips first line and then prints each file names on a separate line. How does it do that? It doesn't make ...