About 5,260,000 results
Open links in new tab
  1. Unix / Linux: Show First 10 or 20 Lines Of a File - nixCraft

    Feb 17, 2025 · How do I display first 10 or 20 lines of a file on Linux or Unix-like systems? You can use any one of the following command on Unix or Linux to view first 10 lines of a file: head …

  2. How to Display Specific Lines of a File in Linux Command Line

    Jul 29, 2022 · Explanation: You probably already know that the head command gets the lines of a file from the start while the tail command gets the lines from the end. The “head -x” part of the …

  3. Display the first few lines of a file - Ask Ubuntu

    Mar 4, 2011 · head -n 10 FILE. This will print the first ten lines of a file. Another useful variation would be -n -NUMBER. head -n -10 FILE. This will print all but the last ten lines of a file. To …

  4. Display the First “n” Characters of a File in Linux

    Mar 18, 2024 · The head command is used to display the first lines of a file. By default, the head command will print only the first 10 lines. The head command ships with the coreutils package, …

  5. Head Command in Linux: Displaying the Beginning of Files with …

    Oct 26, 2024 · The head command takes a file name as input and prints the first few lines of that file to the standard output (usually your terminal). By default, it displays the first 10 lines. This …

  6. head: show first number of lines from a file - Linux Audit

    The head command is a small utility on Linux systems to show the first 10 or defined number of lines of a file or filter standard input.

  7. The “head” Command in Linux [7 Practical Examples]

    Apr 28, 2024 · By default, You can print the first 10 lines of a text file on your terminal using the head command. Here, I’ll print the first 10 lines of a text file named “ Numbers.txt ”. To do the …

  8. Display the First Part of a File in Linux - Online Tutorials Library

    Jul 1, 2021 · To display the first part of the file, we use the head command in the Linux system. The head command is used to display the beginning of a text file or piped data. By default, it …

  9. Linux head Command - Print First X Lines from File - Putorius

    In this short tutorial we will discuss how to use the head command, it's options, and show some real world examples. The most basic why to use head is to simply pass a file as an argument. …

  10. head – show first lines of a text file - Unix Tutorial

    It shows you the top few lines of a specified file, but will also do the same with a redirected output of another Unix/Linux command. By default, you just need to specify the file you’re interested …

  11. Some results have been removed
Refresh