<?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>rialvalue.com &#187; mac</title>
	<atom:link href="http://www.rialvalue.com/blog/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rialvalue.com/blog</link>
	<description>No Flex No Fun</description>
	<lastBuildDate>Fri, 04 Feb 2011 08:09:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Some little gems on OSX you might want to know</title>
		<link>http://www.rialvalue.com/blog/2010/02/01/some-little-gems-on-osx-you-might-want-to-know/</link>
		<comments>http://www.rialvalue.com/blog/2010/02/01/some-little-gems-on-osx-you-might-want-to-know/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 20:46:11 +0000</pubDate>
		<dc:creator>Xavi Beumala</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.rialvalue.com/blog/?p=106</guid>
		<description><![CDATA[Here are some little things that might speed you up when working on a Mac.
1. View hidden files in Finder
In terminal type:
defaults write com.apple.finder AppleShowAllFiles TRUE
To hide them again:
defaults write com.apple.finder AppleShowAllFiles FALSE
2. Manage clipboard from command line
To copy the output of a parameter you can use pbcopy:
pwd &#124; pbcopy
The result from pwd will be [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some little things that might speed you up when working on a Mac.</p>
<h4>1. View hidden files in Finder</h4>
<p>In terminal type:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:515px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">defaults write com.apple.finder AppleShowAllFiles TRUE</div></div>
<p>To hide them again:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:515px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">defaults write com.apple.finder AppleShowAllFiles FALSE</div></div>
<h4>2. Manage clipboard from command line</h4>
<p>To copy the output of a parameter you can use pbcopy:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:515px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">pwd | pbcopy</div></div>
<p>The result from pwd will be copied to the clipboard. You can seamlessly use pbpaste</p>
<h4>3. Copy directory trees without overrideing</h4>
<p>Imagine you&#8217;ve got 2 folders: v1 and v2 and you want to copy the contents of v1 inside v2 recursively (merging the contents). With a normal cp command you copy v1 to v2 and there&#8217;s a bin folder in both, the bin folder in the destiny will be completely replaced with the one found in v1.</p>
<p>If you were in Linux you would use cp -a, in Mac you can use:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:515px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cp -pPR v1 v2</div></div>
<p>Where:<br />
-p = preserve<br />
-R = recursive<br />
-P = no symbolic links are followed &#8212; can be added but this is the default </p>
<h4>4. Adding some colors to ls</h4>
<p>If you want to see some colors used when executing ls you can add the folowing lines to ~/.bash_profile:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:515px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">export TERM=xterm-color<br />
export LSCOLORS=fxhxcxdxbxegedabagacad<br />
alias ls='ls -la'<br />
export CLICOLOR=1</div></div>
<p>The second line changes the default annoying blue color applied to folders with a more readable red color.</p>
<h4>5. VNC client</h4>
<p>If you need to connect via vnc to any computer you don&#8217;t have to install a vnc client. Open Finder, press command+K and type vnc://host where host is the ip or domain you want to vnc to. A VNC client will automatically pop up.</p>
<p>If you want to allow incoming VNC connections to your MAC you can enable your VNC server open &#8220;System Preferences&#8221; > &#8220;Sharing&#8221; and check the &#8220;Screen Sharing&#8221; option.</p>
<h4>6. Remote Login on X server via SSH</h4>
<p>There are cases where you have to execute X applications remotely but the server doesn&#8217;t have a VNC server neither the possibility.</p>
<p>In these cases you can use:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:515px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">xhost host<br />
ssh -X -A userName@host</div></div>
<p>Note that to be able to execute the commands above you need to have X11. The first line basically allows incoming connections from the server. The ssh command stablishes a connection against the host indicating that any application that nees an X server will be run in the local computer.</p>
<p>Once logged in you can try to execute any visual application. You&#8217;ll see that the application pops up locally.</p>
<h4>7. Open any document with the default application</h4>
<p>You might want to open a random file from the command line in the default desktop application</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:515px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">open aFile.ext</div></div>
<p>To open current directory in finder:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:515px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">open .</div></div>
<h4>8. Open a terminal in current Finder directory</h4>
<p>Lots of times you navigate to a certain folder using Finder and then you want to open a Terminal in that folder. To accomplish that you can install openTerminalHere applescript http://www.entropy.ch/software/applescript/</p>
<h4>9. You don&#8217;t like your dashboard? Disable it!</h4>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:515px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">defaults write com.apple.dashboard mcx-disabled -boolean NO<br />
killall Dock</div></div>
<h4>10. Show current full path in Finder</h4>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:515px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES<br />
killall Finder</div></div>
<p>Do you know any other must-know command or gem? </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rialvalue.com/blog/2010/02/01/some-little-gems-on-osx-you-might-want-to-know/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

