Shell/Bash: linux head command Example
Shell/Bash Example: This is the "linux head command" Example. compiled from many sources on the internet by SimpleTutorials.org
linux head command
# SYNTAX # head [options] [file_name(s)] # OPTIONS # -n | N, prints out the furst N lines of the file(s) # -q, doesn't print out the file headers # -v, always prints out the file headers # EXAMPLE head -n 7 file.txt head -q -n 5 file1.txt file2.txt # CREDIT # https://www.freecodecamp.org/news/bash-commands-bash-ls-bash-head-bash-mv-and-bash-cat-explained-with-examples/
With the flag -n | N, the head command prints out the first N lines of file(s) head -n 7 file.txt #Prints first 7 lines of file.txt
data.head on terminal
* Summary: This "linux head command" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!