<?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>gHacks technology news &#187; terminal</title>
	<atom:link href="http://www.ghacks.net/tag/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 03:24:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get To Know Linux: gnome-terminal</title>
		<link>http://www.ghacks.net/2009/02/06/get-to-know-linux-gnome-terminal/</link>
		<comments>http://www.ghacks.net/2009/02/06/get-to-know-linux-gnome-terminal/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 03:56:20 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Desktop Manager]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[gnome-terminal]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=10353</guid>
		<description><![CDATA[If you use Linux for any amount of time, then most likely you have experienced the command line. And if you use the GNOME desktop environment then you know gnome-terminal. As far as terminals are concerned, gnome-terminal is one of the most versatile of the terminals. It features tabs, colored text, mouse event support, profiles, [...]]]></description>
			<content:encoded><![CDATA[<p>If you use Linux for any amount of time, then most likely you have experienced the command line. And if you use the GNOME desktop environment then you know gnome-terminal. As far as terminals are concerned, gnome-terminal is one of the most versatile of the terminals. It features tabs, colored text, mouse event support, profiles, real transparency, compositing, and more. And of course you get glorious Linux commands!</p>
<p>The gnome-terminal comes pre-installed with any GNOME desktop installation, so if you&#8217;re running GNOME you won&#8217;t have to do any further installation. You might, however, want to undertake some configuration changes. We&#8217;ll examine some of those options here.</p>
<p><span id="more-10353"></span></p>
<div id="attachment_10355" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ghacks.net/wp-content/uploads/2009/02/gnome_terminal_main.png"><img class="size-medium wp-image-10355" src="http://www.ghacks.net/wp-content/uploads/2009/02/gnome_terminal_main-500x356.png" alt="Default gnome-terminal Window" width="300" height="214" /></a><p class="wp-caption-text">Default gnome-terminal Window</p></div>
<p>When you start up the gnome-terminal you will be greeted by the default profile with a single tab open.</p>
<p>The default features you will notice immediately are the menu bar and the scroll bar. Outside of the bash prompt, the menu bar will be where you take care of most of your gnome-terminal business. Let&#8217;s examine what you will find in each menu entry:</p>
<p><strong>File:</strong> In this menu entry you can open/close a new tab, open/close a new terminal, and/or create a new profile.</p>
<p><strong>Edit:</strong> In this menu entry you can copy/paste, edit your profiles, and/or configure keyboard shortcuts.</p>
<p><strong>View: </strong>In this menu entry you can configure gnome-terminal to show/hide the menubar, and/or the scrollbar or you can zoom in or out.</p>
<p><strong>Terminal:</strong> In this menu entry you can change your profile, change your window title, set character encoding, reset your terminal, and/or reset and clear your terminal.</p>
<p><strong>Tabs:</strong> In this menu entry you can cycle through your open tabs and/or detach a tab (so it is its own window).</p>
<p><strong>Help:</strong> In this menu entry you can open up the GNOME Help system to learn about gnome-terminal and you can open the &#8220;about gnome-terminal&#8221; window.</p>
<p>That&#8217;s it for the tabs.</p>
<p>As I mentioned, the gnome-terminal is fairly configurable. You can make this terminal as minimal as you like. You can remove the scrollbar and the menubar if you like. To do this click on the View menu and de-select both the scrollbar and the menubar. What that leaves you with is nothing more than a terminal prompt in a window. Or does it? If you right click anywhere in the gnome-terminal window a menu will appear. From that menu you can select to, once again, show the menubar. Once the menubar is back you can then select to show the scrollbar.</p>
<p><strong>Profiles</strong></p>
<p>One of the nicest aspects of the gnome-terminal is that you can create profiles. Each profile can reflect, say, a different job. Say you want to have a root user profile. This can make for an easy way to instantly know you are using the root user (so you don&#8217;t commit any command-line fouls that could damage your system). To create a new profile click on File and then select New Profile.  What you will see is a small window asking you to name the new profile and base the new profile on a pre-existing profile.</p>
<p>Once the new profile is named the main Profile editor window will appear where you can really tweak your profile. There are six tabs within the Profile editor:</p>
<p><strong>General: </strong>Configure the general options such as name, font, show menubar, terminal bell.</p>
<p><strong>Title and Command: </strong>Give this profile an initial title and run custom commands (such as automatically listing directory contents when a profile is opened.)</p>
<p><strong>Colors: </strong>Foreground and background colors.</p>
<p><strong>Background: </strong>Configure a background image or window transparency.</p>
<p><strong>Scrolling: </strong>Place the scroll bar and define how far back it will scroll.</p>
<p><strong>Compatibility: </strong>Configure the backspace and delete keys.</p>
<p><strong>Final thoughts</strong></p>
<p>I have used many terminals in my day, but the gnome-terminal is one of the finest. Not only is it very compatible, it is useful and user-friendly. If you use the GNOME desktop (or an alternative desktop), make sure you get to know gnome-terminal for all your command line goodness.</p>

	Tags: <a href="http://www.ghacks.net/tag/bash/" title="bash" rel="tag">bash</a>, <a href="http://www.ghacks.net/tag/command-line/" title="command-line" rel="tag">command-line</a>, <a href="http://www.ghacks.net/tag/gnome/" title="GNOME" rel="tag">GNOME</a>, <a href="http://www.ghacks.net/tag/gnome-terminal/" title="gnome-terminal" rel="tag">gnome-terminal</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/prompt/" title="prompt" rel="tag">prompt</a>, <a href="http://www.ghacks.net/tag/terminal/" title="terminal" rel="tag">terminal</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/01/06/save-your-skin-by-customizing-your-bash-prompt/" title="Save Your Skin by Customizing Your Bash Prompt (January 6, 2009)">Save Your Skin by Customizing Your Bash Prompt</a> (7)</li>
	<li><a href="http://www.ghacks.net/2009/04/03/simple-gnome-note-taking-with-tomboy/" title="Simple GNOME Note Taking with Tomboy (April 3, 2009)">Simple GNOME Note Taking with Tomboy</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/02/13/searching-for-files-in-linux-via-command-line/" title="Searching for Files in Linux via Command Line (February 13, 2009)">Searching for Files in Linux via Command Line</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/02/15/quick-archiving-in-gnome/" title="Quick Archiving in GNOME (February 15, 2009)">Quick Archiving in GNOME</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/03/12/manage-network-devices-in-fedora/" title="Manage Network Devices in Fedora (March 12, 2009)">Manage Network Devices in Fedora</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/02/06/get-to-know-linux-gnome-terminal/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Save Your Skin by Customizing Your Bash Prompt</title>
		<link>http://www.ghacks.net/2009/01/06/save-your-skin-by-customizing-your-bash-prompt/</link>
		<comments>http://www.ghacks.net/2009/01/06/save-your-skin-by-customizing-your-bash-prompt/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 20:21:28 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[.bashrc]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash customization]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=9685</guid>
		<description><![CDATA[If you do much work at the Linux command line then you know the bash prompt can offer you a lot of information. But by default the prompt itself isn&#8217;t too useful.  What you might not know is that you can customize the bash prompt in many ways. From configuring colors to the information bash [...]]]></description>
			<content:encoded><![CDATA[<p>If you do much work at the Linux command line then you know the bash prompt can offer you a lot of information. But by default the prompt itself isn&#8217;t too useful.  What you might not know is that you can customize the bash prompt in many ways. From configuring colors to the information bash reports, there are so many variations on the bash prompt you could play for days.</p>
<p>But there is one configuration you can do that is more helpful than any other. Have you ever accidentally issued a standard user command as the root user only to find yourself really regretting that command a millisecond later? It&#8217;s a common new Linux user mistake, but one that can be prevented. You&#8217;ll learn how to help yourself out here.</p>
<p><span id="more-9685"></span>Before we get into the actual configuration (and how you can help yourself), let&#8217;s take a look at some basics. From your command line issue the following command <em>echo $PS1</em>. What you should see is the string that comprises your current default bash prompt. When I issue this command I see <strong>[\u@\h \W]\$</strong> and my prompt looks like <strong>[jlwallen@localhost ~]$</strong>. Let me explain what the components of the string are.</p>
<p>[ - When used alone this is simply a printed character.</p>
<p>\u - This prints out the current username.</p>
<p>@ - When used alone this is simply a printed character.</p>
<p>\h - This prints out the hostname of the machine up to the first dot.</p>
<p>\W - This prints out the basename of the current working directory (with the users home directory represented by the "~" character.</p>
<p>] &#8211; When used alone this is simply a printed character.</p>
<p>\$ &#8211; If root user this prints a &#8220;#&#8221; character, otherwise it prints a &#8220;$&#8221; character.</p>
<p>So let&#8217;s say you want to be clever and have a prompt that looks like <strong>URHERE (~):</strong></p>
<p>To create this issue the command:</p>
<p><em>PS1=&#8221;URHERE (\W): &#8220;</em></p>
<p>What the above command does is temporarily set your bash prompt. This prompt will last until you close out your terminal window. When you open a new terminal your default prompt will return.</p>
<p>To make this permanent you will need to open up your <strong>.bashrc</strong> file and add the line you entered as a command. The default <strong>.bashrc</strong> file might look like:</p>
<p><em># .bashrc</em></p>
<p><em># User specific aliases and functions<br />
? () { echo &#8220;$*&#8221; | bc -l; }</em></p>
<p><em># Source global definitions<br />
if [ -f /etc/bashrc ]; then<br />
. /etc/bashrc<br />
fi</em></p>
<p>If you want to make this permanent add the line <em>PS1=&#8221;URHERE </em>(\W): &#8220;<em> </em>right under the <em># .bashrc</em> line. Save that file and open up a new prompt. Voila!</p>
<p><strong>Adding Color</strong></p>
<p>Okay, let&#8217;s take it to 11. One trick I like to employ is configuring the root prompt to be a different color than the standard user prompt. This way, if I see a red prompt, I instantly know I am dealing with the root user. Here is the trick with adding color. First you have to use a special string to indicate the beginning of a color. That string is:</p>
<p><em>\e[</em></p>
<p>Now to end a color you use the special string:</p>
<p><em>\e[m</em></p>
<p>For the color red you would use the string:</p>
<p>1;31m</p>
<p>So if you want the string <em>URHERE</em> to show up in red and the directory to remain the default white you would enter into the root user&#8217;s .bashrc file:</p>
<p>PS1=&#8221;\e[1;31mURHERE\e[m (\W): &#8221;</p>
<p>Here are the various colors you can use.</p>
<ul>
<li>0;30 &#8211; Black</li>
<li>0;31 &#8211; Red</li>
<li>0;32 &#8211; Green</li>
<li>0;33 &#8211; Brown</li>
<li>0;34 &#8211; Blue</li>
<li>0;35 &#8211; Purple</li>
<li>0;36 &#8211; Cyan</li>
</ul>
<p>The 0 equals the dark variation of the color and a 1 equals the lighter variation of the color.</p>
<p><strong>Final Thoughts</strong></p>
<p>You can really get creative with the bash prompt. With the basics you have learned here you can make your prompt both unique and helpful. If you come up with something really incredible post it here for all to enjoy!</p>

	Tags: <a href="http://www.ghacks.net/tag/bashrc/" title=".bashrc" rel="tag">.bashrc</a>, <a href="http://www.ghacks.net/tag/bash/" title="bash" rel="tag">bash</a>, <a href="http://www.ghacks.net/tag/bash-customization/" title="bash customization" rel="tag">bash customization</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/terminal/" title="terminal" rel="tag">terminal</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/02/06/get-to-know-linux-gnome-terminal/" title="Get To Know Linux: gnome-terminal (February 6, 2009)">Get To Know Linux: gnome-terminal</a> (5)</li>
	<li><a href="http://www.ghacks.net/2009/05/20/get-to-know-linux-bash-scripting-basics/" title="Get to know Linux: Bash scripting basics (May 20, 2009)">Get to know Linux: Bash scripting basics</a> (3)</li>
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/07/widgets-for-linux-superkaramba/" title="Widgets for Linux: SuperKaramba (December 7, 2006)">Widgets for Linux: SuperKaramba</a> (6)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/01/06/save-your-skin-by-customizing-your-bash-prompt/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Traceroute From Multiple Locations</title>
		<link>http://www.ghacks.net/2008/07/30/traceroute-from-multiple-locations/</link>
		<comments>http://www.ghacks.net/2008/07/30/traceroute-from-multiple-locations/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 15:32:17 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Online Services]]></category>
		<category><![CDATA[connection problems]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[traceroute]]></category>
		<category><![CDATA[tracert]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=5308</guid>
		<description><![CDATA[The Traceroute command displays the list of Internet hops that lie between your local computer and the remote computer. It provides an excellent way to identify connection problems because it is actually showing you the hop that is causing the problems.
Just Traceroute (via Digital Inspiration) takes this a step further by issuing a traceroute command [...]]]></description>
			<content:encoded><![CDATA[<p>The Traceroute command displays the list of Internet hops that lie between your local computer and the remote computer. It provides an excellent way to identify connection problems because it is actually showing you the hop that is causing the problems.</p>
<p><a href="http://just-traceroute.com/">Just Traceroute</a> (via <a href="http://www.labnol.org/internet/tools/run-traceroute-command-on-multiple-computers/4027/">Digital Inspiration</a>) takes this a step further by issuing a traceroute command from multiple locations in the world. Different locations, especially when they are from different parts of the world, use different &#8220;ways&#8221; to reach their target which could give additional information about the cause of the connection problem.</p>
<p>The services is using servers located in the United States, Netherlands, Australia and Singapore to run the traceroute command.</p>
<p><span id="more-5308"></span><img src="http://www.ghacks.net/wp-content/uploads/2008/07/tracerouter_multiple_locations-500x250.jpg" alt="tracerouter multiple locations" title="tracerouter multiple locations" width="500" height="250" class="alignnone size-medium wp-image-5731" /></p>
<p>The results can be forwarded to an email address. The very same window offers a way to copy the all four traceroutes to the clipboard directly.</p>

	Tags: <a href="http://www.ghacks.net/tag/connection-problems/" title="connection problems" rel="tag">connection problems</a>, <a href="http://www.ghacks.net/tag/network/" title="network" rel="tag">network</a>, <a href="http://www.ghacks.net/tag/terminal/" title="terminal" rel="tag">terminal</a>, <a href="http://www.ghacks.net/tag/traceroute/" title="traceroute" rel="tag">traceroute</a>, <a href="http://www.ghacks.net/tag/tracert/" title="tracert" rel="tag">tracert</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/01/04/webhopper-internet-traceroute-tool/" title="WebHopper Internet Traceroute Tool (January 4, 2009)">WebHopper Internet Traceroute Tool</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/02/18/internet-maniac-networking-software/" title="Internet Maniac Networking Software (February 18, 2009)">Internet Maniac Networking Software</a> (2)</li>
	<li><a href="http://www.ghacks.net/2008/05/11/etoolz-network-toolset/" title="eToolz Network Toolset (May 11, 2008)">eToolz Network Toolset</a> (1)</li>
	<li><a href="http://www.ghacks.net/2008/10/21/zonescreen-finally-gets-64-bit-update/" title="ZoneScreen Finally Gets 64-bit Update (October 21, 2008)">ZoneScreen Finally Gets 64-bit Update</a> (7)</li>
	<li><a href="http://www.ghacks.net/2005/11/06/who-is-connected-to-your-pc-right-now/" title="Who is connected to your pc right now ? (November 6, 2005)">Who is connected to your pc right now ?</a> (6)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2008/07/30/traceroute-from-multiple-locations/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
