<?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; tail</title>
	<atom:link href="http://www.wiredrevolution.com/tag/tail/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>View the status of a long emerge</title>
		<link>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=view-the-status-of-a-long-emerge</link>
		<comments>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge#comments</comments>
		<pubDate>Wed, 31 Dec 2008 14:13:29 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[emerge.log]]></category>
		<category><![CDATA[portage]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[tail]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=896</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>At certain times while using Gentoo you are going to have to perform a large emerge, for example when you do an update world. It can be challenging to keep track of the status of this emerge with all the output flying by on the screen. It can also become a problem if you want [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/view-program-output-with-watch' rel='bookmark' title='Permanent Link: View program output with watch'>View program output with watch</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/find-the-exit-status-of-a-previous-command-in-bash' rel='bookmark' title='Permanent Link: Find the exit status of a previous command in Bash'>Find the exit status of a previous command in Bash</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>At certain times while using Gentoo you are going to have to perform a large emerge, for example when you do an update world. It can be challenging to keep track of the status of this emerge with all the output flying by on the screen. It can also become a problem if you want to check on the status from another machine that did not initiate the emerge.</p>
<p>Thankfully you can check the <strong>/var/log/emerge.log</strong> and get the current status.</p>
<p>Run this command to see the last 10 lines of the log.</p>
<pre>
$ sudo tail /var/log/emerge.log
</pre>
<p>You can combine this command with <strong>watch</strong> and get real-time updates.  This command will automatically update every second.</p>
<pre>
$ watch -n 1 "sudo tail /var/log/emerge.log"
</pre>
<p>Likewise you can use the &#8216;<strong>-f</strong>&#8216; tail option to get updates.</p>
<pre>
$ sudo tail -f /var/log/emerge.log
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/view-program-output-with-watch' rel='bookmark' title='Permanent Link: View program output with watch'>View program output with watch</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/find-the-exit-status-of-a-previous-command-in-bash' rel='bookmark' title='Permanent Link: Find the exit status of a previous command in Bash'>Find the exit status of a previous command in Bash</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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>

