<?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: OS X Command Line</title>
	<atom:link href="http://www.mactricks.net/tips-tricks/os-x-command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mactricks.net/tips-tricks/os-x-command-line/</link>
	<description>A daily blog featuring Mac tricks, tips, shortcuts and downloads</description>
	<lastBuildDate>Sat, 28 Jan 2012 13:07:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: John-Michael</title>
		<link>http://www.mactricks.net/tips-tricks/os-x-command-line/comment-page-1/#comment-2767</link>
		<dc:creator>John-Michael</dc:creator>
		<pubDate>Thu, 12 Jan 2012 04:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mactricks.net/?p=90#comment-2767</guid>
		<description>Hey Tony, to get it to work, instead of an alias do this in the Terminal (newline = enter &amp; assumes you know vim/nano):

sudo touch /usr/local/sbin/mem
sudo [vim or nano] /usr/local/sbin/mem


Then put this in:

#!/bin/sh
top -l 1 &#124; awk &#039;/PhysMem/ {print &quot;Used: &quot; $8 &quot;\nFree: &quot; $10}&#039;


And save &amp; exit. Now do:

sudo chmod +x /usr/local/sbin/mem


Done! Now you can test with with just typing &quot;men&quot; and you&#039;ll get something like this:

Used: 2805M
Free: 5380M


Enjoy!</description>
		<content:encoded><![CDATA[<p>Hey Tony, to get it to work, instead of an alias do this in the Terminal (newline = enter &amp; assumes you know vim/nano):</p>
<p>sudo touch /usr/local/sbin/mem<br />
sudo [vim or nano] /usr/local/sbin/mem</p>
<p>Then put this in:</p>
<p>#!/bin/sh<br />
top -l 1 | awk &#8216;/PhysMem/ {print &#8220;Used: &#8221; $8 &#8220;\nFree: &#8221; $10}&#8217;</p>
<p>And save &amp; exit. Now do:</p>
<p>sudo chmod +x /usr/local/sbin/mem</p>
<p>Done! Now you can test with with just typing &#8220;men&#8221; and you&#8217;ll get something like this:</p>
<p>Used: 2805M<br />
Free: 5380M</p>
<p>Enjoy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.mactricks.net/tips-tricks/os-x-command-line/comment-page-1/#comment-2610</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 25 Nov 2011 14:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mactricks.net/?p=90#comment-2610</guid>
		<description>Hi, Is there a terminal command that can stop Software Update from deleting the packages once they are installed... I want to save them so that I only download them once, to save them for a OS reinstall/backup and to install on another computer.

AND @Eldon, if you reset the factory default settings on your printer, it might suddenly become obvious to your mac... (from experience).</description>
		<content:encoded><![CDATA[<p>Hi, Is there a terminal command that can stop Software Update from deleting the packages once they are installed&#8230; I want to save them so that I only download them once, to save them for a OS reinstall/backup and to install on another computer.</p>
<p>AND @Eldon, if you reset the factory default settings on your printer, it might suddenly become obvious to your mac&#8230; (from experience).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eldon</title>
		<link>http://www.mactricks.net/tips-tricks/os-x-command-line/comment-page-1/#comment-729</link>
		<dc:creator>Eldon</dc:creator>
		<pubDate>Fri, 07 Jan 2011 23:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mactricks.net/?p=90#comment-729</guid>
		<description>This would be a great place to show a command that would provide an IP address for a printer or other peripheral. I&#039;ve spent a week trying to add a printer - and I know the printer works.

What would I get if I typed ipconfig in the Terminal?

Happy New Year!</description>
		<content:encoded><![CDATA[<p>This would be a great place to show a command that would provide an IP address for a printer or other peripheral. I&#8217;ve spent a week trying to add a printer &#8211; and I know the printer works.</p>
<p>What would I get if I typed ipconfig in the Terminal?</p>
<p>Happy New Year!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.mactricks.net/tips-tricks/os-x-command-line/comment-page-1/#comment-596</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Sat, 02 Oct 2010 22:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mactricks.net/?p=90#comment-596</guid>
		<description>Hi,

I&#039;m trying to run this command as an alias in my .bashrc file

alias mem=&quot;top -l 1 &#124; awk &#039;/PhysMem/ {print &quot;Used: &quot; $8 &quot; Free: &quot; $10}&#039;&quot;

it works fine as a standalone command in terminal but not as alias. Any help is appreciated. Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m trying to run this command as an alias in my .bashrc file</p>
<p>alias mem=&#8221;top -l 1 | awk &#8216;/PhysMem/ {print &#8220;Used: &#8221; $8 &#8221; Free: &#8221; $10}&#8217;&#8221;</p>
<p>it works fine as a standalone command in terminal but not as alias. Any help is appreciated. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sergio</title>
		<link>http://www.mactricks.net/tips-tricks/os-x-command-line/comment-page-1/#comment-144</link>
		<dc:creator>sergio</dc:creator>
		<pubDate>Mon, 05 Jul 2010 20:34:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mactricks.net/?p=90#comment-144</guid>
		<description>no, only if you were to change your network card</description>
		<content:encoded><![CDATA[<p>no, only if you were to change your network card</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: greg@sicherheit</title>
		<link>http://www.mactricks.net/tips-tricks/os-x-command-line/comment-page-1/#comment-70</link>
		<dc:creator>greg@sicherheit</dc:creator>
		<pubDate>Sat, 06 Mar 2010 12:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.mactricks.net/?p=90#comment-70</guid>
		<description>Does my mac adresse change if I upgrade my computer with some other hardware? For example change the graphic card?</description>
		<content:encoded><![CDATA[<p>Does my mac adresse change if I upgrade my computer with some other hardware? For example change the graphic card?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

