<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Unix Tutorial</title>
	
	<link>http://www.unixtutorial.org</link>
	<description>Learn UNIX</description>
	<lastBuildDate>Fri, 16 Oct 2009 00:15:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/UnixTutorial" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Climate Change: How You Can Help Prevent It</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/79Zvs0u1WAM/</link>
		<comments>http://www.unixtutorial.org/2009/10/climate-change-how-you-can-help-prevent-it/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 00:14:35 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[bad2009]]></category>
		<category><![CDATA[blog action day]]></category>
		<category><![CDATA[climate change]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=614</guid>
		<description><![CDATA[Since it's Blog Action Day 2009 today, I'd like to remind all the readers of my blog how climate change can be prevented by following really simple rules.
Since Unix Tutorial is a technical blog, I'll try and stay as technical as possible within the topic.
Virtualize to consume less energy, get rid of old hardware
Old servers [...]]]></description>
			<content:encoded><![CDATA[<p>Since it's <a href="http://www.blogactionday.org"><strong>Blog Action Day 2009</strong></a> today, I'd like to remind all the readers of my blog how climate change can be prevented by following really simple rules.</p>
<p>Since <a href="http://www.unixtutorial.org">Unix Tutorial</a> is a technical blog, I'll try and stay as technical as possible within the topic.</p>
<h3>Virtualize to consume less energy, get rid of old hardware</h3>
<p>Old servers required a much bigger commitment in the past: not only did they cost a fortune, but they also needed a lot of space and required a lot of power. These days, 1u or 2u server solution can easily outperform a computing system which used to take a whole cabinet in your datacentre. And since the cost of supporting old hardware only increases with each year, it makes a lot of sense to simply but a new server to replace the old infrastructure.</p>
<p>If you're really big into the whole life cycle thing, an even better approach is to virtualize most of your systems. There are quite a few great solutions today &#8211; <strong> vSphere </strong>from <strong>VMware</strong>, <strong>Xen </strong>and <strong>KVM </strong>based virtualization from <strong>RedHat </strong>and the <strong>xVM </strong>family of virtualization solutions by Sun Microsystems (Oracle).</p>
<p>A ratio of 15 virtual machines per 1 physical server isn't that uncommon, which can give you an idea about the kind of improvement you'll get by following the route of virtualization.</p>
<p>The math is really simple: shut down 15 old servers, keep only 1 new server running &#8211; this means greatly reducing the amount of energy and therefore helping the planet stay green for a bit longer.</p>
<h3>Read from your screen, print less</h3>
<p>Perhaps on a much smaller scale, the issue of printing materials is also a direction you may want to explore if you're serious about helping the climate change prevention.</p>
<p>Many of us still print dozens of sheets of A4 paper a day. We print out emails and directions, man pages and screenshots &#8211; many of these to never be used again.</p>
<p>Start small and pay attention to every urge of yours to print something out. Ask yourself a few simple questions just to be sure that you absolutely need each piece of the information printed out.</p>
<p>As a Unix administrator, you should find ways to monitor your printing service. Even simple things like weekly stats of the top users printing stuff out might sometimes help you save really big on the paper and toner cost. Many users print stuff out without a certain reason for doing so &#8211; it's just their habit.</p>
<p>This means that if you're familiar with <strong>lpstat </strong>and <strong>lpadmin </strong>commands, you have a chance to help yourself and others become more aware of how much you're printing and what can be done to break your printing patters.</p>
<p>eInk-based book readers are a great alternative for those of you who claim they absolutely can't read off screen. It may be a while until A4-sized readers become widely available and affordable, but already you can get a book reader for just a few hundred dollars and this little device can be used for storing and reading of many books &#8211; all without much of an environmental impact, since you no longer need paper books.</p>
<h3>Use only what you need</h3>
<p>You'll be amazed how much can be saved if you run CPUs on your system at the speed sufficient to fulfill your computational needs instead of having everything running at 100% of their speed!</p>
<p>Many modern servers have power-awareness and intelligence built-in. I especially like blade server solutions &#8211; Dell, HP and Sun have all got a range of blade enclosures and blade servers on offer.</p>
<p>The beauty of using blades is that blade enclosures are extremely intelligent and configurable devices &#8211; you can use them to cap the power draw for your whole enclosure or a certain blade. Such power limitations will usually result in a lower performance, but for many solutions it's not critical at all. For example, if your blade hosts a FlexLM licenses server or serves web pages, it will be almost impossible to spot a performance difference even if you significantly lower the CPU speed.</p>
<p>Most operating systems support power management options. For desktops, this means ability to manage the speed of your cooling fans or the speed of your CPU which immediately has an impact. Sometimes you can also control your graphics card in the same manner. If you add screen blanking and hard drives management to this (configuring the sleep times for periods of long inactivity), you have all you need to reduce the power draw of your PC and ultimately help our planet stay the way it currently is or maybe even get refreshed over the next few years.</p>
<p>That's it for today! Sure enough, these tips may not seem to be all this climate change preventative, but trust me &#8211; we all have to  participate with however small steps and environmental improvements we can think of.</p>
<h3>See also:</h3>
<ul>
<li><a title="Blog Action Day" href="http://www.blogactionday.org">Blog Action Day website</a></li>
<li><a href="http://www.change.org">Change</a></li>
<li><a href="http://www.desktop-virtualization.com/tag/virtualbox/">Desktop Virtualization website</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=79Zvs0u1WAM:GvnGz8ud5xU:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=79Zvs0u1WAM:GvnGz8ud5xU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=79Zvs0u1WAM:GvnGz8ud5xU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=79Zvs0u1WAM:GvnGz8ud5xU:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/79Zvs0u1WAM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/10/climate-change-how-you-can-help-prevent-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/10/climate-change-how-you-can-help-prevent-it/</feedburner:origLink></item>
		<item>
		<title>Ask me a Unix question on Twitter</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/nNr0N_J97Eo/</link>
		<comments>http://www.unixtutorial.org/2009/10/ask-me-a-unix-question-on-twitter/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 09:07:19 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=611</guid>
		<description><![CDATA[Hi everyone, it seems to be really long since my last technical post here &#8211; too much stuff happening at work, plus I'm studying for a CCNA exam.
If you're in need of quick help &#8211; drop me a message on Twitter &#8211; I'm UnixTutorial there. I can't promise a prompt reply, but at least this [...]]]></description>
			<content:encoded><![CDATA[<p>Hi everyone, it seems to be really long since my last technical post here &#8211; too much stuff happening at work, plus I'm studying for a <a rel=nofollow href="http://en.wikipedia.org/wiki/CCNA">CCNA</a> exam.</p>
<p>If you're in need of quick help &#8211; drop me a message on Twitter &#8211; I'm <a title="UnixTutorial @ Twitter" href="http://www.twitter.com/Unixtutorial">UnixTutorial</a> there. I can't promise a prompt reply, but at least this way you'll have some interactivity.</p>
<p>I see how many people leave questions in comments to my posts, and I don't always have the time to reply &#8211; so feel free to <a href="http://www.unixtutorial.org/contact/">send me an email</a> if you really need my help.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=nNr0N_J97Eo:bcv8jXHvt44:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=nNr0N_J97Eo:bcv8jXHvt44:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=nNr0N_J97Eo:bcv8jXHvt44:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=nNr0N_J97Eo:bcv8jXHvt44:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/nNr0N_J97Eo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/10/ask-me-a-unix-question-on-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/10/ask-me-a-unix-question-on-twitter/</feedburner:origLink></item>
		<item>
		<title>Unix Tutorial membership – registration open for a week</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/dBPER5Jhogo/</link>
		<comments>http://www.unixtutorial.org/2009/08/unix-tutorial-membership-registration-open-for-a-week/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 15:23:00 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=598</guid>
		<description><![CDATA[Hi everyone!
I'm back from my holidays, and it's time to open the Unix Tutorial members area for new registrations once again!
If you're still looking for a reason to become a member &#8211; please read the Becoming a Unix Tutorial member post.
This time around, new users will receive a life-time access to just one course, the [...]]]></description>
			<content:encoded><![CDATA[<p>Hi everyone!</p>
<p>I'm back from my holidays, and it's time to open the <a href="http://www.unixtutorial.org/members"><strong>Unix Tutorial members</strong></a> area for <a href="http://www.unixtutorial.org/ut/signup.php">new registrations</a> once again!</p>
<p>If you're still looking for a reason to become a member &#8211; please read the <a href="http://www.unixtutorial.org/2009/03/become-a-lifetime-unix-tutorial-member/">Becoming a Unix Tutorial member</a> post.</p>
<p>This time around, new users will receive a life-time access to just one course, the <strong>Unix foundations</strong> one. This is going to be a constantly updated and expanded course so I'm sure you'll benefit from revisiting it now and then. New courses added at a later stage will never be available for free: I plan to make them very specialized and will charge for access &#8211; more on this later.</p>
<p>Wait no more &#8211; here's your chance to join: <a href="http://www.unixtutorial.org/ut/signup.php">Unix Tutorial members sign-up</a>. I don't have nearly as much time to further develop the course, but please take time to leave a comment to this post or update a thread on the Unix Tutorial members discussion board about what exactly you're interested in.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=dBPER5Jhogo:XIAP3dFi98Q:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=dBPER5Jhogo:XIAP3dFi98Q:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=dBPER5Jhogo:XIAP3dFi98Q:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=dBPER5Jhogo:XIAP3dFi98Q:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/dBPER5Jhogo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/08/unix-tutorial-membership-registration-open-for-a-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/08/unix-tutorial-membership-registration-open-for-a-week/</feedburner:origLink></item>
		<item>
		<title>Fixed calculations in Unix scripts</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/nqZdtzupkfE/</link>
		<comments>http://www.unixtutorial.org/2009/06/fixed-point-calculations-in-unix-scripts/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 12:11:06 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Basic stuff]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[bc command]]></category>
		<category><![CDATA[calculations]]></category>
		<category><![CDATA[unix scripts]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=583</guid>
		<description><![CDATA[Although I've already shown you how to sum numbers up in bash, I only covered the bash way of doing it. I really like scripting with bash, but when it comes to calculations, there's quite a few important features missing from bash, and fixed point (thanks for the correction, Azrael Tod!) calculations is one of [...]]]></description>
			<content:encoded><![CDATA[<p>Although I've already <a title="arithmetic operations in Unix" href="http://www.unixtutorial.org/2008/06/arithmetic-operations-in-unix-scripts/">shown you how to sum numbers up in bash</a>, I only covered the bash way of doing it. I really like scripting with bash, but when it comes to calculations, there's quite a few important features missing from bash, and fixed point (thanks for the correction, <a href="http://g33ky.de/">Azrael Tod</a>!) calculations is one of them. Fortunately, <strong>bc command</strong> comes as a standard in most Unix distros, and can be used for quite complex calculations.</p>
<h3>Basic calculations with bc</h3>
<p><strong>bc </strong>is a very simple command. It takes standard input as an expression and then evaluates this, performing all the necessary calculations and showing you the result. Thus, to quickly sum numbers up or get a result of some other calculation, simply echo the expression and then pipe it out to the <strong>bc command</strong>:</p>
<pre>ubuntu$ <strong>echo "1+2" | bc</strong>
3</pre>
<p>Now, in scripts your calculations with <strong>bc </strong>are done quite similarly to what we did in <strong>bash</strong>. Here's an example:</p>
<pre>ubuntu$ <strong>NUMBER1=1</strong>
ubuntu$ <strong>NUMBER2=2</strong>
ubuntu$ <strong>SUM=$(echo "$NUMBER1+$NUMBER2"| bc)</strong>
ubuntu$ <strong>echo $SUM</strong>
3</pre>
<p>I told you these calculations would be basic, right? Now onto the more interesting stuff!</p>
<h3>Fixed point calculations with bc</h3>
<p>Most people learn about bash math limitations when they attempt to do a simple calculation but can't get the current answer with fixed point values. By default, all the operations happen with integers, and that's what you would get:</p>
<pre>ubuntu$ <strong>echo "1/2" | bc</strong>
0</pre>
<p>Now, if you expect 0.5 to be the result of dividing 1 by 2, you need to explain it to <strong>bc</strong>, because by default it doesn't show you any fractional part of the number.</p>
<p>The way you do this is quite simple: all you have to do is specify the number of digits you'd like to see  after the radix point of your result. For example, if I set this number to 5, I'll get <strong>bc </strong>to output the result of my calculation with 5 digits after the radix point. The special keyword to convey this intention to the <strong>bc</strong> command is called <strong>scale</strong>. Just specify the scale value and separate it from the rest of your expression by the semicolon sign:</p>
<pre>ubuntu$ <strong>echo "scale=5; 1/2" | bc</strong>
.50000</pre>
<p>Here's another example:</p>
<pre>ubuntu$ <strong>echo "scale=5; 0.16*10.79" | bc</strong>
1.7264</pre>
<p>Hope this answers your question! <strong>bc command</strong> is very powerful, so I'll definitely have to revisit it again in the future. For now though, enjoy the fixed point calculations and be sure to ask questions if you think I can help!</p>
<h3>See also:</h3>
<ul>
<li><strong><a title="summing numbers up" href="http://www.unixtutorial.org/2009/02/unix-scripts-how-to-sum-numbers-up/">Summing numbers up in Unix scripts</a></strong></li>
<li><strong><a title="basic unix math" href="http://www.unixtutorial.org/2008/06/arithmetic-operations-in-unix-scripts/">Basic math in Unix scripting</a></strong></li>
<li><strong><a title="unix scripts calculations" href="http://www.unixtutorial.org/2008/09/math-expressions-in-unix-scripts/">Another way of doing calculations in scripts</a><br />
</strong></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=nqZdtzupkfE:Ey97koSq3mM:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=nqZdtzupkfE:Ey97koSq3mM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=nqZdtzupkfE:Ey97koSq3mM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=nqZdtzupkfE:Ey97koSq3mM:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/nqZdtzupkfE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/06/fixed-point-calculations-in-unix-scripts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/06/fixed-point-calculations-in-unix-scripts/</feedburner:origLink></item>
		<item>
		<title>Command Aliases in Unix shells</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/tFkxOiIvmnQ/</link>
		<comments>http://www.unixtutorial.org/2009/06/command-aliases-in-unix-shells/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 15:24:46 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Basic stuff]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=572</guid>
		<description><![CDATA[One of the really useful features almost every Unix shell has is support for command aliases &#8211; a way to run a command or a series of Unix commands using a shorter name you get associated with such commands.
An example of a command alias in Unix shell
Here's one of the most useful aliases I have [...]]]></description>
			<content:encoded><![CDATA[<p>One of the really useful features almost every Unix shell has is support for <strong>command aliases</strong> &#8211; a way to run a command or a series of Unix commands using a shorter name you get associated with such commands.</p>
<h3>An example of a command alias in Unix shell</h3>
<p>Here's one of the most useful aliases I have for Solaris systems:</p>
<pre>solaris$ <strong>alias ls='/usr/local/gnu/bin/ls --color -F'</strong></pre>
<p>What is allows me to do is to simply type "<strong>ls</strong>" instead of the really long command line it refers to: <strong>/usr/local/gnu/bin/ls &#8211;color -F</strong>.</p>
<p>You see, the <strong><a href="http://www.unixtutorial.org/commands/ls">ls command</a></strong> which is shipped with Solaris, doesn't have many options of the more up-to-date GNU ls command, and working with many Linux systems I quite like some of them like color highlighting of different directory objects &#8211; files, directories and executables.</p>
<p>Try typing the longer command a few times in a row, and compare it to the "ls" to get the idea of how much of a productivity gain one command alias can be!</p>
<h3>Why you should use command aliases</h3>
<p>Like many other things in Unix, aliases are a way to become more productive. The general rule of thumb is this: if you have to run some command something more than once every day &#8211; consider creating an alias for it. These are just a few cases where it makes sense to employ them:</p>
<ul>
<li>if you repeatedly check whether some files exist or get updated</li>
<li>if you're monitoring a certain aspect of your OS and you get the values using grep command</li>
<li>if you're connecting to the same hosts using rsh or ssh</li>
</ul>
<p>All of these and many more examples are greatly simplified if you alias them to some shorter commands.</p>
<h3>Creating new aliases in bash</h3>
<p>Setting up a new alias is quite easy, the syntax for <strong>alias command</strong> is very straightforward. Let's say I want to automate the confirmation of swap usage based on a <strong>free command</strong> in Linux:</p>
<pre>redhat$ <strong>free</strong>
total       used       free     shared    buffers     cached
Mem:       2075156     945712    1129444          0     177292     503416
-/+ buffers/cache:     265004    1810152
Swap:      2040244          0    2040244</pre>
<p>The result I'm after is this command:</p>
<pre>redhat$ <strong>free | grep Swap</strong>
Swap:      2040244          0    2040244</pre>
<p>And here's how I can create an alias called "swp" which refers to this series of commands:</p>
<pre>redhat$ <strong>alias swp='free | grep Swap'</strong></pre>
<p>Once you execute this command, you can start using swp as a Unix command:</p>
<pre>redhat$ <strong>swp</strong>
Swap:      2040244          0    2040244</pre>
<p><strong>Important:</strong> such a creation of new aliases is going to be only active for your current Unix shell and sub-shells you may spawn. To make your alias permanent, you'll have to update one of your initialization scripts like. For Linux and bash, you should add the same alias command to your <strong>.bashrc</strong> file.</p>
<h3>Removing aliases in Unix</h3>
<p>In very much the same way, you can use the unalias command to get rid of a certain alias. The nature of this command is such that you'll most likely use it when creating and debugging new aliases. It's unlikely that you'll need to use it in your initialization scripts.</p>
<p>Following the example above, here's how to get rid of the swp alias and verify that it's gone:</p>
<pre>redhat$ <strong>unalias swp</strong>
redhat$ <strong>swp</strong>
bash: swp: command not found</pre>
<h3>How to list your current aliases</h3>
<p>If you run the alias command without any parameters, you'll be shown a full list of aliases currently configured for your user account, here's an example from one of my systems:</p>
<pre>l.      ls -d .* --color=tty
ll      ls -l --color=tty
ls      ls --color=tty
vi      vim</pre>
<p>That's it for today! Stay tuned for a follow-up post which will share some of the examples for command aliases in Unix. If you have some &#8211; please leave a comment so that I can share it with others!</p>
<h3>See also:</h3>
<ul>
<li><strong><a title="ls unix command" href="http://www.unixtutorial.org/commands/ls">Unix commands: ls</a></strong></li>
<li><strong><a title="Listing directories" href="http://www.unixtutorial.org/2008/04/how-to-list-directories-in-a-directory-in-unix/">List directories in a given directory</a></strong></li>
<li><strong><a title="what symlink points to" href="http://www.unixtutorial.org/2008/03/how-to-find-what-symlink-points-to/">How to find what symlink points to</a><br />
</strong></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=tFkxOiIvmnQ:wnFeXHEKB8U:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=tFkxOiIvmnQ:wnFeXHEKB8U:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=tFkxOiIvmnQ:wnFeXHEKB8U:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=tFkxOiIvmnQ:wnFeXHEKB8U:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/tFkxOiIvmnQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/06/command-aliases-in-unix-shells/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/06/command-aliases-in-unix-shells/</feedburner:origLink></item>
		<item>
		<title>Ubuntu SSH: How To Enable Secure Shell in Ubuntu</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/7PE3GNuOGyE/</link>
		<comments>http://www.unixtutorial.org/2009/05/ubuntu-ssh-how-to-enable-secure-shell-in-ubuntu/#comments</comments>
		<pubDate>Fri, 15 May 2009 15:38:54 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Basic stuff]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh server]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=566</guid>
		<description><![CDATA[SSH (Secure SHell) is possibly the best way to remotely access a Unix system &#8211; it's very secure thanks to automatic encryption of all the traffic, and it's also quite universal because you can do all sorts of things: access remote command line shell, forward graphics session output, establish network tunnels and set up port [...]]]></description>
			<content:encoded><![CDATA[<p><strong>SSH </strong>(<strong>Secure SHell</strong>) is possibly the best way to remotely access a Unix system &#8211; it's very secure thanks to automatic encryption of all the traffic, and it's also quite universal because you can do all sorts of things: access remote command line shell, forward graphics session output, establish network tunnels and set up port redirections. Today I'm going to show you how to get started with SSH in <strong>Ubuntu</strong>.</p>
<h3>Installing SSH server in Ubuntu</h3>
<p>By default, your system will have no SSH service enabled, which means you won't be able to connect to it remotely using SSH protocol (TCP port 22). This means that installing SSH server will be one of the first post-install steps on your system.</p>
<p>The most common SSH implementation is <a href="http://www.openssh.org"><strong>OpenSSH</strong></a> server, and that's exactly what you want to install.</p>
<p>Log in with your standard username and password, and run the following command to install openssh-server. You should be using the same username that you specified when installing Ubuntu, as it will be the only account with sudo privileges to run commands as root:</p>
<pre>ubuntu$ <strong>sudo apt-get install openssh-server
</strong>[sudo] password for greys:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  rssh molly-guard openssh-blacklist openssh-blacklist-extra
The following NEW packages will be installed:
  openssh-server
0 upgraded, 1 newly installed, 0 to remove and 75 not upgraded.
Need to get 285kB of archives.
After this operation, 782kB of additional disk space will be used.
Get:1 http://ie.archive.ubuntu.com jaunty/main openssh-server 1:5.1p1-5ubuntu1 [
285kB]
Fetched 285kB in 0s (345kB/s)
Preconfiguring packages ...
Selecting previously deselected package openssh-server.
(Reading database ... 101998 files and directories currently installed.)
Unpacking openssh-server (from .../openssh-server_1%3a5.1p1-5ubuntu1_i386.deb) .
..
Processing triggers for ufw ...
Processing triggers for man-db ...
Setting up openssh-server (1:5.1p1-5ubuntu1) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
 * Restarting OpenBSD Secure Shell server sshd                           [ OK ]</pre>
<h3>Verifying your SSH server works</h3>
<p>While you're still on your local desktop session, you can use the ps command to confirm that SSH daemon (<strong>sshd</strong>) is running:</p>
<pre>ubuntu$ <strong>ps -aef | grep sshd
</strong>root     24114     1  0 15:18 ?        00:00:00 /usr/sbin/sshd</pre>
<p>Now that you see it's there, it's time to try connecting:</p>
<pre>ubuntu$ <strong>ssh localhost</strong></pre>
<p>Since this is the first time you're trying to connect using SSH, you'll have to answer yes to the following question:</p>
<pre>The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 18:4d:96:b3:0d:25:00:c8:a1:a3:84:5c:9f:1c:0d:a5.
Are you sure you want to continue connecting (yes/no)? yes</pre>
<p>&#8230; you'll then be prompted for your own password (remember, the system treats such connection request as if you were connecting remotely, so it can't trust you without confirming your password):</p>
<pre>Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
greys@localhost's password:</pre>
<p>.. and finally you'll see the usual Ubuntu (Jaunty in this example) banner and prompt:</p>
<pre>Linux ubuntu 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/

Last login: Fri May 15 15:18:34 2009 from ubuntu
ubuntu$</pre>
<p>That's it, providing you have your networking configured and you know your IP address or hostname, you can start connecting to your Ubuntu box from remote systems, using the same command.  Enjoy!</p>
<h3>See also:</h3>
<ul>
<li><strong><a href="http://www.unixtutorial.org/commands">Unix commands</a></strong></li>
<li><strong><a title="apt-get behind proxy" href="http://www.unixtutorial.org/2007/09/how-to-use-apt-get-behind-proxy/">Using apt-get behind proxy</a></strong></li>
<li><strong><a title="list packages in Ubuntu" href="http://www.unixtutorial.org/2008/09/list-installed-packages-on-your-ubuntu-linux/">List installed packages in Ubuntu</a><br />
</strong></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=7PE3GNuOGyE:mXZFYqV3XZw:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=7PE3GNuOGyE:mXZFYqV3XZw:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=7PE3GNuOGyE:mXZFYqV3XZw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=7PE3GNuOGyE:mXZFYqV3XZw:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/7PE3GNuOGyE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/05/ubuntu-ssh-how-to-enable-secure-shell-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/05/ubuntu-ssh-how-to-enable-secure-shell-in-ubuntu/</feedburner:origLink></item>
		<item>
		<title>Useful Solaris OS tips from my Solaris Blog</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/lDthx5eu2z8/</link>
		<comments>http://www.unixtutorial.org/2009/05/useful-solaris-tips-from-solaris-blog/#comments</comments>
		<pubDate>Thu, 14 May 2009 10:37:58 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Advanced topics]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=562</guid>
		<description><![CDATA[As some of you may know already, I've recently restarted my activity on another technical blog of mine: Solaris blog.
Solaris blog: http://solaris.reys.net
Solaris blog is the very first blog I started, I was actively posting new material in 2006-2007.  Since then my primary focus had shifted to Linux systems, but I realized that I miss Solaris [...]]]></description>
			<content:encoded><![CDATA[<p>As some of you may know already, I've recently restarted my activity on another technical blog of mine: <a title="Solaris 10 blog" href="http://solaris.reys.net">Solaris blog</a>.</p>
<h3>Solaris blog: http://solaris.reys.net</h3>
<p><strong>Solaris </strong>blog is the very first blog I started, I was actively posting new material in 2006-2007.  Since then my primary focus had shifted to Linux systems, but I realized that I miss <strong>Solaris </strong>so much that I still need to play with latest versions and features in <strong>Solaris 10</strong> and <strong>OpenSolaris</strong>.</p>
<p>Today I'd like to offer you a few articles from <a title="solaris blog" href="http://solaris.reys.net"><strong>Solaris blog</strong></a>, let me know if you find them useful:</p>
<ul>
<li><strong><a title="solaris 10 zone example" href="http://solaris.reys.net/solaris-10-zones-part-one-a-working-example/">A working example of Solaris 10 zone setup and configuration</a></strong></li>
<li><strong><a title="solaris 8 migration assistant" href="http://solaris.reys.net/solaris-8-migration-assistant-project-etude/">Solaris 8 Migration Assistant</a> </strong>(allows you to run Solaris 8 zones on Solaris 10 systems)</li>
<li><strong><a title="pkg-get howto" href="http://solaris.reys.net/how-to-using-pkg-get-to-install-csw-packages-in-solaris/">pkg-get how-to</a> </strong>- a great way to install free software any Solaris version</li>
<li><strong><a title="x11 ssh forwarding with putty and xming" href="http://solaris.reys.net/how-to-x11-forwarding-using-ssh-putty-and-xming/">X11 SSH forwarding with Putty</a> </strong>- helps you access remote graphics session using SSH and <strong>Putty </strong>software and Xming server for Windows</li>
<li><strong><a title="dtrace aggregations" href="http://solaris.reys.net/dtrace-aggregations/">DTrace aggregations</a> &#8211; </strong>an introduction to one of the features of DTrace, a great performance observability introduced in Solaris 10</li>
</ul>
<p>Most of these topics are fairly technical and expect you to have previous knowledge of <strong>Solaris OS</strong>, but <strong><a title="Unix Tutorial" href="http://www.unixtutorial.org">Unix Tutorial</a></strong> is here to take care of the basics &#8211; so ask away and I'll be glad to help you discover <strong>Solaris </strong>in my future posts.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=lDthx5eu2z8:mSQ1EmI6jls:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=lDthx5eu2z8:mSQ1EmI6jls:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=lDthx5eu2z8:mSQ1EmI6jls:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=lDthx5eu2z8:mSQ1EmI6jls:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/lDthx5eu2z8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/05/useful-solaris-tips-from-solaris-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/05/useful-solaris-tips-from-solaris-blog/</feedburner:origLink></item>
		<item>
		<title>How to Confirm Disks Capacity in Linux</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/AFMdGhum-lU/</link>
		<comments>http://www.unixtutorial.org/2009/05/how-to-confirm-disk-capacity-in-linux/#comments</comments>
		<pubDate>Mon, 11 May 2009 09:05:24 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Basic stuff]]></category>
		<category><![CDATA[fdisk]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=555</guid>
		<description><![CDATA[show disk size in Unix is a very popular request visitors use to arrive at my Unix Tutorial pages. Since I never addressed the question of confirming the number of hard drivers available on your system or the task of finding out a disk's capacity, I'd like to document a quick and easy way of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>show disk size in Unix </strong>is a very popular request visitors use to arrive at my <strong><a title="Unix Tutorial" href="http://www.unixtutorial.org">Unix Tutorial</a></strong> pages. Since I never addressed the question of confirming the number of hard drivers available on your system or the task of finding out a disk's capacity, I'd like to document a quick and easy way of doing just that.<strong><br />
</strong></p>
<p>I hope that when someone looks for a way to show disk size, what's really expected is a command to help you confirm the capacity of a disk in gigabytes.</p>
<h3>Using fdisk command in Linux</h3>
<p>One of the easiest ways to learn a lot about hard drives installed on your Linux system is to use the <strong>fdisk command</strong>:suse# <strong>fdisk -l</strong></p>
<pre>
Disk /dev/sda: 145.4 GB, 145492017152 bytes
255 heads, 63 sectors/track, 17688 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         262     2104483+  82  Linux swap / Solaris
/dev/sda2   *         263       17688   139974345   83  Linux</pre>
<p>As you can see, there are two sections in the output provided: disk information (capacity and geometry) and disk layout (partitions). The same pattern is repeated if you have more than one disk installed.</p>
<p>What you should look for is the lines starting with "Disk" word: they usually specify the device names for each drive and also provide the capacity in gigabytes. Thus, a time saver would be to grep the necessary information from the command above, this way:</p>
<pre>suse# <strong>fdisk -l | grep Disk</strong>
Disk /dev/sda: 145.4 GB, 145492017152 bytes</pre>
<p>On a system with multiple disks, the output will look more useful:</p>
<pre>redhat# <strong>fdisk -l | grep Disk</strong>
Disk /dev/sda: 21.4 GB, 21474836480 bytes
Disk /dev/sdb: 4294 MB, 4294967296 bytes</pre>
<p>That's it &#8211; a very simple way for you to determine the number of disks in your system while also confirming the capacity available for your needs.<strong> fdisk command</strong> is actually a very powerful disks management tool which allows you to manage partitions &#8211; create and delete them or modify the type of each partition. I will be sure to revisit this command some other time cause usage above doen't do this wonderful Unix command any justice.</p>
<h3>See also:</h3>
<ul>
<li><strong><a title="delete files with special characters" href="http://www.unixtutorial.org/2008/09/remove-files-and-directories-with-special-characters/">Deleting files and directories with special characters in their names</a></strong></li>
<li><strong><a title="find files which belong to a unix user" href="http://www.unixtutorial.org/2008/06/find-files-which-belong-to-a-user-or-unix-group/">Finding files which belong to a certain user</a></strong></li>
<li><strong><a title="file timestamps in Unix" href="http://www.unixtutorial.org/2008/04/atime-ctime-mtime-in-unix-filesystems/">File timestamps in Unix: atime, ctime, mtime</a><br />
</strong></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=AFMdGhum-lU:kixy5zJqgXY:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=AFMdGhum-lU:kixy5zJqgXY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=AFMdGhum-lU:kixy5zJqgXY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=AFMdGhum-lU:kixy5zJqgXY:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/AFMdGhum-lU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/05/how-to-confirm-disk-capacity-in-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/05/how-to-confirm-disk-capacity-in-linux/</feedburner:origLink></item>
		<item>
		<title>How To Confirm if Your CPU is 32bit or 64bit</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/kFitR4g9KvE/</link>
		<comments>http://www.unixtutorial.org/2009/05/how-to-confirm-if-your-cpu-is-32bit-or-64bit/#comments</comments>
		<pubDate>Fri, 08 May 2009 08:03:49 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[cpuinfo]]></category>
		<category><![CDATA[uname]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=549</guid>
		<description><![CDATA[I had to download a piece of software today for one of the servers which I haven't used in a while. A question of confirming the 64bit CPU capability came up, and I realized that I never mentioned it here on Unix Tutorial.
Some of you probably remember the uname command which also shows you similar [...]]]></description>
			<content:encoded><![CDATA[<p>I had to download a piece of software today for one of the servers which I haven't used in a while. A question of confirming the 64bit CPU capability came up, and I realized that I never mentioned it here on <a title="Unix Tutorials" href="http://www.unixtutorial.org"><strong>Unix Tutorial</strong></a>.</p>
<p>Some of you probably remember the <a title="uname command" href="http://www.unixtutorial.org/uname"><strong>uname command</strong></a> which also shows you similar information, but <strong>uname </strong>confirms the running kernel of your OS and not the CPU capability: if you're booted into 32bit mode, it will not help you to recognize the 64bit potential of your system.</p>
<h3>Obtaining CPU information from /proc/cpuinfo</h3>
<p>Most Linux distros will have the special <strong>/proc/cpuinfo</strong> file which contains a textual description of all the features your processors have. This is a very useful file &#8211; depending on your task it may help you identify any features of your processors, as well as confirm the overall number of CPUs your system has installed.</p>
<p>Most commonly, the following information is obtained from <strong>/proc/cpuinfo</strong>:</p>
<ul>
<li>processor model name and type</li>
<li>processor speed in Mhz</li>
<li>processor cache size</li>
<li>instruction flags supported by CPU</li>
</ul>
<p>Here's how the typical output will look:</p>
<pre>processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      :                   Intel(R) Xeon(TM) CPU 3.20GHz
stepping        : 3
cpu MHz         : 3192.320
cache size      : 2048 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts
acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl cid cx16 xtpr
bogomips        : 6388.78
clflush size    : 64
cache_alignment : 128
address sizes   : 36 bits physical, 48 bits virtual
power management:</pre>
<p>The same block of information will be shown for each CPU visible to your system. There will be 2 processor instances for each physical CPU if hyper-treading is enabled, and there will be 2 or 4 processor entries for each physical CPU on dual- and quad-core systems configurations.</p>
<h3>How to confirm the 64bit capability of your CPU in Linux</h3>
<p>Based on<strong> /proc/cpuinfo</strong> file, it is quite easy to confirm whether your CPU is capable of 64bit or not. All you have to do is look at the flags which tell you what instruction sets your CPU is capable of.</p>
<p>All  the CPUs on your system will have the same type and therefore support the same instruction sets, that's why in this example the grep command returns 4 similar lines &#8211; for the 4 CPU instances found on my system:</p>
<pre>newserver# <strong>grep flags /proc/cpuinfo</strong>
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl cid cx16 xtpr
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl cid cx16 xtpr
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl cid cx16 xtpr
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl cid cx16 xtpr</pre>
<p>What you're looking for is the following flag: <strong>lm</strong>. It stands for <strong>X86_FEATURE_LM</strong>, the Long Mode (64bit) support. If you can find the "<strong>lm</strong>" flag among your CPU flags, this means you're looking at a 64bit capable processor.</p>
<p>As you can see from the example about, the processors in question are 64bit capable.</p>
<p>And this is how <strong>/proc/cpuinfo</strong> will look on an older system with only 32bit capable CPUs, there's no lm flag as you can see:</p>
<pre>oldserver# <strong>grep flags /proc/cpuinfo</strong>
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm</pre>
<p>That's it, hope this little tip helps you next time you're puzzled about your CPU capabilities!</p>
<h3>See also:</h3>
<ul>
<li><strong><a title="32bit deb on 64bit system" href="http://www.unixtutorial.org/2008/03/install-32-bit-deb-packages-on-64-bit/">How to install and run 32bit packages on 64bit Debian system</a></strong></li>
<li><strong><a title="uname - useful information about your Unix system" href="http://www.unixtutorial.org/commands/uname/">Confirming whether you're using a 64bit OS</a></strong></li>
<li><strong><a title="Unix Glossary" href="http://www.unixtutorial.org/glossary">Unix Glossary</a><br />
</strong></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=kFitR4g9KvE:_l4obKQBMtY:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=kFitR4g9KvE:_l4obKQBMtY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=kFitR4g9KvE:_l4obKQBMtY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=kFitR4g9KvE:_l4obKQBMtY:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/kFitR4g9KvE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/05/how-to-confirm-if-your-cpu-is-32bit-or-64bit/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/05/how-to-confirm-if-your-cpu-is-32bit-or-64bit/</feedburner:origLink></item>
		<item>
		<title>Ubuntu 9.04 Jaunty Jackalope screenshots</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/vDbv4JpzmwE/</link>
		<comments>http://www.unixtutorial.org/2009/05/ubuntu-904-jaunty-jackalope-screenshots/#comments</comments>
		<pubDate>Wed, 06 May 2009 20:25:14 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[screenshots]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=545</guid>
		<description><![CDATA[I'm finally getting ready to start publishing some tips with screenshots, so today it's just a humble screenshot tour of my fresh Ubuntu 9.04 install.
Let me know if you struggle with any graphics desktop functionality, and I'll try my best to help and show it with screenshots.
By the way: I really like one of the [...]]]></description>
			<content:encoded><![CDATA[<p>I'm finally getting ready to start publishing some tips with screenshots, so today it's just a humble screenshot tour of my fresh <strong>Ubuntu 9.04</strong> install.</p>
<p>Let me know if you struggle with any graphics desktop functionality, and I'll try my best to help and show it with screenshots.</p>
<p>By the way: I really like one of the new community themes which come with <strong>Ubuntu 9.04</strong>, it's called the Dust theme.</p>

<div class="ngg-galleryoverview" id="ngg-gallery-1-545">


	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://www.unixtutorial.org/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=1&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	
	<!-- Thumbnails -->
		
	<div id="ngg-image-2" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/ubuntu-904-jaunty-jackalope-dust-theme.png" title=" " class="shutterset_ubuntu-9-04-screenshots" >
				<img title="ubuntu-904-jaunty-jackalope-dust-theme.png" alt="ubuntu-904-jaunty-jackalope-dust-theme.png" src="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/thumbs/thumbs_ubuntu-904-jaunty-jackalope-dust-theme.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-3" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/ubuntu-904-jaunty-jackalope-firefox.png" title=" " class="shutterset_ubuntu-9-04-screenshots" >
				<img title="ubuntu-904-jaunty-jackalope-firefox.png" alt="ubuntu-904-jaunty-jackalope-firefox.png" src="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/thumbs/thumbs_ubuntu-904-jaunty-jackalope-firefox.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-4" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/ubuntu-904-jaunty-jackalope-main-menu.png" title=" " class="shutterset_ubuntu-9-04-screenshots" >
				<img title="ubuntu-904-jaunty-jackalope-main-menu.png" alt="ubuntu-904-jaunty-jackalope-main-menu.png" src="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/thumbs/thumbs_ubuntu-904-jaunty-jackalope-main-menu.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-5" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/ubuntu-904-jaunty-jackalope-new-wave-theme.png" title=" " class="shutterset_ubuntu-9-04-screenshots" >
				<img title="ubuntu-904-jaunty-jackalope-new-wave-theme.png" alt="ubuntu-904-jaunty-jackalope-new-wave-theme.png" src="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/thumbs/thumbs_ubuntu-904-jaunty-jackalope-new-wave-theme.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-6" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/ubuntu-904-jaunty-jackalope-openoffice.png" title=" " class="shutterset_ubuntu-9-04-screenshots" >
				<img title="ubuntu-904-jaunty-jackalope-openoffice.png" alt="ubuntu-904-jaunty-jackalope-openoffice.png" src="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/thumbs/thumbs_ubuntu-904-jaunty-jackalope-openoffice.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-7" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/ubuntu-904-jaunty-jackalope-terminal.png" title=" " class="shutterset_ubuntu-9-04-screenshots" >
				<img title="ubuntu-904-jaunty-jackalope-terminal.png" alt="ubuntu-904-jaunty-jackalope-terminal.png" src="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/thumbs/thumbs_ubuntu-904-jaunty-jackalope-terminal.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-8" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/ubuntu-904-jaunty-jackalope-update-manager-downloads.png" title=" " class="shutterset_ubuntu-9-04-screenshots" >
				<img title="ubuntu-904-jaunty-jackalope-update-manager-downloads.png" alt="ubuntu-904-jaunty-jackalope-update-manager-downloads.png" src="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/thumbs/thumbs_ubuntu-904-jaunty-jackalope-update-manager-downloads.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-9" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/ubuntu-904-jaunty-jackalope-update-manager-installing.png" title=" " class="shutterset_ubuntu-9-04-screenshots" >
				<img title="ubuntu-904-jaunty-jackalope-update-manager-installing.png" alt="ubuntu-904-jaunty-jackalope-update-manager-installing.png" src="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/thumbs/thumbs_ubuntu-904-jaunty-jackalope-update-manager-installing.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 		
	<div id="ngg-image-10" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/ubuntu-904-jaunty-jackalope-update-manager-updates.png" title=" " class="shutterset_ubuntu-9-04-screenshots" >
				<img title="ubuntu-904-jaunty-jackalope-update-manager-updates.png" alt="ubuntu-904-jaunty-jackalope-update-manager-updates.png" src="http://www.unixtutorial.org/wp-content/gallery/ubuntu-9-04-screenshots/thumbs/thumbs_ubuntu-904-jaunty-jackalope-update-manager-updates.png" width="100" height="75" />
			</a>
		</div>
	</div>
	 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=vDbv4JpzmwE:YbB2dJNZB6s:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=vDbv4JpzmwE:YbB2dJNZB6s:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=vDbv4JpzmwE:YbB2dJNZB6s:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=vDbv4JpzmwE:YbB2dJNZB6s:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/vDbv4JpzmwE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/05/ubuntu-904-jaunty-jackalope-screenshots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/05/ubuntu-904-jaunty-jackalope-screenshots/</feedburner:origLink></item>
	</channel>
</rss>
