head command is a great Unix/Linux utility that is super useful when workig with text files. It shows you the top few lines of a specified file, but will also do the same with a redirected output of another Unix/Linux command.
Show the top 10 lines with head command
By default, you just need to specify the file you’re interested in. head will get the first top 10 lines from the file and show them in your console:
I learn with Educative:
I'm also a fan of SetApp for macOS:
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!