EMERGING TRENDS IN SOFTWARE ENGINEERING
DEVOPS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
head-25 filename
|
|
tail-25 filename
|
|
bottom-25 filename
|
|
last-25 filename
|
Detailed explanation-1: -To look at the last few lines of a file, use the tail command. tail works the same way as head: type tail and the filename to see the last 10 lines of that file, or type tail-number filename to see the last number lines of the file.
Detailed explanation-2: -Command used to print last 20 lines of a file: The command tail-n <filename> is used to print the last line of a file. The command tail-20<filename> is used to print the last 20 lines of a file.
Detailed explanation-3: -Tail is a command which prints the last few number of lines (10 lines by default) of a certain file, then terminates. Example 1: By default “tail” prints the last 10 lines of a file, then exits. as you can see, this prints the last 10 lines of /var/log/messages.
Detailed explanation-4: -To display the last 10 lines of the notes file, type the following: tail notes. To specify the number of lines to start reading from the end of the notes file, type the following: tail-20 notes. More items