<?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>PinoyTux Weblog</title>
	
	<link>http://www.pinoytux.com</link>
	<description>Get Fresh News About Linux, Philippines and Everything in Between</description>
	<lastBuildDate>Mon, 01 Feb 2010 06:05:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</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" type="application/rss+xml" href="http://feeds.feedburner.com/PinoytuxWeblog" /><feedburner:info uri="pinoytuxweblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Common Linux Configuration Files</title>
		<link>http://feedproxy.google.com/~r/PinoytuxWeblog/~3/VB0hnI2rezE/common-linux-configuration-files</link>
		<comments>http://www.pinoytux.com/linux/common-linux-configuration-files#comments</comments>
		<pubDate>Mon, 01 Feb 2010 06:05:18 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[clear]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=759</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/common-linux-configuration-files';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Common Linux Configuration Files';
digg_bodytext = 'Every user who switches from Windows to Linux has the fear of editing configuration files using the command line interface (CLI). If you are one of those people, then I am here to guide you through the most common configuration files found in a Linux...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
Every user who switches from Windows to Linux has the fear of editing configuration files using the command line interface (CLI). If you are one of those people, then I am here to guide you through the most common configuration files found in a Linux system. Please note that to be able to edit these [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/X-CkZ57paw2vVXJIGsOrVujALuM/0/da"><img src="http://feedads.g.doubleclick.net/~a/X-CkZ57paw2vVXJIGsOrVujALuM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/X-CkZ57paw2vVXJIGsOrVujALuM/1/da"><img src="http://feedads.g.doubleclick.net/~a/X-CkZ57paw2vVXJIGsOrVujALuM/1/di" border="0" ismap="true"></img></a></p><div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/common-linux-configuration-files';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Common Linux Configuration Files';
digg_bodytext = 'Every user who switches from Windows to Linux has the fear of editing configuration files using the command line interface (CLI). If you are one of those people, then I am here to guide you through the most common configuration files found in a Linux...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>Every user who switches from Windows to Linux has the fear of editing configuration files using the command line interface (CLI). If you are one of those people, then I am here to guide you through the most common configuration files found in a Linux system. Please note that to be able to edit these files, you need to have knowledge in file editors such as vim or pico.</p>
<p><strong>/etc/profile</strong><br />
System wide environment variables for all users.</p>
<p><strong>/etc/fstab</strong><br />
List of devices and their associated mount points. Edit this file to add cdroms, DOS partitions and floppy drives at startup.</p>
<p><strong>/etc/motd</strong><br />
Message of the day broadcast to all users at login.</p>
<p><strong>/etc/rc.d/rc.local</strong><br />
Bash script that is executed at the end of login process. Similar to autoexec.bat in DOS.</p>
<p><strong>/etc/hostname</strong><br />
Contains full hostname including domain.</p>
<p><strong>/etc/cron.*</strong><br />
There are 4 directories that automatically execute all scripts within the directory at intervals of hour, day, week or month.</p>
<p><strong>/etc/hosts</strong><br />
A list of all know host names and IP addresses on the machine.</p>
<p><strong>/etc/httpd/conf</strong><br />
Parameters for the Apache web server</p>
<p><strong>/etc/inittab</strong><br />
Specifies the run level that the machine should boot into.</p>
<p><strong>/etc/resolv.conf</strong><br />
Defines IP addresses of DNS servers.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.pinoytux.com/linux/linux-shortcuts-every-newbie-should-know" title="Linux Shortcuts Every Newbie Should Know">Linux Shortcuts Every Newbie Should Know</a> (0)</li><li><a href="http://www.pinoytux.com/linux/how-to-fix-the-terminal-after-viewing-binary-file" title="How to Fix the Terminal After Viewing Binary File">How to Fix the Terminal After Viewing Binary File</a> (0)</li><li><a href="http://www.pinoytux.com/linux/tip-resume-session-with-screen" title="Tip: Resume Session with screen">Tip: Resume Session with screen</a> (2)</li><li><a href="http://www.pinoytux.com/linux/tip-using-find-command-in-linux" title="Tip: Using find Command in Linux">Tip: Using find Command in Linux</a> (7)</li><li><a href="http://www.pinoytux.com/linux/how-to-use-watch-command" title="How to Use watch Command">How to Use watch Command</a> (0)</li></ul><img src="http://feeds.feedburner.com/~r/PinoytuxWeblog/~4/VB0hnI2rezE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/common-linux-configuration-files/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.pinoytux.com/linux/common-linux-configuration-files</feedburner:origLink></item>
		<item>
		<title>Linux Shortcuts Every Newbie Should Know</title>
		<link>http://feedproxy.google.com/~r/PinoytuxWeblog/~3/ydBWEUf0jYM/linux-shortcuts-every-newbie-should-know</link>
		<comments>http://www.pinoytux.com/linux/linux-shortcuts-every-newbie-should-know#comments</comments>
		<pubDate>Sun, 31 Jan 2010 05:25:29 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[clear]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=754</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/linux-shortcuts-every-newbie-should-know';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Linux Shortcuts Every Newbie Should Know';
digg_bodytext = 'Linux Shortcuts Every Newbie Should KnowOne thing that Linux is not so popular of is that it has quite a few keyboard shortcuts that every Linux user should know. Here are a few examples of Linux shortcuts that will help anyone who uses Linux.&lt;Ctrl&gt;&lt;Alt&gt;&lt;F1&gt;...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
Linux Shortcuts Every Newbie Should Know
One thing that Linux is not so popular of is that it has quite a few keyboard shortcuts that every Linux user should know. Here are a few examples of Linux shortcuts that will help anyone who uses Linux.
&#60;Ctrl&#62;&#60;Alt&#62;&#60;F1&#62; 
Switch to the first text terminal. Under Linux you can have [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/4Ii_U1dZzVSBGA_6cg6xq48XlHA/0/da"><img src="http://feedads.g.doubleclick.net/~a/4Ii_U1dZzVSBGA_6cg6xq48XlHA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/4Ii_U1dZzVSBGA_6cg6xq48XlHA/1/da"><img src="http://feedads.g.doubleclick.net/~a/4Ii_U1dZzVSBGA_6cg6xq48XlHA/1/di" border="0" ismap="true"></img></a></p><div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/linux-shortcuts-every-newbie-should-know';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Linux Shortcuts Every Newbie Should Know';
digg_bodytext = 'Linux Shortcuts Every Newbie Should KnowOne thing that Linux is not so popular of is that it has quite a few keyboard shortcuts that every Linux user should know. Here are a few examples of Linux shortcuts that will help anyone who uses Linux.&lt;Ctrl&gt;&lt;Alt&gt;&lt;F1&gt;...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>Linux Shortcuts Every Newbie Should Know</p>
<p>One thing that Linux is not so popular of is that it has quite a few keyboard shortcuts that every Linux user should know. Here are a few examples of Linux shortcuts that will help anyone who uses Linux.</p>
<p><strong>&lt;Ctrl&gt;&lt;Alt&gt;&lt;F1&gt; </strong><br />
Switch to the first text terminal. Under Linux you can have several (6 in standard setup) terminals opened at the same time.</p>
<p><strong>&lt;Ctrl&gt;&lt;Alt&gt;&lt;Fn&gt;</strong> (n=1..6)<br />
Switch to the nth text terminal.</p>
<p><strong>tty </strong><br />
Print the name of the terminal in which you are typing this command.</p>
<p><strong>&lt;Ctrl&gt;&lt;Alt&gt;&lt;F7&gt; </strong><br />
Switch to the first GUI terminal (if X-windows is running on this terminal).</p>
<p><strong>&lt;Ctrl&gt;&lt;Alt&gt;&lt;Fn&gt;</strong> (n=7..12)<br />
Switch to the nth GUI terminal (if a GUI terminal is running on screen n-1). By default, nothing is running on terminals 8 to 12, but you can run another server there.</p>
<p><strong>&lt;Tab&gt; </strong><br />
(In a text terminal) Autocomplete the command  if there is only one option, or else show all the available options.</p>
<p><strong>&lt;ArrowUp&gt; </strong><br />
Scroll and edit the command history. Press &lt;Enter&gt; to execute.</p>
<p><strong>&lt;Shift&gt;&lt;PgUp&gt; </strong><br />
Scroll terminal output up. Work also at the login prompt, so you can scroll through your bootup messages.</p>
<p><strong>&lt;Shift&gt;&lt;PgDown&gt; </strong><br />
Scroll terminal output down.</p>
<p><strong>&lt;Ctrl&gt;&lt;Alt&gt;&lt;+&gt; </strong><br />
(in X-windows) Change to the next X-server resolution (if you set up the X-server to more than one resolution). For multiple resolutions on my standard SVGA card/monitor, I have the following line in the file /etc/X11/XF86Config (the first resolution starts on default, the largest determines the size of the &#8220;virtual screen&#8221;):<br />
Modes &#8220;1024&#215;768&#8243; &#8220;800&#215;600&#8243; &#8220;640&#215;480&#8243; &#8220;512&#215;384&#8243; &#8220;480&#215;300&#8243; &#8220;400&#215;300&#8243; &#8220;1152&#215;864&#8243;</p>
<p><strong>&lt;Ctrl&gt;&lt;Alt&gt;&lt;-&gt; </strong><br />
(in X-windows) Change to the previous X-server resolution.</p>
<p><strong>&lt;Ctrl&gt;&lt;Alt&gt;&lt;BkSpc&gt; </strong><br />
(in X-windows) Kill the current X-windows server. Use if the X-windows server crushes and cannot be exited normally.</p>
<p><strong>&lt;Ctrl&gt;&lt;Alt&gt;&lt;Del&gt; </strong><br />
Shut down the system and reboot. This is the normal shutdown command for a user at the text-mode console. Don&#8217;t just press the &#8220;reset&#8221; button for shutdown!</p>
<p><strong>&lt;Ctrl&gt;c </strong><br />
Kill the current process (mostly in the text mode for small applications).</p>
<p><strong>&lt;Ctrl&gt;d </strong><br />
Log out from the current terminal.  See also the next command.</p>
<p><strong>&lt;Ctrl&gt;d </strong><br />
Send [End-of-File] to the current process. Don&#8217;t press it twice else you also log out (see the previous command).</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.pinoytux.com/linux/common-linux-configuration-files" title="Common Linux Configuration Files">Common Linux Configuration Files</a> (0)</li><li><a href="http://www.pinoytux.com/linux/how-to-fix-the-terminal-after-viewing-binary-file" title="How to Fix the Terminal After Viewing Binary File">How to Fix the Terminal After Viewing Binary File</a> (0)</li><li><a href="http://www.pinoytux.com/linux/tip-resume-session-with-screen" title="Tip: Resume Session with screen">Tip: Resume Session with screen</a> (2)</li><li><a href="http://www.pinoytux.com/linux/how-to-use-alias-command" title="How to Use the alias Command">How to Use the alias Command</a> (0)</li><li><a href="http://www.pinoytux.com/microsoft/unpopular-but-useful-windows-shortcut-keys" title="Unpopular But Useful Windows Shortcut Keys">Unpopular But Useful Windows Shortcut Keys</a> (2)</li></ul><img src="http://feeds.feedburner.com/~r/PinoytuxWeblog/~4/ydBWEUf0jYM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/linux-shortcuts-every-newbie-should-know/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.pinoytux.com/linux/linux-shortcuts-every-newbie-should-know</feedburner:origLink></item>
		<item>
		<title>How to Use watch Command</title>
		<link>http://feedproxy.google.com/~r/PinoytuxWeblog/~3/zyCj7y_AYkA/how-to-use-watch-command</link>
		<comments>http://www.pinoytux.com/linux/how-to-use-watch-command#comments</comments>
		<pubDate>Fri, 08 Jan 2010 11:13:05 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[ps]]></category>
		<category><![CDATA[repeat]]></category>
		<category><![CDATA[results]]></category>
		<category><![CDATA[stdout]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=659</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/how-to-use-watch-command';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'How to Use watch Command';
digg_bodytext = 'If you need to execute a certain command repeatedly, you may use the watch command to do the repeating for you.In this example, the command ps will be run every 2 seconds to monitor how fast the new processes spawn:$ watch -n2 "ps aux|grep http"The watch...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
If you need to execute a certain command repeatedly, you may use the watch command to do the repeating for you.
In this example, the command ps will be run every 2 seconds to monitor how fast the new processes spawn:
$ watch -n2 "ps aux&#124;grep http"
The watch command will run ps every two seconds and it [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/76W9-SG7KPWRMJE2eZZ1U63o4tQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/76W9-SG7KPWRMJE2eZZ1U63o4tQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/76W9-SG7KPWRMJE2eZZ1U63o4tQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/76W9-SG7KPWRMJE2eZZ1U63o4tQ/1/di" border="0" ismap="true"></img></a></p><div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/how-to-use-watch-command';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'How to Use watch Command';
digg_bodytext = 'If you need to execute a certain command repeatedly, you may use the watch command to do the repeating for you.In this example, the command ps will be run every 2 seconds to monitor how fast the new processes spawn:$ watch -n2 "ps aux|grep http"The watch...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>If you need to execute a certain command repeatedly, you may use the <code>watch</code> command to do the repeating for you.</p>
<p>In this example, the command <code>ps</code> will be run every 2 seconds to monitor how fast the new processes spawn:</p>
<p><code>$ watch -n2 "ps aux|grep http"</code></p>
<p>The <code>watch</code> command will run <code>ps</code> every two seconds and it will display the output in stdout. You may increase or decrease the interval as necessary. This is useful if you want to monitor a process at certain time intervals. Personally, I use this to check for processes that spawns children way too fast.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.pinoytux.com/linux/how-to-use-alias-command" title="How to Use the alias Command">How to Use the alias Command</a> (0)</li><li><a href="http://www.pinoytux.com/linux/tip-how-to-use-watch-command" title="Tip: How to Use watch Command">Tip: How to Use watch Command</a> (0)</li><li><a href="http://www.pinoytux.com/linux/common-linux-configuration-files" title="Common Linux Configuration Files">Common Linux Configuration Files</a> (0)</li><li><a href="http://www.pinoytux.com/linux/linux-shortcuts-every-newbie-should-know" title="Linux Shortcuts Every Newbie Should Know">Linux Shortcuts Every Newbie Should Know</a> (0)</li><li><a href="http://www.pinoytux.com/linux/how-to-fix-the-terminal-after-viewing-binary-file" title="How to Fix the Terminal After Viewing Binary File">How to Fix the Terminal After Viewing Binary File</a> (0)</li></ul><img src="http://feeds.feedburner.com/~r/PinoytuxWeblog/~4/zyCj7y_AYkA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/how-to-use-watch-command/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.pinoytux.com/linux/how-to-use-watch-command</feedburner:origLink></item>
		<item>
		<title>Send Email in One Line</title>
		<link>http://feedproxy.google.com/~r/PinoytuxWeblog/~3/4zpPgqLBeQM/send-email-in-one-line</link>
		<comments>http://www.pinoytux.com/linux/send-email-in-one-line#comments</comments>
		<pubDate>Thu, 07 Jan 2010 10:57:15 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[one line]]></category>
		<category><![CDATA[receive]]></category>
		<category><![CDATA[send]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=657</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/send-email-in-one-line';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Send Email in One Line';
digg_bodytext = 'I use this nifty one liner to test if a Linux machine can send emails.$ echo "This is the body of the email" | mail -s "This is the subject" rai@email.comYou need to install the package mailx (Red Hat or Fedora) to have the mail command.';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
I use this nifty one liner to test if a Linux machine can send emails.
$ echo "This is the body of the email" &#124; mail -s "This is the subject" rai@email.com
You need to install the package mailx (Red Hat or Fedora) to have the mail command.
Related PostsWhich Linux Distro is Best for You (0)Tip: Script [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/mqJddzAlquGvGCwGt_PMlu57gOc/0/da"><img src="http://feedads.g.doubleclick.net/~a/mqJddzAlquGvGCwGt_PMlu57gOc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mqJddzAlquGvGCwGt_PMlu57gOc/1/da"><img src="http://feedads.g.doubleclick.net/~a/mqJddzAlquGvGCwGt_PMlu57gOc/1/di" border="0" ismap="true"></img></a></p><div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/send-email-in-one-line';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'Send Email in One Line';
digg_bodytext = 'I use this nifty one liner to test if a Linux machine can send emails.$ echo "This is the body of the email" | mail -s "This is the subject" rai@email.comYou need to install the package mailx (Red Hat or Fedora) to have the mail command.';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>I use this nifty one liner to test if a Linux machine can send emails.</p>
<p><code>$ echo "This is the body of the email" | mail -s "This is the subject" rai@email.com</code></p>
<p>You need to install the package mailx (Red Hat or Fedora) to have the mail command.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.pinoytux.com/linux/which-linux-distro-is-best-for-you" title="Which Linux Distro is Best for You">Which Linux Distro is Best for You</a> (0)</li><li><a href="http://www.pinoytux.com/linux/tip-script-for-checking-for-server-load" title="Tip: Script for Checking for Server Load">Tip: Script for Checking for Server Load</a> (2)</li><li><a href="http://www.pinoytux.com/linux/linux-alternative-to-ms-exchange-and-outlook" title="Linux Alternative to MS Exchange and Outlook">Linux Alternative to MS Exchange and Outlook</a> (0)</li><li><a href="http://www.pinoytux.com/linux/common-linux-configuration-files" title="Common Linux Configuration Files">Common Linux Configuration Files</a> (0)</li><li><a href="http://www.pinoytux.com/linux/linux-shortcuts-every-newbie-should-know" title="Linux Shortcuts Every Newbie Should Know">Linux Shortcuts Every Newbie Should Know</a> (0)</li></ul><img src="http://feeds.feedburner.com/~r/PinoytuxWeblog/~4/4zpPgqLBeQM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/send-email-in-one-line/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.pinoytux.com/linux/send-email-in-one-line</feedburner:origLink></item>
		<item>
		<title>How to Use the alias Command</title>
		<link>http://feedproxy.google.com/~r/PinoytuxWeblog/~3/l386qqmPFjI/how-to-use-alias-command</link>
		<comments>http://www.pinoytux.com/linux/how-to-use-alias-command#comments</comments>
		<pubDate>Wed, 06 Jan 2010 10:47:39 +0000</pubDate>
		<dc:creator>Rai</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[trick]]></category>

		<guid isPermaLink="false">http://www.pinoytux.com/?p=653</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/how-to-use-alias-command';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'How to Use the alias Command';
digg_bodytext = 'Let us say you execute the command ‘ls –alh’ every time you need a long listing of files and directories. Now you want a shortcut to do this. Fortunately, you can do so by using the command alias.The alias command is useful for creating shortcuts...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
Let us say you execute the command ‘ls –alh’ every time you need a long listing of files and directories. Now you want a shortcut to do this. Fortunately, you can do so by using the command alias.
The alias command is useful for creating shortcuts for long commands or for correcting typing mistakes.
To create a [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Zt-qW1zTnLP-n4IV27nqFS5wKJk/0/da"><img src="http://feedads.g.doubleclick.net/~a/Zt-qW1zTnLP-n4IV27nqFS5wKJk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Zt-qW1zTnLP-n4IV27nqFS5wKJk/1/da"><img src="http://feedads.g.doubleclick.net/~a/Zt-qW1zTnLP-n4IV27nqFS5wKJk/1/di" border="0" ismap="true"></img></a></p><div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://www.pinoytux.com/linux/how-to-use-alias-command';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = 'new';
digg_title = 'How to Use the alias Command';
digg_bodytext = 'Let us say you execute the command ‘ls –alh’ every time you need a long listing of files and directories. Now you want a shortcut to do this. Fortunately, you can do so by using the command alias.The alias command is useful for creating shortcuts...';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>Let us say you execute the command ‘<code>ls –alh</code>’ every time you need a long listing of files and directories. Now you want a shortcut to do this. Fortunately, you can do so by using the command alias.</p>
<p>The alias command is useful for creating shortcuts for long commands or for correcting typing mistakes.</p>
<p>To create a shortcut for <code>ls</code>, you can do this:</p>
<p><code>$ alias ls=”ls -alh”</code></p>
<p>Now, everytime you execute<code> ls</code> command, it will be run as if you are executing the whole <code>ls –alh </code>command. Be reminded that this will replace the existing ls command. You may use a different name for the new shortcut like so:</p>
<p><code>$ alias ll=”ls -alh”</code></p>
<p>However, once you exit the current terminal, the alias will not be saved. To make the alias permanent, you may edit the .bashrc file in user’s home directory:</p>
<p><code>$ vi ~rai/.bashrc</code></p>
<p>Then insert the alias command after the line that says <code>#system wide functions and aliases</code>. Save and exit.</p>
<p>That should do it!</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.pinoytux.com/linux/how-to-use-watch-command" title="How to Use watch Command">How to Use watch Command</a> (0)</li><li><a href="http://www.pinoytux.com/linux/linux-shortcuts-every-newbie-should-know" title="Linux Shortcuts Every Newbie Should Know">Linux Shortcuts Every Newbie Should Know</a> (0)</li><li><a href="http://www.pinoytux.com/microsoft/unpopular-but-useful-windows-shortcut-keys" title="Unpopular But Useful Windows Shortcut Keys">Unpopular But Useful Windows Shortcut Keys</a> (2)</li><li><a href="http://www.pinoytux.com/linux/common-linux-configuration-files" title="Common Linux Configuration Files">Common Linux Configuration Files</a> (0)</li><li><a href="http://www.pinoytux.com/linux/how-to-fix-the-terminal-after-viewing-binary-file" title="How to Fix the Terminal After Viewing Binary File">How to Fix the Terminal After Viewing Binary File</a> (0)</li></ul><img src="http://feeds.feedburner.com/~r/PinoytuxWeblog/~4/l386qqmPFjI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.pinoytux.com/linux/how-to-use-alias-command/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.pinoytux.com/linux/how-to-use-alias-command</feedburner:origLink></item>
	</channel>
</rss>
