---
title: "Discussion on \"Cheatsheet & Examples: head\" | Hashnode"
description: "Discussion on \"Cheatsheet & Examples: head\". The head command displays the beginning of a file, typically the first 10 lines by default. It is useful for quickly previewing files without opening them entirely.\nDisplay the first 10 lines of a file\nExample Usage:head filename.txt  \nWhat it does:P..."
url: "https://hashnode.com/posts/cheatsheet-examples-head/68ba285f84782a28de683acc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Cheatsheet & Examples: head](https://tech.mrleong.net/cheatsheet-examples-head?utm_source=hashnode&utm_medium=feed)

The head command displays the beginning of a file, typically the first 10 lines by default. It is useful for quickly previewing files without opening them entirely. Display the first 10 lines of a file Example Usage:head filename.txt What it does:P...

Sep 5, 2025 · 3 min read · tech.mrleong.net  
Read the article

-   [#cheatsheet](https://hashnode.com/tag/cheatsheet)
-   [#cli](https://hashnode.com/tag/cli)
-   [#head](https://hashnode.com/tag/head)

## Written by

[Hong](https://hashnode.com/@hongster)

@hongster · Johor Bahru, Malaysia

  
[View profile](https://hashnode.com/@hongster)

Script Monkey @ Innoractive

I work with Linux in the day, ballroom dancing at night. I use Arch, btw.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
