<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Speed Up a Slow Terminal by Clearing Log Files</title>
	<atom:link href="http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/</link>
	<description>News, tips, software, reviews, and more for Mac OS X, iPhone, iPad</description>
	<lastBuildDate>Wed, 19 Jun 2013 19:52:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Marcel</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-444812</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Tue, 30 Oct 2012 10:27:51 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-444812</guid>
		<description>Thanks for the tip, terminal loads a lot faster now.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, terminal loads a lot faster now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-403062</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Fri, 29 Jun 2012 20:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-403062</guid>
		<description>Even safer than deleting them would be to move them to the trash: `sudo mv *.asl ~/.Trash`</description>
		<content:encoded><![CDATA[<p>Even safer than deleting them would be to move them to the trash: `sudo mv *.asl ~/.Trash`</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Open Terminal Faster by Specifying a Shell</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-383886</link>
		<dc:creator>Open Terminal Faster by Specifying a Shell</dc:creator>
		<pubDate>Mon, 30 Apr 2012 16:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-383886</guid>
		<description>[...] to provide information on the last login. One way to speed up launching a new terminal window is to delete those .asl log files, but you can achieve a substantial speed boost by simply setting Terminal to open a shell rather [...]</description>
		<content:encoded><![CDATA[<p>[...] to provide information on the last login. One way to speed up launching a new terminal window is to delete those .asl log files, but you can achieve a substantial speed boost by simply setting Terminal to open a shell rather [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-354197</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Sun, 11 Mar 2012 01:48:41 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-354197</guid>
		<description>There&#039;s a much simpler and safer way to solve this problem.

Slow startup is caused by /usr/bin/login, which, for reasons unknown, loads those .asl files at startup.

Solve the problem by setting Terminal to use non-login shells.  Preferences -&gt; Startup -&gt; Shell Opens With: /bin/bash</description>
		<content:encoded><![CDATA[<p>There&#8217;s a much simpler and safer way to solve this problem.</p>
<p>Slow startup is caused by /usr/bin/login, which, for reasons unknown, loads those .asl files at startup.</p>
<p>Solve the problem by setting Terminal to use non-login shells.  Preferences -&gt; Startup -&gt; Shell Opens With: /bin/bash</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikko</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-336127</link>
		<dc:creator>Mikko</dc:creator>
		<pubDate>Tue, 14 Feb 2012 22:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-336127</guid>
		<description>Thanks.

Before this, Terminal startup was &gt;10 secs, freezing the whole system. Now &lt;1 sec again.</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
<p>Before this, Terminal startup was &gt;10 secs, freezing the whole system. Now &lt;1 sec again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: my2cents</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-274342</link>
		<dc:creator>my2cents</dc:creator>
		<pubDate>Fri, 11 Nov 2011 11:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-274342</guid>
		<description>My two cents, I did

1) Christophers&#039; way: cleaned up logs
sudo aslmanager -size 1

2) prellers&#039; way: this solved logs accumulation problem for future. Followed instructions at: http://www.reddit.com/r/apple/comments/lzchr/speedup_terminal_by_deleting_log_files/


Everything works perfectly. Terminal launches in microseconds now. Thank you guys for the analysis and solution.</description>
		<content:encoded><![CDATA[<p>My two cents, I did</p>
<p>1) Christophers&#8217; way: cleaned up logs<br />
sudo aslmanager -size 1</p>
<p>2) prellers&#8217; way: this solved logs accumulation problem for future. Followed instructions at: <a href="http://www.reddit.com/r/apple/comments/lzchr/speedup_terminal_by_deleting_log_files/" rel="nofollow">http://www.reddit.com/r/apple/comments/lzchr/speedup_terminal_by_deleting_log_files/</a></p>
<p>Everything works perfectly. Terminal launches in microseconds now. Thank you guys for the analysis and solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terminal beschleunigen &#124; quadWorks - Mac, iPhone und Webrauschen</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-270852</link>
		<dc:creator>Terminal beschleunigen &#124; quadWorks - Mac, iPhone und Webrauschen</dc:creator>
		<pubDate>Mon, 07 Nov 2011 07:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-270852</guid>
		<description>[...] Quelle: OSXDaily.com [...]</description>
		<content:encoded><![CDATA[<p>[...] Quelle: OSXDaily.com [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-270501</link>
		<dc:creator>Christopher</dc:creator>
		<pubDate>Sun, 06 Nov 2011 16:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-270501</guid>
		<description>Seems to me that the by far safest way of deleting these files would be

sudo aslmanager -size 1

It will leave a file or two, but those are, it seems, the ones currently in use, and it makes sense to keep those.

The man page also says aslmanager runs regularly and you can set set max_store_size in /etc/asl.conf to avoid having a cron job or fiddling around with launchd scripts, but I haven&#039;t tried that.</description>
		<content:encoded><![CDATA[<p>Seems to me that the by far safest way of deleting these files would be</p>
<p>sudo aslmanager -size 1</p>
<p>It will leave a file or two, but those are, it seems, the ones currently in use, and it makes sense to keep those.</p>
<p>The man page also says aslmanager runs regularly and you can set set max_store_size in /etc/asl.conf to avoid having a cron job or fiddling around with launchd scripts, but I haven&#8217;t tried that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: preller</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-269026</link>
		<dc:creator>preller</dc:creator>
		<pubDate>Fri, 04 Nov 2011 11:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-269026</guid>
		<description>I&#039;ve just posted another solution on reddit:
http://www.reddit.com/r/apple/comments/lzchr/speedup_terminal_by_deleting_log_files/

Here&#039;s the post:
Every time you launch a terminal window or tab, at first a &quot;login&quot; process is started which itself starts your shell. The good thing is that &quot;login&quot; is open source and everyone can check why it&#039;s doing that (and maybe fix it, lol): http://opensource.apple.com/source/system_cmds/system_cmds-541/login.tproj/

In detail the login process is started with following arguments:
  login -pf

This login process reads for whatever reason every log file which is stored in /var/log/asl.
You can check that with: sudo opensnoop &#124; grep &quot;/var/log/asl&quot;

So, the more log files are stored there the longer it takes to start up a shell in your terminal.

I just found out that if you change the &quot;Shells open with&quot; preference (http://cl.ly/BWyZ) in your terminal settings to &quot;Command (complete path) and put in your default shell path into the textbox &quot;/bin/bash&quot; (it&#039;s /bin/zsh for me, but that doesn&#039;t matter) the login process is started with the following arguments:

  login -pfq

The -q argument forces quiet logins. Those log files aren&#039;t being opened again, you can check that with opensnoop again. The only difference is that you won&#039;t get those fancy &quot;Last login: Fri Nov 4 12:33:34 on ttys011&quot; Messages anymore. I think that&#039;s a better workaround than deleting those log files every now and then.
I hope everyone understood me, my english is really bad…</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just posted another solution on reddit:<br />
<a href="http://www.reddit.com/r/apple/comments/lzchr/speedup_terminal_by_deleting_log_files/" rel="nofollow">http://www.reddit.com/r/apple/comments/lzchr/speedup_terminal_by_deleting_log_files/</a></p>
<p>Here&#8217;s the post:<br />
Every time you launch a terminal window or tab, at first a &#8220;login&#8221; process is started which itself starts your shell. The good thing is that &#8220;login&#8221; is open source and everyone can check why it&#8217;s doing that (and maybe fix it, lol): <a href="http://opensource.apple.com/source/system_cmds/system_cmds-541/login.tproj/" rel="nofollow">http://opensource.apple.com/source/system_cmds/system_cmds-541/login.tproj/</a></p>
<p>In detail the login process is started with following arguments:<br />
  login -pf</p>
<p>This login process reads for whatever reason every log file which is stored in /var/log/asl.<br />
You can check that with: sudo opensnoop | grep &#8220;/var/log/asl&#8221;</p>
<p>So, the more log files are stored there the longer it takes to start up a shell in your terminal.</p>
<p>I just found out that if you change the &#8220;Shells open with&#8221; preference (<a href="http://cl.ly/BWyZ" rel="nofollow">http://cl.ly/BWyZ</a>) in your terminal settings to &#8220;Command (complete path) and put in your default shell path into the textbox &#8220;/bin/bash&#8221; (it&#8217;s /bin/zsh for me, but that doesn&#8217;t matter) the login process is started with the following arguments:</p>
<p>  login -pfq</p>
<p>The -q argument forces quiet logins. Those log files aren&#8217;t being opened again, you can check that with opensnoop again. The only difference is that you won&#8217;t get those fancy &#8220;Last login: Fri Nov 4 12:33:34 on ttys011&#8243; Messages anymore. I think that&#8217;s a better workaround than deleting those log files every now and then.<br />
I hope everyone understood me, my english is really bad…</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: citizen428</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-268576</link>
		<dc:creator>citizen428</dc:creator>
		<pubDate>Thu, 03 Nov 2011 22:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-268576</guid>
		<description>Why not just use find&#039;s -delete option instead of piping to xargs?</description>
		<content:encoded><![CDATA[<p>Why not just use find&#8217;s -delete option instead of piping to xargs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: volker</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-268362</link>
		<dc:creator>volker</dc:creator>
		<pubDate>Thu, 03 Nov 2011 17:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-268362</guid>
		<description>Thank you for this how to ... but do you realy think, that beginners have a Problem with a slow starting Terminal? ;-)</description>
		<content:encoded><![CDATA[<p>Thank you for this how to &#8230; but do you realy think, that beginners have a Problem with a slow starting Terminal? <img src='http://cdn.osxdaily.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-268339</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 03 Nov 2011 17:23:34 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-268339</guid>
		<description>Don&#039;t use -r if you only want to delete files. This is safer. And since you edited your commands a couple of times to suit novices al well this would be a good addition as a best practice.

Use -r not because you use it every time you delete something. Try getting used to not use parameters that make no sense in for the current intended action.

And for deleting files adding parameter -r is pointless. It just adds potential damage i.e. when using a fileglob that accidentially matches more things that you intended to.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t use -r if you only want to delete files. This is safer. And since you edited your commands a couple of times to suit novices al well this would be a good addition as a best practice.</p>
<p>Use -r not because you use it every time you delete something. Try getting used to not use parameters that make no sense in for the current intended action.</p>
<p>And for deleting files adding parameter -r is pointless. It just adds potential damage i.e. when using a fileglob that accidentially matches more things that you intended to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stefan</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-268252</link>
		<dc:creator>stefan</dc:creator>
		<pubDate>Thu, 03 Nov 2011 13:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-268252</guid>
		<description>Dachte ich auch gerade. Hätte noch ca. 20 weitere Lösungen, wie so etwas gefahrlos geht :-)</description>
		<content:encoded><![CDATA[<p>Dachte ich auch gerade. Hätte noch ca. 20 weitere Lösungen, wie so etwas gefahrlos geht <img src='http://cdn.osxdaily.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manuel</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-268201</link>
		<dc:creator>manuel</dc:creator>
		<pubDate>Thu, 03 Nov 2011 10:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-268201</guid>
		<description>Die Diskussion wie man ein paar Dateien löscht ist ja putzig :-).</description>
		<content:encoded><![CDATA[<p>Die Diskussion wie man ein paar Dateien löscht ist ja putzig <img src='http://cdn.osxdaily.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Douglas</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-268176</link>
		<dc:creator>Douglas</dc:creator>
		<pubDate>Thu, 03 Nov 2011 09:53:35 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-268176</guid>
		<description>Better than all the above:

find /private/var/log/asl -type f -name &#039;*.asl&#039; -ctime +7 -print0 &#124; xargs -0 rm -f

(will delete all _files_ (no dirs) named something.asl that are older than 7 days, and will not have problems with strange characters (spaces!) in filenames, subdirectories, or a lot of files)</description>
		<content:encoded><![CDATA[<p>Better than all the above:</p>
<p>find /private/var/log/asl -type f -name &#8216;*.asl&#8217; -ctime +7 -print0 | xargs -0 rm -f</p>
<p>(will delete all _files_ (no dirs) named something.asl that are older than 7 days, and will not have problems with strange characters (spaces!) in filenames, subdirectories, or a lot of files)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/3 queries in 0.004 seconds using disk: basic
Object Caching 355/356 objects using disk: basic
Content Delivery Network via cdn.osxdaily.com

Served from: osxdaily.com @ 2013-06-19 16:54:08 -->