answersLogoWhite

0

It is very common to use the 'tail' command to look at a file that is being written to in order to monitor the output of a process.

Most systems recognize the tail -f command for that purpose. You must then use an interrupt signal to stop it from looking at the active file.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Which command can you use to look at the end of the file named statusreport?

Use the command 'head statusreport' (without the quotes)


Which command displays the last 10 lines of the file called abc?

tail -n 10 abc


What option would allow the head command to display the last 5 lines in a file in Linux?

The 'head' command can only deal with the start of the file, not the end. If you want X number of lines at the end of the file then use the 'tail' command. tail -5 filename will list the last 5 lines of the contents of filename.


Which command will display the last lines of the text file called file1in Linux?

Tail command is used to display the last lines of the file.Syntax:tail -n 3 file1-n 3 = no. of linesfile1 = filename


What Linux command line is used for looking at the end of a file?

You can use the cat command combined with tailex:- cat filename | tailOr you can just use tail commandex:- tail filename


What Linux command displays the last part of a file without editing it?

The tail command can be used to output the last part of a text file. The default is to show the last 10 lines of a file and options are available to override this.


Which of the following command is used to display the first 10 line of a file in Linux?

$ cat filename | head


List and execute UNIX command to display the number of words in the last 10 lines of any file?

tail -10 anyfile | wc


What command can be used to monitor the file var log messages to see newly incoming messages?

tail -f /var/log/messages


How do you write a shell script which counts the last 10 lines present in a given file?

You don't need a shell script to do this - just use the 'tail' command.


Which command is used to see the content of file?

You can get a list of all the files in the current directory with the "ls -a" command.


How do you sharpen the chain of a chain saw?

A rat tail file. Or round file. Take the file to each individual link.