Run headWorld's simplest linux tool
This online utility implements a simplified and improved version of the Linux head command, which displays the first part of the given data. You can print the specified number of lines, words, or characters to the screen. Also, you can easily skip all empty lines in the print-lines mode. Created by Linux experts from team Browserling.
announcement the ultimate collection of tools!
We're joining all our tools into OnlineTools.com that will offer the ultimate collection of tools. Check it out!
A link to this tool, including input, options and all chained tools.
What is a run head?learn more about this tool
Run head examplesClick to use
Print First 30 Characters
In this example, we use our implementation of the Linux head command to output the starting part of textual data. We select the "Print Characters" mode and enter the number 30 in the character counter field. In the output, we get the first 30 characters that appear in the input string.
The speed of a computer mouse is measured in "Mickeys."
The speed of a computer mouse
Displays the first N characters.
Include blank lines in the output.
Negative Head Argument
In this example, we use the new feature that we added to this program that finds and prints the specified number of words. We set the word count to a negative value of -8, which means that the tool prints all but the last eight words.
The lyrebird can mimic almost any sounds it hears — including chainsaws, sirens, and cell phone ringtones.
The lyrebird can mimic almost any sounds it hears
Displays the first N words.
Include blank lines in the output.
This example loads a file with a list of comedy movies and calls the head command to print the first 10 file lines to the screen. To demonstrate all the improvements of our version of head, we turn off the "Print Empty Lines" option. Thus, we effectively execute two Linux commands at once, namely the grep command to skip empty lines and the head command to print the first 10 lines of the remaining non-empty lines.
The Hangover The Grand Budapest Hotel Some Like It Hot Step Brothers Trading Places Bridesmaids Coming to America As Good as It Gets Old School School of Rock The Mask Booksmart Pulp Fiction Mean Girls
The Hangover The Grand Budapest Hotel Some Like It Hot Step Brothers Trading Places Bridesmaids Coming to America As Good as It Gets Old School School of Rock
Displays the first N lines.
Include blank lines in the output.
Pro tips Master online linux tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
All linux tools
Quickly escape special shell characters in a string.
Quickly output the first part of the input text or data.
Quickly output the last part of the input text or data.
Quickly combine head and tail commands and extract a range.
Quickly print a sequence of numbers to standard output.
Quickly reverse the given lines characterwise.
Coming soon These linux tools are on the way
Run a Linux distribution in your browser (in a virtual machine).
Run Plan 9
Run Plan 9 operating system in your browser (in a vm).
Run FreeBSD in your browser (in a virtual machine).
Run OpenBSD in your browser (in a virtual machine).
Run NetBSD in your browser (in a virtual machine).
Run DragonFly BSD
Run DragonFly BSD in your browser (in a virtual machine).
Run a bash shell in your browser.
Run a zsh shell in your browser.
Run Fish Shell
Run a fish shell in your browser.
Run ssh in your browser and connect to any host.
Run awk-like commands on the input text.
Run sed-like commands on the input text.
Run ed commands on the input text.
Run vim text editor in your browser.
Run emacs text editor in your browser.
Run a VT100-compatible terminal in your browser.
Play back a script file in a browser-based Unix terminal.
Convert Script to GIF
Create a GIF animation from a script file.
Run printf-like command on input text or data.
Base64 encode/decode on text and data.
Find the filetype of a file by looking at its bytes.
Print CRC checksum and byte counts.
Split a file into context-determined pieces.
Remove parts of lines of files.
Convert tabs to spaces.
Print prime factors of n.
Run simple text formatter.
Convert numbers to and from human-readable strings.
Run paragaph reformatter (similar to fmt but better).
Format time and date according to the given format string.
Wrap each input line to fit in specified width.
Join lines of two files on a common field.
Compute checksums of files or strings.
Add line numbers to text lines in files.
Merge lines of files.
Print or check SHA-1 digests.
Shuffle lines of text.
Sort lines of text (with all kinds of options).
Split a file into pieces.
Concatenate and print files in reverse.
Translate or delete characters in files.
Truncate or extend the length of files.
Convert spaces to tabs.
Remove duplicate lines from a sorted file.
Print the number of lines, words, and bytes in files.
Displays a calendar.
Remove columns from a file.
Convert lists into nice columns.
Print ascii, decimal, hexadecimal, octal dump of input data.
Create and print a new universally unique identifier (UUID).
Unescape Shell Characters
Given an escaped shell string, unescape it.
Quote a Shell String
Single or double quote a shell string.
Unquote a Shell String
Remove quotes from a quoted shell string.
Repeatedly output lines with all specified strings or "y".
Generate an ASCII picture of the speaking cow.
Generate ASCII art text in a variety of typefaces.
Print a large, high quality banner using ASCII characters.
Print a random, interesting adage.
Convert an image to the DEC Sixel format.
Convert DEC Sixel data to an image.
Display the ASCII table in hex, decimal, and octal.
Create an animation of a digital or analog X clock.
Create an animation of xclock in cat-clock mode.
Create an animation of eyes following the mouse cursor.
Draw the logo of the X Window System.
Long to IP
Convert a long integer IP to a dotted string IP address.
IP to Long
Convert a standard IP address to a long numeric IP.
Run the fuzzy matching algorithm (fzf) on the input data.
Run the glob matching algorithm on the input data.
Unixify File Names
Convert filenames to Unix-friendly filenames.
Unixify File Paths
Convert a Windows path (reverse slash) to Unix path (slash).
Windowsify File Paths
Convert a Unix path (slash) to a Windows path (reverse slash).
Generate a Random Path
Create random Unix paths of directories and files.
Fuzzify a File Path
Apply fuzzing on a file path and add mistakes in it.
Print Unix Time
Print time in seconds since 1970-01-01.
Generate Crontab Entry
Given human-readable date and time, create crontab string.
Decode Crontab Entry
Given a crontab string, make it human-readable.
Convert UTC to Unix
Convert UTC time to Unix time.
Convert Unix to UTC
Convert Unix time to UTC time.
Generate Bash History Stats
Create a summary of the most used commands.
Subscribe! Never miss an update
Notifications We'll let you know when we add this tool