Tail utility. Commands for linux

preview_player
Показать описание
In this tutorial i demostrate some common uses for the tail utility.

The tail command is typically used to list the last ten lines of a file. Tail also shares some common options with the head command such as using the -n option to modify the number of lines that you want tail to display.

The tail command line utility also has a really cool option, -f which allows it to follow the end of a file. This is especially useful for active files where data is still being written to the file.

Another option that is useful to combine with the follow option is the --pid option. This allows you to supply tail with a process id which tail will allow tail to close itself down after the process finishes or is terminated.

-~-~~-~~~-~~-~-
Please watch: "virtualbox vs vmware virtual machine in virtual machine?"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Thanks homeboi, really helped me out there (y).

Linusovic
Автор

i have a sample file and I ran 'tail -f sample.txt'
would there be any new line shown if I manually copy & paste a new record to sample.txt while the command above is still running ?
thanks!

yukchunlam
visit shbcf.ru