head
📜
Displays file content from beginning.
Print first N lines of a file -n
head -n 5 ~/.bashrc
Print all but N last lines -n -N
tail -n -3 ~/.bashrc
Print first N bytes of a file -c
head -c 1k ~/.bashrc
Prints first 1k of file binary content.
Print all but N last bytes -c -N
tail -c -1k ~/.bashrc
Top comments (1)
Nice, simple and useful 👍
If you ever start a "Living in a Z Shell" and will look for ideas let me know 😃
Also I am looking for collaborators to make the project and it's wiki new user friendly.