Computer Science Fundamentals
Operating Systems
Subjective
Mar 12, 2013
What is the use of ‘tail’ command in UNIX system?
Detailed Explanation
- Tail command displays the tail or end of the file.
Syntax--
tail [options] file
Common Options
-number number of lines to display, counting from the bottom of the file
Ex--
The default is to display the last 10 lines, but you can specify different line or byte numbers, or a different starting point within the file. To display the last 30 lines of a file use the -number style:
% tail -30 filename
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts