<?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: Learn UNIX</title>
	
	<link>http://www.unixtutorial.org</link>
	<description>Learn UNIX</description>
	<lastBuildDate>Thu, 18 Jun 2009 15:46:58 +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" /><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>2</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>0</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>0</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>2</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>5</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>
		<item>
		<title>Interesting Unix reads – May 5th, 2009</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/olhBCHrBHC8/</link>
		<comments>http://www.unixtutorial.org/2009/05/interesting-unix-reads-may-5th-2009/#comments</comments>
		<pubDate>Tue, 05 May 2009 14:19:18 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=542</guid>
		<description><![CDATA[Next batch of Unix-related news, this week it's just about announcing all the new releases of various distros.
Unix news

OpenBSD 4.5 released
FreeBSD 7.2 released
NetBSD 5.0 released
Solaris 10 update 7 (5/09) released

Unix-related releases

Wine 1.1.20 released &#8211; OLE copy/paste improvements, Direct3D code cleanup and traditional bug fixes

See also:

Interesting Unix reads &#8211; Apr 21st, 2009

Interesting Unix reads &#8211; Feb [...]]]></description>
			<content:encoded><![CDATA[<p>Next batch of Unix-related news, this week it's just about announcing all the new releases of various distros.</p>
<h3>Unix news</h3>
<ul>
<li><a href="http://www.openbsd.org/45.html">OpenBSD 4.5 released</a></li>
<li><a href="http://www.freebsd.org/releases/7.2R/announce.html">FreeBSD 7.2 released</a></li>
<li><a href="http://www.netbsd.org/changes/#netbsd-5">NetBSD 5.0 released</a></li>
<li><a href="http://docs.sun.com/app/docs/doc/820-7758/gijtg?a=view">Solaris 10 update 7 (5/09) released</a></li>
</ul>
<h3>Unix-related releases</h3>
<ul>
<li><a href="http://www.winehq.org/announce/1.1.20">Wine 1.1.20 released</a> &#8211; OLE copy/paste improvements, Direct3D code cleanup and traditional bug fixes</li>
</ul>
<h3>See also:</h3>
<ul>
<li><strong><a href="http://www.unixtutorial.org/2009/04/interesting-unix-reads-apr-21s-2009/">Interesting Unix reads &#8211; Apr 21st, 2009</a></strong><br />
<strong></strong></li>
<li><strong><a title="interesting unix" href="../2009/02/interesting-unix-reads-feb-3rd-2009/">Interesting Unix reads &#8211; Feb 3rd, 2009</a></strong></li>
<li><a title="Glossary of Unix terms" href="../glossary"><strong>Unix Glossary</strong></a></li>
<li><strong><a title="unix commands reference" href="../commands">Unix commands reference</a></strong></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=olhBCHrBHC8:WGceQjwNNi8:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=olhBCHrBHC8:WGceQjwNNi8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=olhBCHrBHC8:WGceQjwNNi8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=olhBCHrBHC8:WGceQjwNNi8:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/olhBCHrBHC8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/05/interesting-unix-reads-may-5th-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/05/interesting-unix-reads-may-5th-2009/</feedburner:origLink></item>
		<item>
		<title>Interesting Unix reads – Apr 21st, 2009</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/csOKQevDF-c/</link>
		<comments>http://www.unixtutorial.org/2009/04/interesting-unix-reads-apr-21s-2009/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 21:18:38 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=538</guid>
		<description><![CDATA[Hi all! New posts are coming, but you'll have to wait a bit longer. Here's a few interesting reads you might explore in the meantime:
Unix news

Oracle buys Sun Microsystems

Unix-related releases

GCC 4.4.0 released
HP-UX 11i v3 update 4
Gnome 2.26.1 released

Useful Unix tips

Ubuntu package management with dpkg (UbuntuGeek)
Ubuntu package management with apt (UbuntuGeek)
Unix aphorisms (via Standalone Sysadmin)

See also:

Interesting [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all! New posts are coming, but you'll have to wait a bit longer. Here's a few interesting reads you might explore in the meantime:</p>
<h3>Unix news</h3>
<ul>
<li><a href="http://www.sun.com/aboutsun/media/presskits/2009-0420/index.jsp">Oracle buys Sun Microsystems</a></li>
</ul>
<h3>Unix-related releases</h3>
<ul>
<li><a href="http://gcc.gnu.org/gcc-4.4/">GCC 4.4.0 released</a></li>
<li><a title="HP-UX 11i v3 u4" href="http://www.hp.com/hpinfo/newsroom/press/2009/090417a.html">HP-UX 11i v3 update 4</a></li>
<li><a href="http://mail.gnome.org/archives/gnome-announce-list/2009-April/msg00027.html">Gnome 2.26.1 released</a></li>
</ul>
<h3>Useful Unix tips</h3>
<ul>
<li><a href="http://www.ubuntugeek.com/reference-guideubuntu-package-management-using-dpkg.html">Ubuntu package management with dpkg</a> (UbuntuGeek)</li>
<li><a href="http://www.ubuntugeek.com/ubuntu-package-management-from-command-line-using-apt-advanced-packaging-tool.html">Ubuntu package management with apt</a> (UbuntuGeek)</li>
<li><a href="http://sethdot.org/~skvidal/misc/sysadmin-aphorisms.txt">Unix aphorisms</a> (via <a href="http://standalone-sysadmin.blogspot.com/">Standalone Sysadmin</a>)</li>
</ul>
<h3>See also:</h3>
<ul>
<li><strong><a title="interesting unix" href="http://www.unixtutorial.org/2009/02/interesting-unix-reads-feb-3rd-2009/">Interesting Unix reads &#8211; Feb 3rd, 2009</a></strong></li>
<li><a title="Glossary of Unix terms" href="http://www.unixtutorial.org/glossary"><strong>Unix Glossary</strong></a></li>
<li><strong><a title="unix commands reference" href="http://www.unixtutorial.org/commands">Unix commands reference</a><br />
</strong></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=csOKQevDF-c:dSdFjWB7Qms:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=csOKQevDF-c:dSdFjWB7Qms:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=csOKQevDF-c:dSdFjWB7Qms:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=csOKQevDF-c:dSdFjWB7Qms:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/csOKQevDF-c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/04/interesting-unix-reads-apr-21s-2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/04/interesting-unix-reads-apr-21s-2009/</feedburner:origLink></item>
		<item>
		<title>Use /proc/version to identify your Linux release</title>
		<link>http://feedproxy.google.com/~r/UnixTutorial/~3/goRoqYg2JNI/</link>
		<comments>http://www.unixtutorial.org/2009/04/use-proc-version-to-identify-your-linux-release/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 09:30:58 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=531</guid>
		<description><![CDATA[Hi everyone, I'm finally back from my holidays, and simply cannot wait to share some more Unix tips with all of you!
Today I'll talk a bit more about yet another way of learning version information about your Linux OS: the /proc/version file. I mentioned it briefly in one of the previous posts, but would like [...]]]></description>
			<content:encoded><![CDATA[<p>Hi everyone, I'm finally back from my holidays, and simply cannot wait to share some more Unix tips with all of you!</p>
<p>Today I'll talk a bit more about yet another way of learning version information about your Linux OS: the <strong>/proc/version</strong> file. I mentioned it briefly in one of the previous posts, but would like to finish the explanations.</p>
<h3>What you can learn from /proc/version</h3>
<p>This file will not show you the name of the actual OS release, but will instead give you specifics about the version of Linux kernel used in your distribution, and confirm the version of a GCC compiler used to build it.</p>
<p>If you cat the <strong>/proc/version</strong> file, this is what you're going to see (I'm using a RedHat 5.2 system for this):</p>
<pre>rhel52# <strong>cat /proc/version</strong>
Linux version 2.6.18-92.el5 (brewbuilder@ls20-bc2-13.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-41)) #1 SMP Tue Apr 29 13:16:15 EDT 2008</pre>
<p>In this output, you get to see the following information:</p>
<ol>
<li>Exact version of the Linux kernel used in your OS: <strong>Linux version 2.6.18-92.el5</strong></li>
<li>Name of the user who compiled your kernel, and also a host name where it happened: <strong>brewbuilder@ls20-bc2-13.build.redhat.com</strong></li>
<li>Version of the GCC compiler used for building the kernel: <strong>gcc version 4.1.2 20071124</strong></li>
<li>Type of the kernel &#8211; <a title="SMP" href="http://www.unixtutorial.org/glossary/#smp"><strong>SMP</strong></a> here means Symmetric MultiProcessing kernel, the one that supports systems with multiple CPUs or multiple cpu cores</li>
<li>Date and time when the kernel was built: <strong>Tue Apr 29 13:16:15 EDT 2008</strong></li>
</ol>
<p>It's absolutely normal that the kernel is older than the overall release of yours. My example above, generated on the RedHat Enterprise Linux 5.2 system (RHEL5.2), shows the kernel birthday to be <em><strong>Apr 29, 2008</strong></em>. But the actual RHEL5.2 release became available to all the customers only a month later, on <em><strong>May 21st 2008</strong></em> (here's the original <a href="http://press.redhat.com/2008/05/21/red-hat-enterprise-linux-52/">RedHat 5.2 announcement</a>).</p>
<p>The reason your kernel is a bit older than the rest of the distribution is because kernel is only one part of the final product you're getting &#8211; it may take a while to compile and integrate the rest of the OS before it can be used.</p>
<h3>Different ways to find out Linux release information</h3>
<p>By now, you should know quite a few ways of confirming release information about your Linux distro. Just to remind you, here they are:</p>
<ul>
<li><strong><a title="release of linux" href="http://www.unixtutorial.org/2007/08/how-to-find-out-the-release-version-of-your-unix/">use /etc/redhat-release or /etc/SuSE-release (/etc/issue for Ubuntu)</a></strong></li>
<li><strong><a title="uname kernel" href="http://www.unixtutorial.org/2007/12/find-redhat-version/">uname helps you identify if you're using a 32bit or 64bit kernel</a></strong></li>
<li><strong><a title="lsb release linux" href="http://www.unixtutorial.org/2008/03/find-out-linux-version-using-lsb/">lsb_release command shows you release information as per LSB specification</a></strong></li>
</ul>
<p>This should be more than enough even for the most curious Linux users. Enjoy!</p>
<h3>See also:</h3>
<ul>
<li><strong><a href="http://www.unixtutorial.org/glossary">Unix glossary</a></strong></li>
<li><strong><a title="gcc compiler version" href="http://www.unixtutorial.org/2008/01/find-compiler-version/">Finding out your GCC compiler version</a></strong></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=goRoqYg2JNI:mJqRLwkqrpY:kdmuIyMabB4"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=kdmuIyMabB4" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=goRoqYg2JNI:mJqRLwkqrpY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/UnixTutorial?a=goRoqYg2JNI:mJqRLwkqrpY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/UnixTutorial?i=goRoqYg2JNI:mJqRLwkqrpY:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/UnixTutorial/~4/goRoqYg2JNI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/04/use-proc-version-to-identify-your-linux-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.unixtutorial.org/2009/04/use-proc-version-to-identify-your-linux-release/</feedburner:origLink></item>
	</channel>
</rss>
