<?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>Mon, 13 Feb 2012 00:09:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<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://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: Flachatmer</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-268258</link>
		<dc:creator>Flachatmer</dc:creator>
		<pubDate>Thu, 03 Nov 2011 13:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-268258</guid>
		<description># Thanks for the funny topic and comments - laughed a lot ^^</description>
		<content:encoded><![CDATA[<p># Thanks for the funny topic and comments &#8211; laughed a lot ^^</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://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://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>
	<item>
		<title>By: chris</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-268173</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Thu, 03 Nov 2011 09:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-268173</guid>
		<description>How on earth can you possibly think that the command is safe for novice users:

sudo rm !$

Now the users think &quot;hey cool, this command deletes those bad logs,&quot; and the next time they run it, it deletes some random other thing that they have just been using.</description>
		<content:encoded><![CDATA[<p>How on earth can you possibly think that the command is safe for novice users:</p>
<p>sudo rm !$</p>
<p>Now the users think &#8220;hey cool, this command deletes those bad logs,&#8221; and the next time they run it, it deletes some random other thing that they have just been using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osx terminal taking seconds to show a prompt? &#60; CodeWord: Apokalyptik</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-267382</link>
		<dc:creator>osx terminal taking seconds to show a prompt? &#60; CodeWord: Apokalyptik</dc:creator>
		<pubDate>Wed, 02 Nov 2011 03:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-267382</guid>
		<description>[...] can likely fix it with these simple instructions. Share this:PrintDiggEmail   Post a comment &#124; Trackback [...]</description>
		<content:encoded><![CDATA[<p>[...] can likely fix it with these simple instructions. Share this:PrintDiggEmail   Post a comment | Trackback [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mas</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-260706</link>
		<dc:creator>mas</dc:creator>
		<pubDate>Sun, 23 Oct 2011 12:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-260706</guid>
		<description>you can open the folder with Finder!
open /private/var/log/asl</description>
		<content:encoded><![CDATA[<p>you can open the folder with Finder!<br />
open /private/var/log/asl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liselore Vermeulen</title>
		<link>http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/#comment-229033</link>
		<dc:creator>Liselore Vermeulen</dc:creator>
		<pubDate>Mon, 29 Aug 2011 20:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=3284#comment-229033</guid>
		<description>solutions using crontab are *neat*,
however one should be carefulll in update cycles,

Apple is in a move towards launchd,... and e.g. the update from Tiger to Leopard... did clear/overwrite the /var/cron/tabs directory.</description>
		<content:encoded><![CDATA[<p>solutions using crontab are *neat*,<br />
however one should be carefulll in update cycles,</p>
<p>Apple is in a move towards launchd,&#8230; and e.g. the update from Tiger to Leopard&#8230; did clear/overwrite the /var/cron/tabs directory.</p>
]]></content:encoded>
	</item>
</channel>
</rss>


<!-- W3 Total Cache: Page cache debug info:
Engine:             disk (enhanced)
Key:                2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/feed/_index.html
Caching:            disabled
Reject reason:      user agent is rejected
Status:             not cached
Creation Time:      0.150s
Header info:
X-Pingback:         http://osxdaily.com/xmlrpc.php
Last-Modified:      Mon, 13 Feb 2012 00:09:06 GMT
ETag:               "5945fb4a56f590cdc865cbff0cf691bc"
X-Powered-By:       W3 Total Cache/0.9.1.3
Link:               <http://wp.me/ps4An-QY>; rel=shortlink
Content-Type:       text/xml; charset=UTF-8
-->
