<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tech Kaki &#187; Ubuntu</title>
	<atom:link href="http://www.techkaki.com/category/linux/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techkaki.com</link>
	<description>Tips and Tricks for Mac OS X, Windows, Linux and office suite software.</description>
	<lastBuildDate>Tue, 13 Jul 2010 15:44:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Linux &#8211; Use the Terminal to Display a Calendar</title>
		<link>http://www.techkaki.com/2010/07/linux-use-the-terminal-to-display-a-calendar/</link>
		<comments>http://www.techkaki.com/2010/07/linux-use-the-terminal-to-display-a-calendar/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 15:44:25 +0000</pubDate>
		<dc:creator>@HKw@!</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://www.techkaki.com/?p=1783</guid>
		<description><![CDATA[In Linux environment, we can view the calendar directly in the terminal. To do this, just simply use the &#8220;cal&#8221; command cal command is used to display the calendar. Below are the syntax:- cal [options] [month{1-12}] [year{1-9999}]  OPTIONS: -1 Displays single month as output. -3 Displays prev/current/next month output. -s Displays sunday as the first [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>In Linux environment, we can view the calendar directly in the terminal. To do this, just simply use the &#8220;<strong>cal</strong>&#8221; command</p>
<p><strong>cal</strong> command is used to display the calendar. Below are the syntax:-</p>
<p><strong><span style="color: #000000;">cal [options] [month{1-12}] [year{1-9999}] <span id="more-1783"></span></span></strong></p>
<p><strong id="y">OPTIONS:</strong></p>
<table style="margin-left: 15px; border-collapse: collapse;" width="90%">
<tbody>
<tr>
<td class="new" width="10%" align="center" valign="center">-1</td>
<td class="new">Displays single month as output.</td>
</tr>
<tr>
<td class="new" width="10%" align="center" valign="center">-3</td>
<td class="new">Displays prev/current/next month output.</td>
</tr>
<tr>
<td class="new" width="10%" align="center" valign="center">-s</td>
<td class="new">Displays sunday as the first day of the week.</td>
</tr>
<tr>
<td class="new" width="10%" align="center" valign="center">-m</td>
<td class="new">Displays Monday as the first day of the week.</td>
</tr>
<tr>
<td class="new" width="10%" align="center" valign="center">-j</td>
<td class="new">Displays Julian dates (days one-based, numbered  from January 1).</td>
</tr>
<tr>
<td class="new" width="10%" align="center" valign="center">-y</td>
<td class="new">Displays a calendar for the current year.</td>
</tr>
</tbody>
</table>
<p><span style="text-decoration: underline;"><strong>Example:</strong></span></p>
<p>To use this command, open a Terminal window and type the <strong>cal</strong> command:</p>
<p><a href="http://www.techkaki.com/wp-content/uploads/2010/07/Linux-cal-command-2.png"><img class="alignnone size-full wp-image-1787" title="Linux cal command 2" src="http://www.techkaki.com/wp-content/uploads/2010/07/Linux-cal-command-2.png" alt="" width="500" height="389" /></a></p>
<p>By default, the command displays a calendar for the current month.</p>
<p><strong>To display calendar for year 2010</strong></p>
<p><a href="http://www.techkaki.com/wp-content/uploads/2010/07/Linux-cal-command-1.png"></a><a href="http://www.techkaki.com/wp-content/uploads/2010/07/Linux-cal-command-1.png"><img class="alignnone size-full wp-image-1786" title="Linux cal command 1" src="http://www.techkaki.com/wp-content/uploads/2010/07/Linux-cal-command-1.png" alt="" width="500" height="513" /></a></p>
<p><strong>To display calendar of the month Feburary 2010</strong></p>
<p><a href="http://www.techkaki.com/wp-content/uploads/2010/07/Linux-cal-command-3.png"><img class="alignnone size-full wp-image-1789" title="Linux cal command 3" src="http://www.techkaki.com/wp-content/uploads/2010/07/Linux-cal-command-3.png" alt="" width="499" height="388" /></a></p>
<p>If you wish to learn more how to use cal command, just type &#8216;<strong><span style="font-family: Courier New,Courier;">man cal</span></strong>&#8216; for more details</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 267px; width: 1px; height: 1px; overflow: hidden;"><strong id="y">cal COMMAND:</strong><br />
cal command is used to display the calendar.</p>
<p><strong id="y">SYNTAX:</strong><br />
The Syntax is<br />
<span style="color: brown;">cal [options] [month] [year]</span></p>
<p><strong id="y">OPTIONS:</strong></p>
<table style="margin-left: 15px; border-collapse: collapse;" width="90%">
<tbody>
<tr>
<td class="new" width="10%" align="center" valign="center">-1</td>
<td class="new">Displays single month as output.</td>
</tr>
<tr>
<td class="new" width="10%" align="center" valign="center">-3</td>
<td class="new">Displays prev/current/next month output.</td>
</tr>
<tr>
<td class="new" width="10%" align="center" valign="center">-s</td>
<td class="new">Displays sunday as the first day of the week.</td>
</tr>
<tr>
<td class="new" width="10%" align="center" valign="center">-m</td>
<td class="new">Displays Monday as the first day of the week.</td>
</tr>
<tr>
<td class="new" width="10%" align="center" valign="center">-j</td>
<td class="new">Displays Julian dates (days one-based, numbered  from January 1).</td>
</tr>
<tr>
<td class="new" width="10%" align="center" valign="center">-y</td>
<td class="new">Displays a calendar for the current year.</td>
</tr>
</tbody>
</table>
</div>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.techkaki.com/2010/07/linux-use-the-terminal-to-display-a-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to list out Hidden Files and Folder in linux</title>
		<link>http://www.techkaki.com/2010/06/how-to-list-out-hidden-files-and-folder-in-linux/</link>
		<comments>http://www.techkaki.com/2010/06/how-to-list-out-hidden-files-and-folder-in-linux/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 13:22:04 +0000</pubDate>
		<dc:creator>@HKw@!</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://www.techkaki.com/?p=1754</guid>
		<description><![CDATA[In Windows XP/Vista/7, we can easily view the hidden files or folder by check the &#8220;view hidden file&#8221; option. How about linux? Linux do not have &#8220;view hidden file&#8221; option, any idea? Here are the quick tip:- a) Use command open the terminal, type the following command to list the hidden files and folder # [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><!-- / icon and title --> <!-- message --></p>
<div id="post_message_410559"><a href="http://www.techkaki.com/wp-content/uploads/2010/06/GNOME2.png"><img class="alignleft size-full wp-image-1755" title="GNOME2" src="http://www.techkaki.com/wp-content/uploads/2010/06/GNOME2.png" alt="" width="71" height="71" /></a>In Windows XP/Vista/7, we can easily view the hidden files or folder by check the &#8220;view hidden file&#8221; option. How about linux? Linux do not have &#8220;view hidden file&#8221; option, any idea?</div>
<p>Here are the quick tip:-</p>
<div><span id="more-1754"></span><br />
a) Use command</div>
<div>open the terminal, type the following command to list the hidden files and folder</div>
<blockquote>
<div># ls -a</div>
</blockquote>
<blockquote>
<div>or</div>
</blockquote>
<blockquote>
<div># ls -la</div>
</blockquote>
<div>
B) Use shortcut key<br />
If you use linux with interface, try to press <strong>Ctr + H </strong>. It will show the hidden files and directory folders start with a period (.) . I tried this commnad on Gnome interface linux, it work fine. I think it should working find in KDE interface.</div>
<div></div>
<div>Enjoy. <img src='http://www.techkaki.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </div>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.techkaki.com/2010/06/how-to-list-out-hidden-files-and-folder-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora/Centos: How to Mount and Unmount ISO Files</title>
		<link>http://www.techkaki.com/2010/06/fedoracentos-how-to-mount-and-unmount-iso-files/</link>
		<comments>http://www.techkaki.com/2010/06/fedoracentos-how-to-mount-and-unmount-iso-files/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 13:15:12 +0000</pubDate>
		<dc:creator>@HKw@!</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://www.techkaki.com/?p=1726</guid>
		<description><![CDATA[An ISO image or .iso file contains the disk image of an ISO 9660 file system. According to WIKIPEDIA, ISO 9660, also referred to as CDFS (Compact Disc File System) by some hardware and software providers, is a file system standard published by the International Organization for Standardization (ISO) for optical disc media (CD-ROMs and [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><ins><ins></ins></ins> <a href="http://www.techkaki.com/wp-content/uploads/2010/02/linux.jpg"><img class="alignleft size-full wp-image-1625" title="linux" src="http://www.techkaki.com/wp-content/uploads/2010/02/linux.jpg" alt="" width="50" height="60" /></a>An ISO image or .iso file contains the disk image of an ISO 9660 file system. According to WIKIPEDIA, <strong>ISO 9660</strong>, also referred to as <strong>CDFS</strong> (<strong>Compact Disc File System</strong>) by some hardware and software providers, is a file system standard published by the International Organization for Standardization (ISO) for optical disc media (CD-ROMs and DVD-ROMs).</p>
<p>In Linux, it is possible to mount the ISO image  so that you can access the files without having to actually burn it to disk. Here is the simple way to show you mount and unmount ISO images without burning them.<br />
1) You must login as a root user <span id="more-1726"></span></p>
<blockquote><p><code>$ su -</code></p></blockquote>
<p>2) create a mount point</p>
<blockquote><p>#<code> </code><code>mkdir /mnt/iso</code></p></blockquote>
<p>3) To mount the ISO image file.iso to the mount point /mnt/iso, run the follwing command:-</p>
<blockquote><p><code># mount -o loop -t iso9660 /home/techkaki/file.iso /mnt/iso</code></p>
<p>or</p>
<p><code># mount -o loop </code><code>/home/techkaki/file.iso</code><code> /mnt/iso</code></p>
<p>If you not specifying the &#8220;-t iso9660&#8243; , it will work. The mount command is smart enough to work out that it&#8217;s a CD image.</p></blockquote>
<p>4) Now you can verify that the ISO image is mounted <strong></strong></p>
<blockquote><p># ls -l /mnt/iso</p>
<p>or</p>
<p># df -hT<br />
Filesystem    Type    Size  Used Avail Use% Mounted on<br />
/dev/mapper/vg_techkaki-lv_root<br />
ext4     72G   24G   48G  33% /<br />
tmpfs        tmpfs    976M  6.3M  969M   1% /dev/shm<br />
/dev/sdb1     ext4    194M   94M   90M  52% /boot<br />
/dev/sdc1  fuseblk     21G   16G  4.9G  76% /media/5ECCB927CCB8FA7B<br />
/dev/sdc5  fuseblk     55G   46G  9.5G  83% /media/data<br />
/dev/loop0 iso9660    7.4G  7.4G     0 100% /mnt/iso</p></blockquote>
<p>To unmount the ISO Image, use following command :</p>
<blockquote><p># umount /mnt/iso</p></blockquote>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.techkaki.com/2010/06/fedoracentos-how-to-mount-and-unmount-iso-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://cdn5.tribalfusion.com/media/2123136/video.flv" length="1040967" type="video/x-FLV" />
<enclosure url="http://cdn5.tribalfusion.com/media/2123136/video1.flv" length="1081632" type="video/x-FLV" />
<enclosure url="http://cdn5.tribalfusion.com/media/2123136/video2.flv" length="1289751" type="video/x-FLV" />
		</item>
		<item>
		<title>How to find your MAC address (Linux/Windows/Mac OS X)</title>
		<link>http://www.techkaki.com/2010/03/how-to-find-your-mac-address-linuxwindowsmac-os-x/</link>
		<comments>http://www.techkaki.com/2010/03/how-to-find-your-mac-address-linuxwindowsmac-os-x/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 14:44:54 +0000</pubDate>
		<dc:creator>@HKw@!</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Win7]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://www.techkaki.com/?p=1649</guid>
		<description><![CDATA[Windows XP/Vista/7 Run ipconfig/all from a Command Prompt window. click Start, then Run, then type cmd in the text box. Type in ipconfig/all in the Command Prompt Windows and press enter You should get something like this Your MAC Address is listed under &#8216;Physical Address&#8217; as a series of 6 groups of two digits, letters [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><span style="text-decoration: underline;"><strong><span style="color: #330033; font-size: small;">Windows XP/Vista/7</span></strong></span><br />
Run <code> <strong>ipconfig/all</strong></code> from a Command Prompt window.</p>
<blockquote>
<ul>
<li>click <strong>Start</strong>, then <strong>Run</strong>, then type <strong><code>cmd</code></strong> in the text      box.</li>
</ul>
<ul>
<li>Type in <strong>ipconfig/all</strong> in the Command Prompt Windows and press enter</li>
</ul>
<p><em> </em><em> </em>You should get something like this<span id="more-1649"></span></p>
<p><a href="http://www.techkaki.com/wp-content/uploads/2010/03/ipconfig.jpg"><img class="alignnone size-full wp-image-1650" title="ipconfig" src="http://www.techkaki.com/wp-content/uploads/2010/03/ipconfig.jpg" alt="" width="460" height="289" /></a><br />
<strong>Your <strong>MAC Address</strong> is listed under &#8216;Physical Address&#8217; as a series of 6 groups of two digits, letters and numbers, separated by dashes, such as in the image below.</strong> Make sure you get the physical address of the correct network adapter &#8211; usually there are several listed.</p></blockquote>
<p><span style="color: #330033; font-size: small;"> </span></p>
<p><span style="text-decoration: underline;"><strong><span style="color: #330033; font-size: small;">Linux</span></strong></span></p>
<p>On Linux systems, you must login as root user first before you find the Mac Address</p>
<ul>
<li>Launch your terminal</li>
<li>Type the following command to become root user</li>
</ul>
<p>[ahkwai@techkaki ~]$ su -<br />
Password:</p>
<ul>
<li>Then, type <code>ifconfig. Example:-<br />
</code></li>
</ul>
<p><a href="http://www.techkaki.com/wp-content/uploads/2010/03/ifconfig.png"><img class="alignnone size-full wp-image-1651" title="ifconfig" src="http://www.techkaki.com/wp-content/uploads/2010/03/ifconfig.png" alt="" width="465" height="325" /></a></p>
<p><span style="text-decoration: underline;"><strong><span style="color: #330033; font-size: small;">MAC OS X </span></strong></span></p>
<p><strong>Choose &#8220;System Preferences.</strong>..&#8221; from the Apple menu. Then select &#8220;Network.&#8221; Double-click on &#8220;Airport&#8221; or &#8220;Built-in Ethernet&#8221; depending on how you access the Internet or your network.</p>
<p>For &#8216;Built-in Ethernet&#8217;, select the Ethernet tab.   Read the MAC address labeled &#8216;Ethernet ID:&#8217;.</p>
<p><a href="http://www.techkaki.com/wp-content/uploads/2010/03/Network-Preferences.png"><img class="alignnone size-full wp-image-1653" title="Network Preferences" src="http://www.techkaki.com/wp-content/uploads/2010/03/Network-Preferences.png" alt="" width="459" height="403" /></a></p>
<p><a href="http://www.techkaki.com/wp-content/uploads/2010/03/Ethernet-Tab.png"><img class="alignnone size-full wp-image-1655" title="Ethernet Tab" src="http://www.techkaki.com/wp-content/uploads/2010/03/Ethernet-Tab.png" alt="" width="450" height="351" /></a></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.techkaki.com/2010/03/how-to-find-your-mac-address-linuxwindowsmac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic Linux Commands</title>
		<link>http://www.techkaki.com/2010/02/basic-linux-commands/</link>
		<comments>http://www.techkaki.com/2010/02/basic-linux-commands/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 04:29:42 +0000</pubDate>
		<dc:creator>@HKw@!</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://www.techkaki.com/?p=1608</guid>
		<description><![CDATA[Viewing, copying, moving and deleting files ls Display the contents of the current directory ls -a Display also hidden files and hidden directories cp filename /path/dir_name Copy filename into directory /path/dir_name cp -r dir_name /path/dir_name2 Copy the entire dir_name into /path/dir_name2 cp filename1 filename2 /path/dir_name Copy filename1 and filename2 into /path/dir_name rm name Remove a [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><h3><a href="http://www.techkaki.com/wp-content/uploads/2010/02/linux.jpg"><img class="aligncenter size-full wp-image-1625" title="linux" src="http://www.techkaki.com/wp-content/uploads/2010/02/linux.jpg" alt="" width="89" height="107" /></a></h3>
<h3>Viewing, copying, moving and deleting files</h3>
<div>
<table style="height: 430px;" border="1" width="500">
<tbody>
<tr>
<td>ls</td>
<td>Display the contents of the current directory</td>
</tr>
<tr>
<td>ls -a</td>
<td>Display also hidden files and hidden directories</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>cp filename /path/dir_name</td>
<td>Copy filename into directory /path/dir_name</td>
</tr>
<tr>
<td>cp -r dir_name /path/dir_name2</td>
<td>Copy the entire dir_name into /path/dir_name2</td>
</tr>
<tr>
<td>cp filename1 filename2 /path/dir_name</td>
<td>Copy filename1 and filename2 into /path/dir_name</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>rm name</td>
<td>Remove a file or directory called name</td>
</tr>
<tr>
<td>rm -r name</td>
<td>Remove an entire directory as well as its included files and subdirectories</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>mv filename /path/dir_name</td>
<td>Move filename into /path/dir_name</td>
</tr>
<tr>
<td>mv filename1 filename2</td>
<td>Rename filename1 to filename2</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>cat filename</td>
<td>Display filenames contents</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>more filename</td>
<td>Display filename in pages. Use spacebar to view next page</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>head filename</td>
<td>Display filenames first 10 lines</td>
</tr>
<tr>
<td>head -15 filename</td>
<td>Display filenames first 15 lines</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>tail filename</td>
<td>Display filenames last 10 lines</td>
</tr>
<tr>
<td>tail -15 filename</td>
<td>Display filenames last 15 lines</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>pwd</td>
<td>Display current directory</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>cd /path/dir_name</td>
<td>Change to directory /path/dir_name</td>
</tr>
<tr>
<td>cd ..</td>
<td>Go 1 directory up</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>mkdir dir_name</td>
<td>Create directory dir_name</td>
</tr>
<tr>
<td>rmdir dir_name</td>
<td>Delete directory dir_name</td>
</tr>
</tbody>
</table>
</div>
<h3><span id="more-1608"></span>Finding files and text within files</h3>
<table style="height: 109px;" border="1" width="500">
<tbody>
<tr>
<td>updatedb</td>
<td>Update (create first time used) a database of all files under the root directory /</td>
</tr>
<tr>
<td>locate filename</td>
<td>Find file filename searching in the database</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>find / -name filename</td>
<td>Starting from the root directory search for the file called filename</td>
</tr>
<tr>
<td>find / -name *filename</td>
<td>Same as above but search for file containing the string filename</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>grep string /path/dir_name</td>
<td>Starting from /path/dir_name search for all files containing string</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>which application_name</td>
<td>Search $path for application app_name</td>
</tr>
<tr>
<td>whereis application_name</td>
<td>Search $path, man pages and source files for application_name</td>
</tr>
</tbody>
</table>
<h3>Archived files</h3>
<p><strong>Decompress</strong></p>
<table style="height: 10px;" border="1" width="500">
<tbody>
<tr>
<td>tar -xzf filename.tgz</td>
<td>Decompress tzg file</td>
</tr>
<tr>
<td>tar -xzf filename.tar.gz</td>
<td>Decompress tar.gz file</td>
</tr>
<tr>
<td>tar -xjf filename.tar.bz2</td>
<td>Decompress tar.bz2 file</td>
</tr>
</tbody>
</table>
<p><strong>Compress</strong></p>
<table style="height: 63px;" border="1" width="500">
<tbody>
<tr>
<td>tar -czf filename.tar /path/dir_name</td>
<td>Compress directory /path/dir_name to filename.tar</td>
</tr>
<tr>
<td>gzip -c filename &gt; filename.gz</td>
<td>Compress /path/dir_name to filename.tar.gz</td>
</tr>
<tr>
<td>bzip2 -c filename &gt; filename.bz2</td>
<td>Compress /path/dir_name to filename.tar.bz2</td>
</tr>
</tbody>
</table>
<h3>Using rpm files</h3>
<table style="height: 112px;" border="1" width="500">
<tbody>
<tr>
<td>rpm -hiv package.rpm</td>
<td>Install rpm called package.rpm</td>
</tr>
<tr>
<td>rpm -hiv &#8211;force package.rpm</td>
<td>Install rpm called package.rpm by force</td>
</tr>
<tr>
<td>rpm -hUv package.rpm</td>
<td>Upgrade rpm called package.rpm</td>
</tr>
<tr>
<td>rpm -e package.rpm</td>
<td>Delete rpm called package.rpm</td>
</tr>
<tr>
<td>rpm -qpil package.rpm</td>
<td>List files in not-installed rpm called package.rpm</td>
</tr>
<tr>
<td>rpm -ql package.rpm</td>
<td>List files in installed rpm called package.rpm</td>
</tr>
<tr>
<td>rpm -q str</td>
<td>List installed rpms containing the string str</td>
</tr>
<tr>
<td>rpm -qf /path/application_name</td>
<td>Display the rpm that contains application application_name</td>
</tr>
</tbody>
</table>
<h3>Starting and Stoping</h3>
<table style="height: 88px;" border="1" width="500">
<tbody>
<tr>
<td>startx</td>
<td>Start the X system</td>
</tr>
<tr>
<td>shutdown -h now</td>
<td>Shutdown the system now and do not reboot</td>
</tr>
<tr>
<td>
<div>halt</div>
</td>
<td>Same as above</td>
</tr>
<tr>
<td>shutdown -r now</td>
<td>Reboot</td>
</tr>
<tr>
<td>reboot</td>
<td>Same as above</td>
</tr>
<tr>
<td>shutdown -r +10</td>
<td>Reboot in 10 minutes</td>
</tr>
</tbody>
</table>
<h3>Mounting filesystems</h3>
<div>
<table style="height: 49px;" border="1" width="500">
<tbody>
<tr>
<td>mount -t vfat /dev/sd(a)(1) /mnt/c_drive</td>
<td>Mount the first partition 1 of the first hard disk drive a which is in fat32 vfat dormat under /mnt/c_drive directory</td>
</tr>
<tr>
<td>mount -t iso9660 /dev/cdrom /mnt/cdrom</td>
<td>Mount cdrom under /mnt/cdrom directory</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>umount /mnt/hda1</td>
<td>Unmout the above</td>
</tr>
</tbody>
</table>
</div>
<h3>User administration</h3>
<table style="height: 102px;" border="1" width="500">
<tbody>
<tr>
<td>users</td>
<td>Display users currently logged in</td>
</tr>
<tr>
<td>adduser username</td>
<td>Create a new user called username</td>
</tr>
<tr>
<td>passwd username</td>
<td>Define password for user called username</td>
</tr>
<tr>
<td>who</td>
<td>List logged-in users</td>
</tr>
<tr>
<td>whoami</td>
<td>Display current user</td>
</tr>
<tr>
<td>finger username</td>
<td>Displays info about user username</td>
</tr>
<tr>
<td>su</td>
<td>Log in as root from current login</td>
</tr>
<tr>
<td>su -</td>
<td>Log in as root from current login and take root&#8217;s path</td>
</tr>
<tr>
<td>exit</td>
<td>Exit from console login (ie, logout).</td>
</tr>
</tbody>
</table>
<h3>Processes</h3>
<table style="height: 74px;" border="1" width="501">
<tbody>
<tr>
<td>command</td>
<td>Execute command in the foreground</td>
</tr>
<tr>
<td>command &amp;</td>
<td>Execute command in the background</td>
</tr>
<tr>
<td>ctrl+z</td>
<td>Suspend a program</td>
</tr>
<tr>
<td>ctrl+c</td>
<td>Interrupt a program</td>
</tr>
<tr>
<td>ps</td>
<td>List all processes</td>
</tr>
<tr>
<td>kill -9 pid</td>
<td>Kill process with id pid</td>
</tr>
<tr>
<td>top</td>
<td>Monitor processes in real time</td>
</tr>
</tbody>
</table>
<h3>Networking</h3>
<table style="height: 87px;" border="1" width="500">
<tbody>
<tr>
<td>hostname</td>
<td>List the system&#8217;s hostname</td>
</tr>
<tr>
<td>ifconfig</td>
<td>Set/Display network information</td>
</tr>
<tr>
<td>host ip</td>
<td>Resolves ip&#8217;s hostname</td>
</tr>
<tr>
<td>ping ip/hostname</td>
<td>Check if ip/hostname is reachable</td>
</tr>
<tr>
<td>traceroute ip/hostname</td>
<td>Find network path to ip/hostname</td>
</tr>
</tbody>
</table>
<h3>System Information</h3>
<table style="height: 48px;" border="1" width="500">
<tbody>
<tr>
<td>uname -a</td>
<td>General system information</td>
</tr>
<tr>
<td>fdisk -l</td>
<td>List partition tables</td>
</tr>
<tr>
<td>cp filename /path/dir_name</td>
<td>Copy filename into directory /path/dir_name</td>
</tr>
<tr>
<td>df -T -h</td>
<td>List filesystem disk space usage</td>
</tr>
<tr>
<td>lspci</td>
<td>List PCI devices</td>
</tr>
<tr>
<td>lsusb</td>
<td>List USB devices</td>
</tr>
<tr>
<td>free -m</td>
<td>Display RAM+Swap usage</td>
</tr>
</tbody>
</table>
<h3>Program Compile</h3>
<table style="height: 27px;" border="1" width="500">
<tbody>
<tr>
<td>gcc -o output file.c</td>
<td>Compile a C program</td>
</tr>
<tr>
<td>./output</td>
<td>Run a C program you have compiled</td>
</tr>
<tr>
<td>g++ -o output file.cpp</td>
<td>Compile a C++ program</td>
</tr>
<tr>
<td>./output</td>
<td>Run a C++ program you have compiled</td>
</tr>
<tr>
<td>./configure &amp;&amp; make &amp;&amp; su -c &#8216;make install&#8217;</td>
<td>Configure, compile and install a program with Makefile</td>
</tr>
</tbody>
</table>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.techkaki.com/2010/02/basic-linux-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to open winrar files on Linux (Fedora/Ubuntu)</title>
		<link>http://www.techkaki.com/2010/01/how-to-open-winrar-files-on-linux-fedoraubuntu/</link>
		<comments>http://www.techkaki.com/2010/01/how-to-open-winrar-files-on-linux-fedoraubuntu/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 09:35:57 +0000</pubDate>
		<dc:creator>@HKw@!</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Open Office]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.techkaki.com/?p=1367</guid>
		<description><![CDATA[I just downloaded .rar file. But i can&#8217;t open it under my Fedora operating systems. How to open it? RAR is a proprietary compression format widely used today. By default, Fedora unable to open RAR files. So, you need to install a software called unrar. How to install unrar on Fedora? Just use yum command [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>I just downloaded .rar file. But i can&#8217;t open it under my Fedora operating systems. How to open it?</p>
<p>RAR is a proprietary compression format widely used today. By default, Fedora unable to open RAR files. So, you need to install a software called <strong>unrar</strong>.</p>
<p><span style="text-decoration: underline;"><strong>How to install unrar on Fedora?</strong></span></p>
<p>Just use yum command as follows :<span id="more-1367"></span></p>
<p><code># yum install unrar</code></p>
<p>Under Ubuntu, you need to type apt-get as follows to install unrar program:</p>
<p><code># apt-get install unrar</code></p>
<p><span style="text-decoration: underline;"><strong>How to use unrar?</strong></span></p>
<p>Extract a RAR file into the current directory.</p>
<p><code># unrar e [filename].rar</code></p>
<p>eg: # unrar e testing.rar</p>
<p>List contents of a RAR file</p>
<p><code># unrar l [filename].rar</code></p>
<p>eg: # unrar l techkaki.rar</p>
<p>If you want to know more on how to use unrar function, you just type <tt>man unrar</tt> on your terminal.</p>
<p> <img src='http://www.techkaki.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.techkaki.com/2010/01/how-to-open-winrar-files-on-linux-fedoraubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Change, set or change MySQL root Password</title>
		<link>http://www.techkaki.com/2009/10/how-to-change-set-or-change-mysql-root-password/</link>
		<comments>http://www.techkaki.com/2009/10/how-to-change-set-or-change-mysql-root-password/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 13:54:07 +0000</pubDate>
		<dc:creator>@HKw@!</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://www.techkaki.com/?p=1253</guid>
		<description><![CDATA[Once you installed MySQL, you might need to set the MySQL root password to protect your DB. Actually how to do that? Just type the following command on your terminal [root@techkaki] # mysqladmin -u root password NEWPASSWORD However, if you want to change (or update) a root password, then you need to use following command [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Once you installed MySQL, you might need to set the MySQL root password to protect your DB. Actually how to do that?</p>
<p>Just type the following command on your terminal</p>
<pre>
[root@techkaki] # mysqladmin -u root password NEWPASSWORD
</pre>
<p>
<p>
However, if you want to change (or update) a root password, then you need to use following command
</p>
</p>
<p><pre>
 [root@techkaki] # mysqladmin -u root -p 'oldpassword' password newpass
</pre>
</p>
<p>
Eg:</p>
<pre>
[root@techkaki] # mysqladmin -u root -p 'abcdef' password '123456'
</pre></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.techkaki.com/2009/10/how-to-change-set-or-change-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use Windows Live Messanger in Linux</title>
		<link>http://www.techkaki.com/2009/10/how-to-use-windows-live-messanger-in-linux/</link>
		<comments>http://www.techkaki.com/2009/10/how-to-use-windows-live-messanger-in-linux/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 05:40:17 +0000</pubDate>
		<dc:creator>@HKw@!</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.techkaki.com/?p=1243</guid>
		<description><![CDATA[Is it possible to use Windows Live Messenger on Linux? The answer is yes. You can try to install aMSN to run the Windows Live Messenger. aMSN is a free Windows Live Messenger clone. aMSN attempts to emulate the look and feel of Windows Live Messenger, and supports many of its features. The features of [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><span id="ctl00_Main_GridviewPostsList_ctl04_PostCtrl_LabelQuestionText">Is it possible to use Windows Live Messenger on Linux?</span> The answer is yes. You can try to install aMSN to run the Windows Live Messenger. <strong>aMSN</strong> is a free Windows Live Messenger clone. <strong>aMSN </strong>attempts to emulate the look and feel of Windows Live Messenger, and supports many of its features.</p>
<p>The features of <strong>aMSN </strong>include:-</p>
<ul>
<li>Offline Messaging</li>
<li>Voice Clips</li>
<li>Display pictures</li>
<li>Custom emoticons</li>
<li>Multi-language support (around 40 languages currently supported)</li>
<li>Webcam support</li>
<li>Sign in to more than one account at once</li>
<li>Full-speed File transfers</li>
<li>Group support</li>
<li>Normal, and animated emoticons with sounds</li>
<li>Chat logs</li>
<li>Timestamping</li>
<li>Event alarms</li>
<li>Conferencing support</li>
<li>Tabbed chat windows<span id="more-1243"></span></li>
</ul>
<p>Most of the linux distributions already include <strong>aMSN</strong> in their package collections.       You can install aMSN directly with your package manager, without having to download it from <strong>aMSN</strong> web site.</p>
<p>Here i going to show your how to install <strong>aMSN </strong>on Ubuntu and Fedora using command line.</p>
<p>How to install <strong>aMSN </strong>on Ubuntu? Just type the following command on your terminal</p>
<pre>sudo apt-get update
sudo apt-get install amsn</pre>
<p>
<p>
How to install <strong>aMSN</strong> on Fedora? Just type the following command on your terminal</p>
<pre>yum install amsn</pre>
<p>
<p>
After you install <strong>aMSN</strong>, try to launch the aMSN program from your menu. You will see the<strong> aMSN</strong> prompt out and the interface also same as Windows Live Messenger</p>
<p><img class="aligncenter size-full wp-image-1245" title="Screenshot-aMSN - Offline" src="http://www.techkaki.com/wp-content/uploads/2009/10/Screenshot-aMSN-Offline.png" alt="Screenshot-aMSN - Offline" width="356" height="652" /></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.techkaki.com/2009/10/how-to-use-windows-live-messanger-in-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to use terminal command to update Firefox on linux</title>
		<link>http://www.techkaki.com/2009/08/how-to-use-terminal-update-firefox-on-linux/</link>
		<comments>http://www.techkaki.com/2009/08/how-to-use-terminal-update-firefox-on-linux/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 11:03:36 +0000</pubDate>
		<dc:creator>@HKw@!</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://www.techkaki.com/?p=1192</guid>
		<description><![CDATA[Firefox always release new version. We can easily upgrade it via terminal command. How to do that? Follow the steps below: For Ubuntu / Debian Linux sudo apt-get update sudo apt-get install firefox For Fedora / Redhat / Centos Linux yum update yum install firefox Done.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Firefox always release new version. We can easily upgrade it via terminal command. </p>
<p>How to do that? Follow the steps below:</p>
<p>For Ubuntu / Debian Linux</p>
<pre> sudo apt-get update</pre>
<pre> sudo apt-get install firefox</pre>
<p>
<p>
For Fedora / Redhat / Centos Linux</p>
<pre> yum update </pre>
<pre> yum install firefox </pre>
<p>Done. <img src='http://www.techkaki.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.techkaki.com/2009/08/how-to-use-terminal-update-firefox-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem with set static ip on ubuntu 8.10</title>
		<link>http://www.techkaki.com/2009/08/problem-with-set-static-ip-on-ubuntu-8-10/</link>
		<comments>http://www.techkaki.com/2009/08/problem-with-set-static-ip-on-ubuntu-8-10/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 14:34:49 +0000</pubDate>
		<dc:creator>@HKw@!</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.techkaki.com/?p=1139</guid>
		<description><![CDATA[There is a bug with the Gnome Network Manger on Ubuntu 8.10. We have to set the static ip address manually. Once the system is reboot, it will reverting back to DHCP setup. This problem can be solve by remove the Gnome Network Manager. To remove the Gnome Network Manager, use the following command in [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>There is a bug with the Gnome Network Manger on Ubuntu 8.10. We have to set the static ip address manually. Once the system is reboot, it will reverting back to DHCP setup.</p>
<p>This problem can be solve by remove the Gnome Network Manager. To remove the Gnome Network Manager, use the following command in the terminal:<span id="more-1139"></span><br />
<strong> </strong></p>
<pre><strong>sudo update-rc.d NetworkManager remove</strong></pre>
<p>After that, reboot your system.</p>
<p><span style="text-decoration: underline;"><strong>Step 1 &#8211; How to set the static ip </strong></span></p>
<p>We need to manually configure the network interface file when you want your Ubuntu run on static IP environment</p>
<p>Enter the following command into the terminal:</p>
<pre><strong>nano /etc/network/interfaces</strong></pre>
<p>After that, enter the following information to the network configuration files</p>
<pre>auto lo eth0
iface lo inet loopback
iface eth0 inet static
address xxx.xxx.xxx.xxx(enter your ip here)
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx(enter gateway ip here)</pre>
<p>Please save it before you exit the configuration file.</p>
<p>Step 2 &#8211; Manually configure your dns configuration file:</p>
<p>Enter the following command into the terminal:</p>
<pre><strong>sudo nano /etc/resolv.conf</strong></pre>
<p>Once the DNS configuration open, enter the following information</p>
<pre># Generated by NetworkManager
nameserver xxx.xxx.xxx.xxx(enter your dns server ip)
nameserver xxx.xxx.xxx.xxx(enter your alt dns server ip)</pre>
<p>Please save before you exit the configuration file.</p>
<p><span style="text-decoration: underline;"><strong>Step 3 &#8211; Restart the network interfaces</strong></span></p>
<p>Enter the following command in the terminal:</p>
<pre>sudo /etc/init.d/networking restart</pre>
<p>After that, your network interface should be able to run on new setting(static ip) even you restart your machine. You can try to check on by using <strong>ifconfig</strong> command in your terminal.</p>
<p>Just try it <img src='http://www.techkaki.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.techkaki.com/2009/08/problem-with-set-static-ip-on-ubuntu-8-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
