<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WiredRevolution.com &#187; head</title>
	<atom:link href="http://www.wiredrevolution.com/tag/head/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Display the first part of a file with head</title>
		<link>http://www.wiredrevolution.com/commands/display-the-first-part-of-a-file-with-head?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=display-the-first-part-of-a-file-with-head</link>
		<comments>http://www.wiredrevolution.com/commands/display-the-first-part-of-a-file-with-head#comments</comments>
		<pubDate>Tue, 14 Oct 2008 12:03:22 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[commands]]></category>
		<category><![CDATA[head]]></category>
		<category><![CDATA[tail]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=310</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/commands_icon.png" width="80" height="69" alt="" title="commands" /><br/>Similar to the tail command which shows you the last few lines of a text file, the head command lets you to quickly view the first few lines. The head command syntax. head [options] file By default head will show you the first 10 lines of a text file. $ head textfile.txt You can change [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/display-the-last-part-of-a-file-with-tail' rel='bookmark' title='Permanent Link: Display the last part of a file with tail'>Display the last part of a file with tail</a></li>
<li><a href='http://www.wiredrevolution.com/commands/determine-file-type-with-the-file-command' rel='bookmark' title='Permanent Link: Determine file type with the file command'>Determine file type with the file command</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/delete-a-specific-line-from-a-text-file-with-sed' rel='bookmark' title='Permanent Link: Delete a specific line from a text file with sed'>Delete a specific line from a text file with sed</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/commands_icon.png" width="80" height="69" alt="" title="commands" /><br/><p>Similar to <a href="http://www.wiredrevolution.com/commands/display-the-last-part-of-a-file-with-tail">the tail command</a> which shows you the last few lines of a text file, the head command lets you to quickly view the first few lines.</p>
<p>The head command syntax.</p>
<pre>
head [options] <em>file</em>
</pre>
<p>By default head will show you the first 10 lines of a text file.</p>
<pre>
$ head textfile.txt
</pre>
<p>You can change the number of lines displayed by adding &#8216;<strong>-n</strong>&#8216; option and adding the number of lines.</p>
<pre>
$ head -n 3 textfile.txt
</pre>
<p>This will show the first 3 lines in the file.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/display-the-last-part-of-a-file-with-tail' rel='bookmark' title='Permanent Link: Display the last part of a file with tail'>Display the last part of a file with tail</a></li>
<li><a href='http://www.wiredrevolution.com/commands/determine-file-type-with-the-file-command' rel='bookmark' title='Permanent Link: Determine file type with the file command'>Determine file type with the file command</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/delete-a-specific-line-from-a-text-file-with-sed' rel='bookmark' title='Permanent Link: Delete a specific line from a text file with sed'>Delete a specific line from a text file with sed</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/commands/display-the-first-part-of-a-file-with-head/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display the last part of a file with tail</title>
		<link>http://www.wiredrevolution.com/commands/display-the-last-part-of-a-file-with-tail?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=display-the-last-part-of-a-file-with-tail</link>
		<comments>http://www.wiredrevolution.com/commands/display-the-last-part-of-a-file-with-tail#comments</comments>
		<pubDate>Tue, 14 Oct 2008 11:40:48 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[commands]]></category>
		<category><![CDATA[head]]></category>
		<category><![CDATA[tail]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=302</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/commands_icon.png" width="80" height="69" alt="" title="commands" /><br/>Similar to the head command which shows you the first few lines of a text file, the tail command lets you to quickly view the last few lines of a text file. It also supports a monitoring mode which displays ongoing changes within the file. The tail command syntax. tail [options] file By default tail [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/display-the-first-part-of-a-file-with-head' rel='bookmark' title='Permanent Link: Display the first part of a file with head'>Display the first part of a file with head</a></li>
<li><a href='http://www.wiredrevolution.com/commands/determine-file-type-with-the-file-command' rel='bookmark' title='Permanent Link: Determine file type with the file command'>Determine file type with the file command</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/delete-a-specific-line-from-a-text-file-with-sed' rel='bookmark' title='Permanent Link: Delete a specific line from a text file with sed'>Delete a specific line from a text file with sed</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/commands_icon.png" width="80" height="69" alt="" title="commands" /><br/><p>Similar to <a href="http://www.wiredrevolution.com/commands/display-the-first-part-of-a-file-with-head">the head command</a> which shows you the first few lines of a text file, the tail command lets you to quickly view the last few lines of a text file. It also supports a monitoring mode which displays ongoing changes within the file.</p>
<p>The tail command syntax.</p>
<pre>
tail [options] <em>file</em>
</pre>
<p>By default tail will show you the last 10 lines of a text file.</p>
<pre>
$ tail textfile.txt
</pre>
<p>You can change the number of lines displayed by adding &#8216;<strong>-n</strong>&#8216; option and adding the number of lines.</p>
<pre>
$ tail -n 3 textfile.txt
</pre>
<p>This will show the last 3 lines in the file.</p>
<p>You can keep track of ongoing changes within the file by turning on monitoring mode with the &#8216;<strong>-f</strong>&#8216; option.  It is especially helpful when you want to keep an eye on log files.</p>
<pre>
$ tail -f /var/log/syslog
</pre>
<p>As lines are appended to the log file they are also displayed by tail.</p>
<p>You can exit the program by pressing Ctrl-C.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/display-the-first-part-of-a-file-with-head' rel='bookmark' title='Permanent Link: Display the first part of a file with head'>Display the first part of a file with head</a></li>
<li><a href='http://www.wiredrevolution.com/commands/determine-file-type-with-the-file-command' rel='bookmark' title='Permanent Link: Determine file type with the file command'>Determine file type with the file command</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/delete-a-specific-line-from-a-text-file-with-sed' rel='bookmark' title='Permanent Link: Delete a specific line from a text file with sed'>Delete a specific line from a text file with sed</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/commands/display-the-last-part-of-a-file-with-tail/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

