Javatpoint Logo
Javatpoint Logo

Limit displayed number of lines

The last command displays a lot of lines in the output. To limit number of lines to be displayed, following syntax can be used.



last -n 4

last -4

Limit Lines1

Look at the above snapshot, we have limited number of lines by 4 using both the commands.

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA