the head command in linux os is used to print the first N lines from file to the terminal.by default head command will display first 10 lines from file.
it will print the first N lines of the file.with leading "-" it will print all the lines,excepting last N lines from the file.
it will print the first N bytes of file.with leading "-" it will print all the bytes skipping the last N bytes of the file.
display the contents of file by skipping last N lines from a file.