You Asked: How Do I Show the First 10 Rows in Linux?
Contents How Do I Show the First 10 Lines of a File in Linux? to Look at the First Few Lines of a File, Type Head Filename, Where Filename Is the Name of the...
How do I show the first 10 lines of a file in Linux?
To look at the first few lines of a file, type head filename, where filename is the name of the file you want to look at, and then press <Enter>. By default, head shows you the first 10 lines of a file. You can change this by typing head -number filename, where number is the number of lines you want to see.
Must Read
What is the command to fetch first 10 records in a file?
The head command, as the name implies, print the top N number of data of the given input. By default, it prints the first 10 lines of the specified files. If more than one file name is provided then data from each file is preceded by its file name.