<?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>Make Tech Easier&#187; alias</title>
	<atom:link href="http://maketecheasier.com/tag/alias/feed" rel="self" type="application/rss+xml" />
	<link>http://maketecheasier.com</link>
	<description>Uncomplicating the complicated, making life easier</description>
	<lastBuildDate>Sun, 12 Feb 2012 15:58:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Two Free Tools To Synchronize Any Folder To Dropbox [Mac]</title>
		<link>http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02</link>
		<comments>http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02#comments</comments>
		<pubDate>Wed, 02 Mar 2011 21:58:43 +0000</pubDate>
		<dc:creator>Jeffry Thurana</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[symlink]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=30397</guid>
		<description><![CDATA[If I had to list down the most useful tools that I&#8217;ve used in my computer life, Dropbox would be one of the top name on the list. It&#8217;s more than just a simple backup tool. The combination of desktop apps, web service and supports from tons of third-party applications, open up possibilities that I&#8217;ve [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02&amp;title=Two+Free+Tools+To+Synchronize+Any+Folder+To+Dropbox+%5BMac%5D&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02">Two Free Tools To Synchronize Any Folder To Dropbox [Mac]</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="http://imagecdn.maketecheasier.com/2011/03/MacDropAny.jpg" alt="MacDropAny" width="200" height="200" />If I had to list down the most useful tools that I&#8217;ve used in my computer life, Dropbox would be one of the top name on the list. It&#8217;s more than just a simple backup tool. The combination of desktop apps, web service and supports from tons of third-party applications, open up possibilities that I&#8217;ve never thought before: from collaborating on a novel, to triggering download from faraway computer, to running other local task remotely.</p>
<p>But Dropbox&#8217;s biggest strength is also its weakness. While the simple concept of synchronizing everything inside one Dropbox folder is the factor that keeps it above its competitors, this simplicity also means that it&#8217;s (almost) impossible to synchronize everything else outside that folder.<br />
<span id="more-30397"></span></p>
<h3>Meet Symlink</h3>
<p>If you are a Mac user who doesn&#8217;t like the idea of moving everything to Dropbox folder for the sake of synchronizing the content, there&#8217;s another way to achieve that. Basically, what we do is utilizing &#8220;<em>symbolic link</em>&#8221; (symlink) to create a reference to a folder and  then place the symlink inside Dropbox folder. Anything that happens to the folder will be mirrored by the symlink and vice versa. So, symlink is a perfect solution to the problem of synchronizing outside folder to Dropbox.</p>
<p>You could create symlink via command line in Terminal, but common computer users are &#8220;allergic&#8221; to command line. So here are two free and simple tools that you can use to create symlink without having to touch any command line.</p>
<h3>1. <a href="http://seiryu.home.comcast.net/~seiryu/symboliclinker.html">SymbolicLinker</a></h3>
<p>SymbolicLinker is a tiny contextual menu plugin (for Puma through Leopard users) and software service (for Snow Leopard &amp; later users) that, once installed, allows any user to create symbolic links to files inside the Finder. SymbolicLinker does this by adding a contextual menu item to the Finder that generates symbolic links to the selected files.</p>
<p>To use SymbolicLinker, download the compressed installer file. There are two important files there: SymbolicLinker.service for Snow Leopard (and later) users, and SymbolicLinker.plugin for Leopard (and previous version of Mac OS X) users. There&#8217;s also the installation instructions that will give you all the details.</p>
<p><img class="aligncenter" src="http://imagecdn.maketecheasier.com/2011/03/MacDropAny-Finder-Symlink.jpg" alt="Finder  Symlink" width="580" height="225" /></p>
<p>The usage is also simple. Create a symlink of a folder (either by right clicking or by using Service), then place the symlink inside your Dropbox folder.</p>
<p><img class="aligncenter" src="http://imagecdn.maketecheasier.com/2011/03/MacDropAny-Finder-Service.jpg" alt="Finder  Service" width="580" height="300" /></p>
<h3>2. <a href="http://wiki.dropbox.com/DropboxAddons/MacDropAny">MacDropAny</a></h3>
<p>MacDropAny is a tool built specifically to create symlink for Dropbox. The first time you open the application, it will ask you to choose which folder that you want to sync via Dropbox.</p>
<p><img class="aligncenter" src="http://imagecdn.maketecheasier.com/2011/03/MacDropAny-Choose-a-Folder.jpg" alt="Choose a Folder" width="537" height="400" /></p>
<p>Then the next step is choosing where in the Dropbox folder do you want to put the symlink. This option gives you the ability to organize those symlinks into a specific folder inside Dropbox. You could name the folder &#8220;External links&#8221; or something else according to your preferences.</p>
<p><img class="aligncenter" src="http://imagecdn.maketecheasier.com/2011/03/MacDropAny-Choose-Dropbox.jpg" alt="01b Choose Dropbox" width="537" height="400" /></p>
<p>The last step is to assign name to the Symlink. To avoid confusion, it&#8217;s advisable to name the symlink similar to the original folder.</p>
<p><img class="aligncenter" src="http://imagecdn.maketecheasier.com/2011/03/MacDropAny-Link.jpg" alt="MacDropAny  Link" width="360" height="149" /></p>
<p>MacDropAny will offer you to open the newly made symlink.</p>
<p><img class="aligncenter" src="http://imagecdn.maketecheasier.com/2011/03/MacDropAny-succcess.jpg" alt="Success" width="360" height="113" /></p>
<h3>Testing Time</h3>
<p>Then it&#8217;s time to test the result. I dragged a text file into the symlink inside Dropbox folder.</p>
<p><img class="aligncenter" src="http://imagecdn.maketecheasier.com/2011/03/MacDropAny-Result.jpg" alt="Result" width="500" height="300" /></p>
<p>The text file appears on the original folder that I placed in the Desktop. Then I made changes into the text and saved. I checked the synchronized text on another computer, and it was updated. So the conclusion: the system works fine.</p>
<p><img class="aligncenter" src="http://imagecdn.maketecheasier.com/2011/03/MacDropAny-Original-Location.jpg" alt="Original Location" width="500" height="300" /></p>
<p>Words of warning though, it&#8217;s not advisable to sync folders with too many items inside &#8211; something like the Applications and Pictures folders &#8211; since Dropbox tends to behave erroneously when it tries to sync too many files. Read more about this in the <a href="http://wiki.dropbox.com/KnownIssues">Known Issues</a> page.</p>
<p>This two tools are the simplest solution that I could find to synchronized folders outside Dropbox. If you have other alternatives, please share them using the comment below.</p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02&amp;title=Two+Free+Tools+To+Synchronize+Any+Folder+To+Dropbox+%5BMac%5D&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02">Two Free Tools To Synchronize Any Folder To Dropbox [Mac]</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/synchronize-any-folder-to-dropbox/2011/03/02/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better Manage Your Gmail Inbox With Aliases</title>
		<link>http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16</link>
		<comments>http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16#comments</comments>
		<pubDate>Sun, 16 Aug 2009 22:08:40 +0000</pubDate>
		<dc:creator>Trevor Dobrygoski</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[gmail]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=6403</guid>
		<description><![CDATA[A while ago I was perusing the Google help files and found a cool little tidbit. It didn&#8217;t really hit me right away how useful it could be. Once I started to use it, I wondered how I got by not having it before. What I am babbling on about is Gmail&#8217;s ability to handle [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16&amp;title=Better+Manage+Your+Gmail+Inbox+With+Aliases&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16">Better Manage Your Gmail Inbox With Aliases</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-6422" src="http://imagecdn.maketecheasier.com/2009/08/gmail-logo.jpg" alt="logo-gmailalias" width="128" height="128" />A while ago I was perusing the Google help files and found a cool little tidbit. It didn&#8217;t really hit me right away how useful it could be. Once I started to use it, I wondered how I got by not having it before. What I am babbling on about is Gmail&#8217;s ability to handle <a title="Gmail Aliases" href="https://mail.google.com/support/bin/answer.py?answer=12096" target="_blank">aliases</a>. These are variations of your email address, not totally different email addresses, going to a common inbox.</p>
<p>The main idea behind using aliases in Gmail is to help you automate organizing incoming emails. Most people I know have separate folders for different people or projects. When an email is received, it eventually gets manually moved to the folder in which it belongs. Some who use desktop programs like Mail or Outlook may have rules set up. Few people however, take the time for this with their web based email accounts. This is one of the reasons people spend so much time dealing with email everyday.</p>
<p><span id="more-6403"></span>By simply giving your client, work, contest entry forms, social media site&#8230; an alias to your email address, you can have it automatically sent to a specific folder. This will save immense amounts of time sorting the messages in your inbox.</p>
<p>It is really quite simple to add an alias. All you need to do is add a [+] then your a word or abbreviation to your notmal email address. Here is an example. Let&#8217;s say your email address is<em> john.doe@gmail.com</em>. If you wanted to add &#8220;jm&#8221; for junk mail, your junk mail alias would look like this <em>john.doe+jm@gmail.com</em></p>
<p>You may want to write down the additional words or abbreviations you use so you can use them more than once. Here are some examples of short additions. There really isn&#8217;t a character limit for the alias, but you don&#8217;t want to go overboard.</p>
<p>eb = ebay<br />
sc = soccer team<br />
jm = junk mail<br />
bt = beta trial<br />
ja = job applied for or job application</p>
<p>There&#8217;s really no limit as to what you can use for the alias. The sky is the limit.</p>
<h3>Examples Uses</h3>
<p>1. <strong>Job Hunting</strong> &#8211; This can be a super handy feature to use when seeking employment. You could have your <em>john.doe+ja@gmail.com</em> alias on your resume and applications you fill out. This way when you get a reply, it will be aggregated into your &#8220;job hunt&#8221; folder.</p>
<p>2. <strong>Selling Online</strong> &#8211; Give an alias link such as <em>john.doe+cl@gmail.com</em> for your contact information in an ad on Craigslist.</p>
<p>3. <strong>Sports Teams</strong> &#8211; If you are on or manage a sports team (yes, even a fantasy football team counts).</p>
<p>4. <strong>Collaborating on a Project </strong>- Have all of the emails for different projects go into different folders.</p>
<h3>Setting Up a Filter</h3>
<p>Setting up a filter is pretty important. If you don&#8217;t do this part, it makes using an alias pointless. For those of you who don&#8217;t know how to create a filter and label, here&#8217;s how.</p>
<p>1. Click the <em>Settings</em> tab in the top right of your Gmail inbox page.</p>
<p>2. Click on <em>Filters</em></p>
<p>3. Click on <em>Create a new filter</em></p>
<p><img class="alignnone size-full wp-image-6412" src="http://imagecdn.maketecheasier.com/2009/08/gmail-new-filter.jpg" alt="create-filter-gmail alias" width="496" height="163" /></p>
<p>4. Type your email address with your alias in <em>[To:] </em>field</p>
<p><img class="alignnone size-full wp-image-6413" src="http://imagecdn.maketecheasier.com/2009/08/gmail-send-to.jpg" alt="filter-alias-email-gmailalias" width="500" height="111" /></p>
<p>5.  Click <em>Next step</em></p>
<p>6. Check the boxes for the actions you would like. In this case I chose the following options:</p>
<ul>
<li>Skip the Inbox (Archive it)</li>
<li>Apply Label &#8211; Job Hunt (If you don&#8217;t have a label created, click &#8220;Create new label&#8221; and choose a name.)</li>
<li>Never Send it to Spam</li>
</ul>
<p><img class="alignnone size-full wp-image-6414" src="http://imagecdn.maketecheasier.com/2009/08/gmail-filter-setting.jpg" alt="3-select-settings-gmail alias" width="485" height="233" /></p>
<p>7. Click<em> Create Filter</em></p>
<p>In the end, you should see something like this.</p>
<p><img class="alignnone size-full wp-image-6415" src="http://imagecdn.maketecheasier.com/2009/08/gmail-create-filter.jpg" alt="gmail-create-filter" width="500" height="49" /></p>
<p>What are the ways you plan to use aliases?</p>
<p>Image credit &#8211; <a title="Gmail Aliases Logo Credit" href="http://www.flickr.com/photos/adriarichards/2811720967/" target="_blank">Adria Richards</a></p>
<p><!--adsense#468x60--></p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16&amp;title=Better+Manage+Your+Gmail+Inbox+With+Aliases&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16">Better Manage Your Gmail Inbox With Aliases</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/better-manage-gmail-inbox-with-aliases/2009/08/16/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Making The Linux Command Line A Little Friendlier</title>
		<link>http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19</link>
		<comments>http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19#comments</comments>
		<pubDate>Thu, 19 Mar 2009 13:03:50 +0000</pubDate>
		<dc:creator>Joshua Price</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=3366</guid>
		<description><![CDATA[One thing that gets debated over and over in Linux is the need for the command line. Many say that you should never need to access a command prompt to get things done, others are of the opinion that the power of the Linux shell is one of the things that makes Linux so great. [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19&amp;title=Making+The+Linux+Command+Line+A+Little+Friendlier&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19">Making The Linux Command Line A Little Friendlier</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-3367 alignleft" src="http://imagecdn.maketecheasier.com/2009/03/konsole.png" alt="Console icon" width="128" height="128" />One thing that gets debated over and over in Linux is the need for the command line. Many say that you should never need to access a command prompt to get things done, others are of the opinion that the power of the Linux shell is one of the things that makes Linux so great. While I would fall into the latter category, I can certainly understand why people can get frustrated with having to learn complex and seemingly obscure commands to get their computer to work right. Even if you hate the command line, you often have no choice but to open it once in a while to get the job done. Today, we&#8217;ll be covering various ways to make it a little easier to navigate.</p>
<p><span id="more-3366"></span>For those just starting out with Linux, or the command line specifically, the program that displays the command prompt and handles your commands is called <em>bash</em>, or the Bourne Again Shell. In this article we&#8217;ll be using the words <em>command line</em> and <em>shell</em> interchangeably to refer to interacting with Linux through bash.</p>
<p>Today we&#8217;ll be covering:</p>
<ul>
<li>Changing the shell startup routine</li>
<li>Making a more useful command prompt</li>
<li>Creating aliases for long or complex commands</li>
</ul>
<h3>.bashrc and .bash_profile</h3>
<p>These two files are often the source of some confusion. At first appearance, they seem to do the exact same thing &#8211; running startup instructions every time you open a command prompt. In short, <em>.bash_profile</em> runs when you start a shell from a login screen (such as a console system login) and <em>.bashrc</em> runs for non-login shells (such as running Terminal from your system menu).  The <em>.bashrc</em> file is the one you&#8217;ll be using the majority of the time so that&#8217;s the one we&#8217;ll use in our examples today.</p>
<p>As I said, .bashrc is loaded by bash whenever you open a new shell. Chances are you already have a .bashrc file that was created for you when you first installed your Linux system. To see what&#8217;s already in there, load up your preferred text editor and open</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>YourUserName<span style="color: #000000; font-weight: bold;">/</span>.bashrc</pre></div></div>

<p>(By default, the file is hidden from public view. You&#8217;ll have to right-click and select Show Hidden Files before it can show itself.)</p>
<p>You&#8217;ll probably see several lines of code, bash shell scripting to be precise, already in there. The default .bashrc in most distros has some code to do things like color prompts (which we&#8217;ll get into a little bit) and some handy aliases (which we&#8217;ll get into a lot).</p>
<p><img class="aligncenter size-full wp-image-3381" src="http://imagecdn.maketecheasier.com/2009/03/default-bashrc.png" alt="The default .bashrc file for Ubuntu 8.10" width="560" height="508" /></p>
<p>Feel free to glance through the current contents of the file so you have an idea what&#8217;s already happening on each new shell session, but for the sake of this article we can safely ignore the current settings and just add what we want to the end.</p>
<p>Instead of putting our new items directly into the .bashrc file, we&#8217;re going to take a slightly different approach.  Each user on the system has their own .bashrc file in their home directory. If we wanted to make changes to the way bash runs, we&#8217;d have to place our changes in each of those files. If you later decide that what you did wasn&#8217;t quite what you wanted, you&#8217;d have to go through all of those files again and make your updates. Instead of all that hassle, we&#8217;re going to make a single file with all our custom settings, and just tell .bashrc to load from that file.  The diagram below demonstrates:</p>
<p><img class="aligncenter size-full wp-image-3510" src="http://imagecdn.maketecheasier.com/2009/03/source-diagram1.jpg" alt="Diagram representing file sourcing" width="550" height="395" /></p>
<p>By placing the <em>source</em> command at the end of the .bashrc file, it will pull our commands in from the custom-shell.sh file and overwrite the default prompt and default aliases with the ones we&#8217;ve specified. This way, we can make a single file (/etc/custom-shell.sh or whatever else you&#8217;d like to name it) and just tell each user&#8217;s .bashrc file to load it. So if you&#8217;ve still got your .bashrc file loaded in your text editor, move all the way down to the bottom and add</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>custom-shell.sh</pre></div></div>

<p>Note &#8211; you can take this a step further and add the <em>source</em> line to the .bashrc file in <em>/etc/skel</em>. That way, all new users created on the system will already have our <em>source</em> line included!</p>
<p>Save the .bashrc file and then create a new, blank text file named custom-shell.sh.  This is where we&#8217;ll be putting all of the new settings in the following sections.</p>
<h3>The Prompt</h3>
<p>Every system has a default prompt. Usually, it&#8217;s a bland, default prompt with only a little bit of useful information.  It probably looks something like:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">josh<span style="color: #000000; font-weight: bold;">@</span>roberts:~$</pre></div></div>

<p>To test out exactly how prompt customisation is done, enter the following into the shell:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;Custom &gt; &quot;</span></pre></div></div>

<p>This will turn your prompt into a simple arrow.  No useful info of any kind, but it shows the basic idea of how you change the contents of your prompt.</p>
<p>Over the years, people have taken prompt customisation to the extreme, putting all kinds of info into it. I won&#8217;t go into a huge amount of detail on how to handle colors and multi-line prompts and adding live info, but I will give a nice looking, useful prompt that you could use as a base for your own. In the custom-shell.sh file we created earlier, paste in:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>\[\033[1;36m\]\u\[\033[1;37m\] \[\033[0;36m\]<span style="color: #780078;">`date`</span><span style="color: #000099; font-weight: bold;">\n</span>\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] &quot;</span></pre></div></div>

<p>Most of what you see there are color codes telling bash to switch back and forth between various colors for the text in the prompt. The end result of all this gibberish is a rather nice looking and easy to understand prompt.</p>
<p><img class="aligncenter size-full wp-image-3467" src="http://imagecdn.maketecheasier.com/2009/03/newprompt.png" alt="New prompt after changes" width="484" height="316" /></p>
<p>Save the custom-shell.sh file after pasting in the code above. If you save it in /etc, you&#8217;ll probably need root privileges. You can save it anywhere you want, but make sure you point your .bashrc to the right place. To test out your new prompt, you can either close and re-open your shell, or just type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">source</span> .bashrc</pre></div></div>

<p>into your current shell.</p>
<p>Your .bashrc file should read our new prompt info from the custom-shell.sh file and make your prompt nice and fancy with colors and all.</p>
<p>For an EXTREMELY detailed guide on prompt magic, see the <a title="Linux Prompt HOWTO" href="http://www.linux.org/docs/ldp/howto/Bash-Prompt-HOWTO/index.html" target="_blank">Official Linux Prompt HOWTO</a>.<br />
<a name="alias"></a><br />
<h3>Aliases</h3>
<p>I might as well tell you up front &#8211; I love aliases. The first thing I do when I install a new system is set up my preferred aliases. As the name implies, an alias is just another name for a command. For example, my most used alias is one I call &#8220;gimme&#8221; which bash translates to &#8220;sudo apt-get install&#8221;. You can use aliases for a variety of reasons, such as shortening a long command or making the Linux shell act more like a Windows/Mac/Solaris/BSD/Whatever shell. I suggest pasting the following aliases into your custom-shell.sh file. Those who use distros other than Debian/Ubuntu style can translate the apt-get aliases into the appropriate <em>yum</em> command, or whatever package utility you prefer, and of course the same is true for aptitude and portage users.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#Apt-related aliases</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">gimme</span>=<span style="color: #ff0000;">&quot;sudo apt-get install&quot;</span>            <span style="color: #666666; font-style: italic;">#Install new software</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">acs</span>=<span style="color: #ff0000;">&quot;apt-cache search&quot;</span>                    <span style="color: #666666; font-style: italic;">#Search available packages</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">purge</span>=<span style="color: #ff0000;">&quot;apt-get --purge remove&quot;</span>        <span style="color: #666666; font-style: italic;">#Removes package and its config files</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">update</span>=<span style="color: #ff0000;">&quot;sudo apt-get update&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">debclean</span>=<span style="color: #ff0000;">&quot;sudo apt-get clean &amp;amp;&amp;amp; sudo apt-get autoremove&quot;</span>  <span style="color: #666666; font-style: italic;">#Removes some unneeded files</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#Misc useful aliases</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ls</span>=<span style="color: #ff0000;">&quot;ls --color=auto&quot;</span>                           <span style="color: #666666; font-style: italic;">#Plain ls with color</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ll</span>=<span style="color: #ff0000;">&quot;ls -l --color=auto&quot;</span>                         <span style="color: #666666; font-style: italic;">#Detailed list with color</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">config</span>=<span style="color: #ff0000;">&quot;dpkg-reconfigure&quot;</span>                <span style="color: #666666; font-style: italic;">#Re-run the configuration step for a package</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">cmi</span>=<span style="color: #ff0000;">&quot;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; sudo make install&quot;</span>    <span style="color: #666666; font-style: italic;">#Common steps to install package from source</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">numfiles</span>=<span style="color: #ff0000;">&quot;echo <span style="color: #007800;">$(ls -1 | wc -l)</span>&quot;</span>          <span style="color: #666666; font-style: italic;">#Count the number of files in current directory</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">dfree</span>=<span style="color: #ff0000;">&quot;df -h&quot;</span>                                       <span style="color: #666666; font-style: italic;">#See how much hard drive space is free in easy-to-read format</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">favdir</span>=<span style="color: #ff0000;">&quot;cd /directory/you/use/a/lot&quot;</span>   <span style="color: #666666; font-style: italic;">#Quickly switch to a directory you often need (music, documents, etc)</span></pre></td></tr></table></div>

<p>Add whatever else you think might be useful, or change the ones I&#8217;ve suggested to suit your needs. Instead of <em>gimme</em> and <em>acs</em>, you could use <em>get</em> and <em>got</em>. Some people transitioning from Windows like to make aliases to mimic Windows commands: <em>copy</em> to replace <em>cp</em>, <em>move</em> to replace <em>mv</em>, <em>ipconfig</em> to replace <em>ifconfig</em>, etc.</p>
<p>Your custom-shell.sh should now look something like this:</p>
<p><img class="aligncenter size-full wp-image-3516" src="http://imagecdn.maketecheasier.com/2009/03/custom-shell.png" alt="Example of finished file" width="448" height="528" /></p>
<p>Once the custom-shell.sh file is saved, and .bashrc is set to point to it, re-open your command prompt and you should have a nice looking, useful prompt with several handy aliases to make things a little easier.</p>
<p>I would love to hear about you favorite aliases! Leave a comment and share some useful command shortcuts you&#8217;ve found, or maybe a nice prompt.  The command line can be a very powerful tool, and I&#8217;d love to know ways you&#8217;ve found to make it even better.</p>
<p><!--adsense#468x60--></p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19&amp;title=Making+The+Linux+Command+Line+A+Little+Friendlier&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19">Making The Linux Command Line A Little Friendlier</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/making-the-linux-command-line-a-little-friendlier/2009/03/19/feed</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>

