head
head is a Linux command in the File Operations category, rated beginner difficulty. Displays the first lines of a file (default: 10 lines). The syntax is head [options] file. Key options and parameters: file — file(s) to read. It returns first N lines of file. A practical example: head file.txt head -n 20 file.txt # Show first 20 lines head -c 100 file.txt # Show first 100 bytes head -q file1 file2 # Suppress headers A close relative is ls, which lists directory contents. One of the most frequently used commands. A close relative is cd, which changes the current working directory. A close relative is pwd, which prints the current working directory path. More about this category: Linux file operation commands — ls, cd, cp, mv, rm, mkdir, touch, and more. Create, delete, copy, and manage files and directories. Related File Operations commands: ls, cd, pwd, mkdir, rmdir, rm, cp, mv.