ok, so lets say i have a file called users.txt and its a pretty big file, and i don't want to display all the conents because its too much information.
well, linux has a cool command you can use to only display a number of lines that you want to.
for example, lets say i only want to display or show the first ten lines of the users.txt file, to do that i will us this command
head users.txt
the head command reads the first then lines. in this came, the file users.txt. you can pass a number as an agument to the head command to speficy the number of lines to read and display it on your screen.
let say i only want to show the first six lines, then i would use this command
head -6 users.txt
How To Display Only First Few Several Lines From File Linux UNIX Command
How To Display Only First Few Several Lines From File Linux UNIX Command
How To Display Only First Few Several Lines From File Linux UNIX Command
Post Description:
Post Tags: this, post, will, show, you, how, you, can, display, the, starting, of, a, file, at, the, begining, or, the, start, letters
This Post Has Been Viewed 346 Times Since Wed Dec 31, 1969 4:33 pm Posted By tomas with 2 replies
Post Description:
Post Tags: this, post, will, show, you, how, you, can, display, the, starting, of, a, file, at, the, begining, or, the, start, letters
This Post Has Been Viewed 346 Times Since Wed Dec 31, 1969 4:33 pm Posted By tomas with 2 replies
| How To Display Only First Few Several Lines From File Linux UNIX Command |
Leave Your Comments [ dejar commentarios ]
Comments and replies About How To Display Only First Few Several Lines From File Linux UNIX Command
:: 1 :: #1722 - Reply By thankyou On Wed Dec 31, 1969 4:33 pm
thanks, this was very helpful
:: 2 :: #1736 - Reply By gian On Wed Dec 31, 1969 4:33 pm
thanks, this was very helpul for my service.

