CheatSnip

Related

Show File End

linux

Output last part of files

Concatenate Files

linux

Display file contents

View File Contents

linux

View file contents interactively

linux/head

Show File Start

Output first part of files

filesystem
text

Command

head

Explanation

head is used to output the first part of files. It outputs the first part of the files.

Examples

Show first 10 lines

head file.txt

Show first 5 lines

head -n 5 file.txt

More

Create File or Update Timestamps

linux

Create new empty files or update existing file timestamps.

List Directory Contents

linux

List files and directories in the current or specified directory with various formatting options.

Copy Files

linux

Copy files and directories from one location to another.

CheatSnip

Lightning-fast access to essential developer commands and code snippets. Search, copy, and master your favorite tools with our comprehensive cheat sheets.

Poorna Prakash

Quick Links

Git CommandsDockerNPMKubernetesYour Favorites

Legal

Terms & ConditionsPrivacy PolicyCookie Preferences

Company

About UsContact

© 2025 CheatSnip. All rights reserved.

Made with ❤️ for developers