Sponsored by: Search | Newsletter | Conference | Tech Jobs O’Reilly’s Emerging Technology Conference: May 13-16, 2002 Articles Linux Apache MySQL Perl PHP Python BSD Essentials What is LAMP? The Best of ONLamp.com aboutSQL Big Scary Daemons FreeBSD Basics HTTP Wrangler Linux in the Enterprise Linux Network Administration The Linux Professional Perl P5P Digest Archive PHP Admin Basics PHP Phanatics Python_News Security Alerts Alphabetical Directory of Linux Commands This directory of Linux commands is from Linux in a Nutshell, 3rd Edition. Click on any of the 379 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Tech Books Online. Buy it now Read it online head [options] [files] Print the first few lines (default is 10) of one or more files. If files is missing or - , read from standard input. With more than one file, print a header for each file. Options -c num[bkm], –bytes num Print first num bytes or, if num is followed by b, k, or m, first num 512- byte blocks, 1-kilobyte blocks, or 1-megabyte blocks. –help Display help and then exit. -n num, –lines num, -num Print first num lines. Default is 10. -q, –quiet, –silent Quiet mode; never print headers giving filenames. -v, –verbose Print filename headers, even for only one file. –version Output version information and then exit. Examples Display the first 20 lines of phone_list: head -20 phone_list Display the first 10 phone numbers having a 202 area code: Sponsored by: