head
Program: head
Shows the start of files.
Usage
head [OPTION]... [FILE]...
Description
Show the start of each FILE, 10 lines unless told otherwise. A FILE named -, or no FILE, means the keyboard or pipe. -NUM as the first argument is the same as -n NUM.
Options in the simulator
4 more options of the real program, not in the simulator yet
Examples
head -n 3 projects/website/server.log
08:00 server started
08:01 GET /index.html 200
08:02 GET /style.css 200 head -n 3 Documents/notes.txt
Buy milk
Call the landlord
Water the plants Where you learn it
Lessons
- Looking into files: cat, less, head and tail Terminal start