<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://how2forge.com" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
 <title>HowtoForge - Linux Howtos and Tutorials - Shell</title>
 <link>http://how2forge.com/taxonomy/term/71/all</link>
 <description></description>
 <language>en</language>
 <atom:link href="http://how2forge.com/taxonomy/term/71/all/feed" rel="self" type="application/rss+xml" />
 <image>
  <title>HowtoForge - Linux Howtos and Tutorials - Shell</title>
  <url>http://www.howtoforge.com/themes/htf_glass/images/howtoforge_logo_glass_blue.gif</url>
  <link>http://how2forge.com/taxonomy/term/71/all</link>
 </image>

<item>
 <title>Simple Patch Tools</title>
 <link>http://how2forge.com/simple-patch-tools</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/simple-patch-tools&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;
&lt;p&gt;&lt;b&gt;Simple Patch Tools &lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;Creating&lt;/i&gt;: When all you want to do is build a patch file that contains only the changes you&#039;ve made today. &lt;i&gt;Installing&lt;/i&gt;: I typically want to take a backup of the files that are going to be overwritten so that I can quickly undo the patch if necessary.&lt;/p&gt;</description>
 <category domain="http://how2forge.com/sitemap/programming">Programming</category>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Fri, 30 Jul 2010 18:07:51 +0200</pubDate>
 <guid>http://how2forge.com/simple-patch-tools</guid>
 <comments>http://how2forge.com/simple-patch-tools#comment</comments>
</item>
<item>
 <title>The Bash Script To Configure The Firewall Using IPTABLES</title>
 <link>http://how2forge.com/bash-script-for-configuring-iptables-firewall</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/bash-script-for-configuring-iptables-firewall&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;B&gt;
&lt;H3 editor_id=&quot;mce_editor_0&quot;&gt;About the Script:&lt;/h3&gt;&lt;/b&gt;
&lt;P&gt;This script is about to build a firewall in Linux OS by using &lt;B&gt;iptables&lt;/b&gt;, the user only needs to follow and answer the simple and easy steps and the script will generate the user specified iptables rule in its original form.&lt;/p&gt;
&lt;P editor_id=&quot;mce_editor_0&quot;&gt;I HAVE TESTED THE SCRIPT ON PCLINUXOS, FEDORA-9, DREAM_LINUX, UBUNTU-8.&lt;/p&gt;
&lt;P editor_id=&quot;mce_editor_0&quot;&gt;This is my iptables Version 1.0 (USMAN AKRAM - Lucky)&lt;/p&gt;</description>
 <category domain="http://how2forge.com/sitemap/linux/pclinuxos">PCLinuxOS</category>
 <category domain="http://how2forge.com/sitemap/security">Security</category>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Thu, 26 Jun 2008 13:58:49 +0200</pubDate>
 <guid>http://how2forge.com/bash-script-for-configuring-iptables-firewall</guid>
 <comments>http://how2forge.com/bash-script-for-configuring-iptables-firewall#comment</comments>
</item>
<item>
 <title>Useful Commands For The Linux Command Line</title>
 <link>http://how2forge.com/useful_linux_commands</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/useful_linux_commands&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;p&gt;&lt;b&gt;Useful Commands For The Linux Command Line&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;This short guide shows some important commands for your daily work on the Linux command line.&lt;/p&gt;
</description>
 <category domain="http://how2forge.com/sitemap/linux">Linux</category>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Fri, 09 Mar 2007 17:49:32 +0100</pubDate>
 <guid>http://how2forge.com/useful_linux_commands</guid>
 <comments>http://how2forge.com/useful_linux_commands#comment</comments>
</item>
<item>
 <title>How can I observe a logfile continuously?</title>
 <link>http://how2forge.com/faq/12_61_en.html</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/faq/12_61_en.html&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;p&gt;With the command:&lt;/p&gt;
&lt;p class=&quot;command&quot;&gt;tail -f /path/to/logfile&lt;/p&gt;
you will see all lines added to the logfile. To stop this, press &lt;span class=&quot;system&quot;&gt;[CTRL] + c&lt;/span&gt;</description>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Mon, 07 Aug 2006 18:44:31 +0200</pubDate>
 <guid>http://how2forge.com/faq/12_61_en.html</guid>
 <comments>http://how2forge.com/faq/12_61_en.html#comment</comments>
</item>
<item>
 <title>How to save a command in the shell history without executing it</title>
 <link>http://how2forge.com/faq/12_60_en.html</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/faq/12_60_en.html&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;p&gt;Enter the command line and hit the keys:&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;system&quot;&gt;[CTRL] + [#]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;This will put a &lt;span class=&quot;system&quot;&gt;#&lt;/span&gt; in front of the command and execute it. The shell will take it as comment.&lt;/p&gt;</description>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Mon, 07 Aug 2006 18:42:39 +0200</pubDate>
 <guid>http://how2forge.com/faq/12_60_en.html</guid>
 <comments>http://how2forge.com/faq/12_60_en.html#comment</comments>
</item>
<item>
 <title>How can I clear the shell window?</title>
 <link>http://how2forge.com/faq/12_59_en.html</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/faq/12_59_en.html&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;p&gt;Use the commad:&lt;/p&gt;
&lt;p class=&quot;command&quot;&gt;clear&lt;/p&gt;
&lt;p&gt;or the keyboard shortcut:&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;system&quot;&gt;[CTRL] + [L]&lt;/span&gt;&lt;/p&gt;
</description>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Mon, 07 Aug 2006 18:40:41 +0200</pubDate>
 <guid>http://how2forge.com/faq/12_59_en.html</guid>
 <comments>http://how2forge.com/faq/12_59_en.html#comment</comments>
</item>
<item>
 <title>Creating image borders with ImageMagick convert</title>
 <link>http://how2forge.com/faq/12_58_en.html</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/faq/12_58_en.html&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;p&gt;The command is:&lt;/p&gt;
&lt;p class=&quot;command&quot;&gt;convert -border 2x2 old.jpg new.jpg&lt;/p&gt;
&lt;p&gt;This creates a new image (&lt;span class=&quot;system&quot;&gt;new.jpg&lt;/span&gt;) with a 2 pixel border from the image &lt;span class=&quot;system&quot;&gt;old.jpg&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;To set the bordercolor to red, use this command:&lt;/p&gt;
&lt;p class=&quot;command&quot;&gt;convert -border 2x2 -bordercolor &quot;#FF0000&quot; old.jpg new.jpg&lt;/p&gt;
</description>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Mon, 07 Aug 2006 18:37:29 +0200</pubDate>
 <guid>http://how2forge.com/faq/12_58_en.html</guid>
 <comments>http://how2forge.com/faq/12_58_en.html#comment</comments>
</item>
<item>
 <title>Get a list of the installed services</title>
 <link>http://how2forge.com/faq/12_57_en.html</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/faq/12_57_en.html&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;p&gt;To get a list of the installed services on the shell, you may use this command (on Fedora, RedHat, CentOS, SuSE, and Mandriva):&lt;/p&gt;

&lt;p class=&quot;command&quot;&gt;chkconfig --list&lt;/p&gt;
</description>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Mon, 07 Aug 2006 18:32:36 +0200</pubDate>
 <guid>http://how2forge.com/faq/12_57_en.html</guid>
 <comments>http://how2forge.com/faq/12_57_en.html#comment</comments>
</item>
<item>
 <title>Show all processes for a specific user</title>
 <link>http://how2forge.com/faq/12_56_en.html</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/faq/12_56_en.html&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;p&gt;To view only the processes owned by a specific user, use the following command:&lt;/p&gt;
&lt;p class=&quot;command&quot;&gt;top -U [USERNAME]&lt;/p&gt;
&lt;p&gt;and replace &lt;span class=&quot;system&quot;&gt;[USERNAME]&lt;/span&gt; with the name of the user.&lt;/p&gt;
</description>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Mon, 07 Aug 2006 18:31:41 +0200</pubDate>
 <guid>http://how2forge.com/faq/12_56_en.html</guid>
 <comments>http://how2forge.com/faq/12_56_en.html#comment</comments>
</item>
<item>
 <title>Making snapshots of the process table shown by the TOP command</title>
 <link>http://how2forge.com/faq/12_55_en.html</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/faq/12_55_en.html&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;p&gt;To make a snapshot of the current process table, use the following command:&lt;/p&gt;
&lt;p class=&quot;command&quot;&gt;top -n 1 -b &amp;gt; /tmp/processtable.txt&lt;/p&gt;
&lt;p&gt;You can now view the textfile with any text editor, e.g. &lt;span class=&quot;system&quot;&gt;pico&lt;/span&gt; or &lt;span class=&quot;system&quot;&gt;vi&lt;/span&gt;.&lt;/p&gt;
</description>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Mon, 07 Aug 2006 18:29:15 +0200</pubDate>
 <guid>http://how2forge.com/faq/12_55_en.html</guid>
 <comments>http://how2forge.com/faq/12_55_en.html#comment</comments>
</item>
<item>
 <title>How do I search for a term in a file?</title>
 <link>http://how2forge.com/faq/12_37_en.html</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/faq/12_37_en.html&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;
&lt;p&gt;With the &lt;span class=&quot;system&quot;&gt;grep&lt;/span&gt; command.&lt;/p&gt;
&lt;p&gt;If you want to find out if the term &lt;span class=&quot;system&quot;&gt;user&lt;/span&gt; is in &lt;span class=&quot;system&quot;&gt;/etc/httpd/conf/httpd.conf&lt;/span&gt;, you would run&lt;/p&gt;
&lt;p class=&quot;command&quot;&gt;grep -i user /etc/httpd/conf/httpd.conf&lt;/p&gt;
&lt;p&gt;(&lt;span class=&quot;system&quot;&gt;-i&lt;/span&gt; makes the search case-insensitive).&lt;/p&gt;
&lt;p&gt;Normally &lt;span class=&quot;system&quot;&gt;grep&lt;/span&gt; does not tell you the line number where it finds the term. If you want to find out the line number, run&lt;/p&gt;
&lt;p class=&quot;command&quot;&gt;grep -n -i user /etc/httpd/conf/httpd.conf&lt;/p&gt;
</description>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Mon, 07 Aug 2006 18:27:39 +0200</pubDate>
 <guid>http://how2forge.com/faq/12_37_en.html</guid>
 <comments>http://how2forge.com/faq/12_37_en.html#comment</comments>
</item>
<item>
 <title>How do I find out who is logged in on my system?</title>
 <link>http://how2forge.com/faq/12_36_en.html</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/faq/12_36_en.html&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;
&lt;p&gt;You can find out about logged in users either by running&lt;/p&gt;
&lt;p class=&quot;command&quot;&gt;who&lt;/p&gt;
&lt;p&gt;(Sample output:&lt;/p&gt;
&lt;pre&gt;server:~# who
root     pts/0        Nov 12 11:28 (192.168.0.202)&lt;/pre&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;or &lt;/p&gt;
&lt;p class=&quot;command&quot;&gt;w&lt;/p&gt;
&lt;p&gt;which gives more detailed output:&lt;/p&gt;
&lt;pre&gt;server:~# w
 11:29:49 up  2:19,  1 user,  load average: 0.02, 0.01, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    192.168.0.202    11:28    0.00s  0.08s  0.01s w&lt;/pre&gt;</description>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <pubDate>Mon, 07 Aug 2006 18:23:58 +0200</pubDate>
 <guid>http://how2forge.com/faq/12_36_en.html</guid>
 <comments>http://how2forge.com/faq/12_36_en.html#comment</comments>
</item>
<item>
 <title>How do I edit files on the command line?</title>
 <link>http://how2forge.com/faq/12_15_en.html</link>
 <description>&lt;span style=&#039;margin: 0px 10px 0px 0px; float: left;&#039;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
tweetmeme_url = &#039;http://how2forge.com/faq/12_15_en.html&#039;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.howtoforge.com/js/tweetmeme_button.js&quot;&gt;&lt;/script&gt;
&lt;/span&gt;&lt;p&gt;To edit files on the command line, you can use an editor such as &lt;span class=&quot;system&quot;&gt;vi&lt;/span&gt;. To open the file, run&lt;/p&gt;

&lt;p class=&quot;command&quot;&gt;vi /path/to/file&lt;/p&gt;

&lt;p&gt;Now you see the contents of the file (if there is any. Please note that the file is created if it does not exist yet.).&lt;/p&gt;

&lt;p&gt;The most important commands in &lt;span class=&quot;system&quot;&gt;vi&lt;/span&gt; are these:&lt;/p&gt;

&lt;p&gt;Press &lt;span class=&quot;system&quot;&gt;i&lt;/span&gt; to enter the &lt;span class=&quot;system&quot;&gt;Insert&lt;/span&gt; mode. Now you can type in your text.&lt;/p&gt;

&lt;p&gt;To leave the &lt;span class=&quot;system&quot;&gt;Insert&lt;/span&gt; mode press &lt;span class=&quot;system&quot;&gt;ESC&lt;/span&gt;.&lt;/p&gt;</description>
 <category domain="http://how2forge.com/taxonomy/term/71">Shell</category>
 <category domain="http://how2forge.com/taxonomy/term/72">Other</category>
 <pubDate>Mon, 07 Aug 2006 18:15:40 +0200</pubDate>
 <guid>http://how2forge.com/faq/12_15_en.html</guid>
 <comments>http://how2forge.com/faq/12_15_en.html#comment</comments>
</item>
</channel>
</rss>
