answersLogoWhite

0


Best Answer

Tail command is used to display the last lines of the file.

Syntax:

tail -n 3 file1

-n 3 = no. of lines

file1 = filename

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

for displaying the last lines "TAIL" command is used.

Syntax:

tail -n 3 file1

file1 is the file name

-n 3 means display last 3 lines of the file

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which command will display the last lines of the text file called file1in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the Linux command to display your hostname?

hostname.


What linux command to display ip?

ifconfig


How do you start the display program in Linux from the command line?

the command "display" brings up the ImageMagick program.


What does the sar command do in Linux?

SAR is a command in Linux that serves as a heads up display for the activity of your CPU. There are roughly 40 different syntax you can add to the command to display specific variables of interest.


What is the command used on a linux machine to display the mac address?

''ipconfig/all''


What command displays the time on most Linux and Unix computer?

The time command is used to time a command and not display the actual time. To display the time and date, the date command must be used.


How do you specify the display in Linux?

If you want to run something on an existing X display from a console the correct syntax is: DISPLAY=":0.0" (command) Of course, it might just be easier to go to your X display and run your command from there.


What is the command to display your current location in Linux?

pwdThis is short for "Print current directory."


What Linux command is used to compare the difference between two file display the difference?

The command is: diff file1.txt file2.txt


What is the command used to check the pid of all the processes current running in Linux environment?

Type top in a terminal to display Linux processes, which includes PID.


Ignou mca 2nd semester solved assignment?

write the Linux command for the following: 1) to display yhe information about Is command i need assignments


What is man fdisk in Linux?

In Linux the man command displays the help(man page) for a command. man fdisk is "display the man page for command fdisk"