<?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>Linux * Screw &#187; unix</title>
	<atom:link href="http://www.linuxscrew.com/category/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxscrew.com</link>
	<description></description>
	<lastBuildDate>Fri, 04 Nov 2011 14:19:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=8044</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Install nfdump and nfsen netflow tools in Linux</title>
		<link>http://www.linuxscrew.com/2011/02/23/install-nfdump-and-nfsen-netflow-tools-in-linux/</link>
		<comments>http://www.linuxscrew.com/2011/02/23/install-nfdump-and-nfsen-netflow-tools-in-linux/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 20:00:01 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=1182</guid>
		<description><![CDATA[Using nfsen it is possible to view IP traffic statistics on Linux interfaces including the graphs showing data sent and received (see the screenshot to the right) as well as historical information about all data transfers. So after you&#8217;ve configured nfsen and nfdump to monitor traffic on certain Linux server or router you&#8217;ll be able [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.linuxscrew.com/wp-content/uploads/2011/02/Selection_033.png"><img src="http://www.linuxscrew.com/wp-content/uploads/2011/02/Selection_033-small.png" alt="" title="nfsen screenshot" width="300" height="162" class="alignright size-full wp-image-1190" /></a>Using <strong><a href="http://nfsen.sourceforge.net/">nfsen</a></strong> it is possible to view IP traffic statistics on <strong><a href="http://www.linuxscrew.com/category/linux/">Linux</a></strong> interfaces including the graphs showing data sent and received (see the screenshot to the right) as well as historical information about all data transfers. So after you&#8217;ve configured <strong>nfsen</strong> and <strong>nfdump</strong> to monitor traffic on certain <strong>Linux</strong> server or router you&#8217;ll be able to answer the following example questions: What IP was downloading data through 48161 last Wednesday? or How many bytes were sent to IP 8.8.8.8 via 53 port from Linux server? These are the only examples so <strong>nfdump</strong> and <strong>nfdump</strong> <a href="http://en.wikipedia.org/wiki/Netflow">netflow</a> tools gives you wide range of capabilities to monitor and analyze traffic on your <strong>Linux</strong> host.</p>
<p><strong>Netflow</strong> is the protocol developed by <a href="http://www.cisco.com">Cisco</a> to manage data about IP traffic. In a few words using Netflow you can collect data about all IP data send/received on multiple Cisco/Linux/BSD/Juniper hosts and send it to central Netflow collector that will show you the nice graphs and also will allow to have a complete picture of what data was sent/received on those hosts (including destination and source IP, port, bytes transfered, int/out interfaces etc). <strong>Nfdump</strong> is netflow collector. <strong>Nfsen</strong> is graphical tools for generating graphs and querying <strong>Nfdump</strong> for historical traffic reports. In this article you will see how to deploy all this staff in <strong>Linux</strong>.</p>
<p>Netflow probe is required to collect IP traffic data on <strong>Linux</strong> host. In general this piece of sofware will sit in background, store every network activity on certain network interface and then send collected data to Netflow collector nfdump. As Netflow probe I prefer <strong><a href="http://fprobe.sourceforge.net/">fprobe</a></strong> that is totally simple application that just does its job. If you feel that fprobe is not what you need or there are some problems with installing it you can try <a href="http://www.mindrot.org/projects/softflowd/">softflowd</a> that can do the same job.</p>
<p><em>Install fprobe from sources:</em></p>
<pre>cd /usr/src/
sudo -s
wget http://sourceforge.net/projects/fprobe/files/fprobe/1.1/fprobe-1.1.tar.bz2/download
tar -xvjf fprobe-1.1.tar.bz2
cd fprobe-1.1
./configure --prefix=/
make
make install
</pre>
<p><em>Point fprobe to one of network interfaces of <strong>Linux</strong> host and make it to send data to Netflow collector:</em></p>
<pre>fprobe -i eth0 11.22.33.44:23456</pre>
<p>In above example fprobe stores all data trasnfers on eth0 network interface and sends collected data to 11.22.33.44 host via 23456 UDP port (you may want to change firewall rules to make Netflow working over 23456 UDP port).</p>
<p><em>Install nfdump Netflow collector from sources:</em></p>
<pre>cd /usr/src/
sudo -s
wget http://sourceforge.net/projects/nfdump/files/stable/nfdump-1.6.2/nfdump-1.6.2.tar.gz/download
tar -xvzf nfdump-1.6.2.tar.gz
cd nfdump-1.6.2
./configure --prefix=/ --enable-nfprofile
make make
install</pre>
<p>When finished Netflow collector becomes ready so you can start capturing traffic from Netflow probe. If you don&#8217;t need any graphical tools like <strong>nfsen</strong> described below you can just start collector and save Netflow data in /var/neflow/ directory (THIS STEP IS OPTIONAL):</p>
<pre>/bin/nfcapd -w -D -p 23456 -B 200000 -S 1 -z -I Linux-Host-1-eth0 -l /var/netflow/</pre>
<p>In order to install <strong>nfsen</strong> from sources you have to get all its prerequisites, run one of below lines depending on what <strong>Linux</strong> distro you&#8217;re using (1st line is for <a href="http://www.linuxscrew.com/category/fedora/">Fedora</a>, <a href="http://www.linuxscrew.com/category/centos/">Centos</a>, Redhat while 2nd line is for <a href="http://www.linuxscrew.com/category/ubuntu/">Ubuntu</a>, <a href="http://www.linuxscrew.com/category/debian/">Debian</a>, Mint and similar):</p>
<pre>yum install rrdtool rrdtool-devel rrdutils perl-rrdtool -y</pre>
<p>or</p>
<pre>aptitude install rrdtool librrd2-dev librrd-dev librrd4 librrds-perl librrdp-perl</pre>
<p><em>Compile nfsen from sources:</em></p>
<pre>cd /usr/src/
sudo -s
wget http://sourceforge.net/projects/nfsen/files/stable/nfsen-1.3.5/nfsen-1.3.5.tar.gz/download
tar -xvzf nfsen-1.3.5.tar.gz
cd nfsen-1.3.5
cp etc/nfsen-dist.conf etc/nfsen.conf</pre>
<p>In order to continue the installation you should edit file <i>etc/nfsen.conf</i> to specify where to install <strong>nfsen</strong>, web server’s username (yes, you have to install apache, lighttpd, nginx or any other web server first), its document root directory etc. The major section of that config file is ‘Netflow sources’ that must list all hosts you&#8217;ve started Netflow probes at. Here is an example section for monitoring above <strong>Linux</strong> host:</p>
<pre>%sources = (
    'Linux-Host-eth0'    => { 'port' => '23456', 'col' => '#ff0000', 'type' => 'netflow' },
);</pre>
<p>When finished it&#8217;s time to actually install <strong>nfsen</strong> using installation script:</p>
<pre>./install.pl etc/nfsen.conf</pre>
<p>In case of successful installation you will be notified with corresponding congratulations message so it would be proper time to start <strong>nfsen</strong> daemon:</p>
<pre>/path/to/nfsen/bin/nfsen start</pre>
<p>Now you can open http://localhost/nfsen/nfsen.php at Linux host where <strong>nfsen</strong> was installed to start using this Netflow tool and see some graphs. Notice that it takes about 5-10 minutes to see first bars at the graphs, if the graphs are still empty you will have to check at least the following:</p>
<p>1. If fprobe is able to communicate to Netwflow collector and can send Netflow data to it (use <em>&#8216;ps ax | grep fprobe&#8217;</em> and Linux host being monitored and tcpdump tool at Netflow collector).<br />
2. If Netflow collector is started and can receive data from Netflow probe. Use <em>&#8216;ps ax | grep nfcapd&#8217;</em> and tcpdump at Netflow collector Linux host.</p>
<p>If you can add anything &#8212; feel free to drop a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2011/02/23/install-nfdump-and-nfsen-netflow-tools-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FAQ: How to install manual pages in Solaris?</title>
		<link>http://www.linuxscrew.com/2009/12/25/faq-how-to-install-manual-pages-in-solaris/</link>
		<comments>http://www.linuxscrew.com/2009/12/25/faq-how-to-install-manual-pages-in-solaris/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 12:47:15 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=970</guid>
		<description><![CDATA[In order to use install man pages for various commands in Solaris it is necessary to get two packages: SUNWman and SUNWdoc. You can check if they are already installed using commands &#8216;pkginfo SUNWdoc' and 'pkginfo SUNWman', or just try &#8216;man man&#8216;. If they are not present in your system you can install them from [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linuxscrew.com/wp-content/uploads/2009/12/solaris_logo.png"><img class="size-full wp-image-972 alignright" title="solaris logo" src="http://www.linuxscrew.com/wp-content/uploads/2009/12/solaris_logo.png" alt="solaris logo" width="200" height="104" /></a>In order to use <strong>install man pages</strong> for various commands in <a href="http://www.sun.com/software/solaris/"><strong>Solaris</strong></a> it is necessary to get two packages: <strong>SUNWman</strong> and <strong>SUNWdoc</strong>. You can check if they are already installed using commands &#8216;<code>pkginfo SUNWdoc'</code> and <code>'pkginfo SUNWman'</code>, or just try &#8216;<code>man man</code>&#8216;. If they are not present in your system you can install them from Solaris 10 cd-rom (I guess you&#8217;re using exactly this version of Sun&#8217; operating system):</p>
<p>1. Mount cd-rom:</p>
<p><code>mount -F hsfs /dev/dsk/c0t1d0s2 /mnt/</code></p>
<p>where c0t1d0s2 is identifier of your cd-rom and may differ from system to system.</p>
<p>2. Install Packages:</p>
<p><code>pkgadd -d /mnt/Solaris_10/Product SUNWman</code><br />
<code>pkgadd -d /mnt/Solaris_10/Product SUNWdoc</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2009/12/25/faq-how-to-install-manual-pages-in-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best of Linux Cheat Sheets</title>
		<link>http://www.linuxscrew.com/2009/12/21/best-of-linux-cheat-sheets/</link>
		<comments>http://www.linuxscrew.com/2009/12/21/best-of-linux-cheat-sheets/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 15:55:53 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[cheatsheets]]></category>
		<category><![CDATA[cheet sheets]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=935</guid>
		<description><![CDATA[Below list of Linux cheat sheets can be used by everybody who administer Linux operating system including beginners/newbies and bearded gurus.
PDF &#124; Command Line Interface (CLI), Security, Networking

Unix/Linux Command Reference by fosswire.com
THE ONE PAGE LINUX MANUAL (A summary of useful Linux commands)
LINUX System Call Quick Reference
LINUX Admin Quick Reference
Linux quick reference card

Linux Shell quick reference [...]]]></description>
			<content:encoded><![CDATA[<p>Below list of <strong>Linux cheat sheets</strong> can be used by everybody who administer Linux operating system including beginners/newbies and bearded gurus.</p>
<p><strong>PDF</strong> |<strong> </strong>Command Line Interface (CLI), Security, Networking</p>
<ul>
<li><a href="http://files.fosswire.com/2007/08/fwunixref.pdf">Unix/Linux Command Reference</a> by <a href="http://www.fosswire.com">fosswire.com</a></li>
<li><a href="http://www.digilife.be/quickreferences/QRC/The%20One%20Page%20Linux%20Manual.pdf">THE ONE PAGE LINUX MANUAL</a> (A summary of useful Linux commands)</li>
<li><strong><img class="size-full wp-image-936 alignright" title="cheat sheet example" src="http://www.linuxscrew.com/wp-content/uploads/2009/12/cheat-sheet.jpg" alt="cheat sheet example" width="300" height="201" /></strong><a href="http://www.digilife.be/quickreferences/QRC/LINUX%20System%20Call%20Quick%20Reference.pdf">LINUX System Call Quick Reference</a></li>
<li><a href="http://www.digilife.be/quickreferences/QRC/LINUX%20Admin%20Quick%20Reference.pdf">LINUX Admin Quick Reference</a></li>
<li><a href="http://danleff.net/downloads/linux/linux_quick_ref_card.pdf">Linux quick reference card<br />
</a></li>
<li><a href="http://www.mikeoliveri.com/utils/shellcheatsheet.pdf">Linux Shell quick reference guide</a></li>
<li><a href="http://www.digilife.be/quickreferences/QRC/Linux%20Security%20Quick%20Reference%20Guide.pdf">Linux Security Quick Reference Guide</a></li>
<li><a href="http://packetlife.net/media/library/12/tcpdump.pdf">tcpdump cheat sheet</a></li>
<li><a href="http://packetlife.net/media/library/13/Wireshark_Display_Filters.pdf">Wireshark display filters</a></li>
<li><a href="http://www.sans.org/resources/sec560/netcat_cheat_sheet_v1.pdf">Netcat cheat sheet</a></li>
</ul>
<p><strong>HTML</strong> | CLI<strong>,</strong> Gnome/KDE</p>
<ul>
<li><a href="http://www.redhat.com/docs/manuals/linux/RHL-6.2-Manual/getting-started-guide/ch-doslinux.html">DOS to Linux cheatsheet</a></li>
<li><a href="http://cb.vu/unixtoolbox.xhtml">Unix toolbox</a></li>
<li><a href="http://www.rain.org/~mkummel/unix.html">Treebeard&#8217;s Unix cheat sheet</a></li>
<li><a href="http://www.unixguide.net/linux/linuxshortcuts.shtml">Linux terminal shortcuts</a></li>
<li><img class="alignright" title="Linux Cheat Sheets" src="http://www.linuxscrew.com/wp-content/uploads/2008/10/cheating.JPG" alt="" width="180" height="120" /><a href="http://wiki.typo3.org/index.php/Linux_cheat_sheet">Just Linux cheat sheet</a></li>
<li><a href="http://www.computerworld.com/s/article/9030259/Linux_Command_Line_Cheat_Sheet">Computerworld&#8217;s Linux cheat </a><a href="http://www.computerworld.com/s/article/9030259/Linux_Command_Line_Cheat_Sheet">sheet</a></li>
<li><a href="http://www.pixelbeat.org/cmdline.html">Linux CLI reference for common operations</a></li>
<li><a href="http://peterlombardo.wikidot.com/linux-cheat-sheet">Peter Lombardo&#8217;s Linux cheat sheet</a></li>
<li><a href="http://www.ezlinuxadmin.com/?page_id=16">EZ Linux Cheat Sheet</a></li>
<li><a href="http://www.novell.com/coolsolutions/tip/2289.html">Gnome/KDE shortcuts</a></li>
<li><a href="http://www.suso.com/infosheets/">Linux related reference sheets</a> by <a href="http://www.suso.com">suso.com</a></li>
<li>Bonus: <a href="http://www.localtech.us/cheat_sheet.htm" class="broken_link" >Linux/UNIX and Microsoft Cheat Sheet</a></li>
</ul>
<p><strong>PDF</strong> | Linux Distributions Cheat Sheets</p>
<ul>
<li><img class="size-full wp-image-941 alignright" title="vi cheatsheet" src="http://www.linuxscrew.com/wp-content/uploads/2009/12/vi_cheatsheet.gif" alt="vi cheatsheet" width="256" height="181" /><a href="http://files.fosswire.com/2008/04/ubunturef.pdf">Ubuntu</a></li>
<li><a href="http://xinocat.com/refcard/refcard-en-lt.pdf" class="broken_link" >Debian</a></li>
<li><a href="http://www.ubuntuka.com/cheat-sheets-ubuntu/">Top  Ubuntu Cheat Sheets</a></li>
</ul>
<p><strong>HTML/PDF</strong> | vi, sed, awk</p>
<ul>
<li><a href="http://www.eec.com/business/vi.html">Vi Cheat Sheet</a></li>
<li><a href="http://www.pixelbeat.org/vim.tips.html">Vim Tips Cheat Sheet</a></li>
<li><a href="http://www.catonmat.net/download/awk.cheat.sheet.pdf">Awk, Nawk Cheat Sheet</a></li>
<li><a href="http://www.catonmat.net/download/sed.stream.editor.cheat.sheet.pdf">Sed Stream Editor Cheat Sheet</a></li>
<li><a href="http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html">Vi/Vim Cheat Sheets (Lessons)</a></li>
</ul>
<p><!-- INFOLINKS_OFF -->
<p style="padding-top: 25px; padding-bottom: 25px;"><font size="-2"><strong>Information improvisation: </strong>Our incredible deals of <a href="http://www.actualtests.com/exam-HP2-Q04.htm">HP2-Q04 practice exam</a> and free <a href="http://www.certkiller.com/exam-642-467.htm">642-467 dumps</a> tutorials make your success certain for the final <a href="http://www.examsheets.com/exam/OG0-093.htm">OG0-093</a> exam and you can get <a href="http://www.testkingsite.com/hp/HP0-S30.html">HP0-S30 exam</a> dumps &#038; <a href="http://www.testkingprep.com/642-456.html" class="broken_link" >642-456</a>.<br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2009/12/21/best-of-linux-cheat-sheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FAQ: How to scrollback in GNU SCREEN?</title>
		<link>http://www.linuxscrew.com/2008/11/14/faq-how-to-scrollback-in-gnu-screen/</link>
		<comments>http://www.linuxscrew.com/2008/11/14/faq-how-to-scrollback-in-gnu-screen/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 12:05:06 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[faq]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/11/14/faq-how-to-scrollback-in-gnu-screen/</guid>
		<description><![CDATA[Q: I was compiling kernel using GNU Screen utility but something happened during the compilation and I want to see full error&#8217;s output but I can&#8217;t just scrollback using Ctrl+PageUp. How to scrollback in GNU Screen?
A: In GNU Screen press Ctrl + a + [ to enter Copy Mode, then scroll up/down using keys j [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Q</strong>: I was compiling kernel using <a href="http://www.gnu.org/software/screen/">GNU Screen</a> utility but something happened during the compilation and I want to see full error&#8217;s output but I can&#8217;t just scrollback using Ctrl+PageUp. How to <strong>scrollback in GNU Screen</strong>?</p>
<p><strong>A</strong>: In GNU Screen press <strong>Ctrl + a + </strong>[ to enter Copy Mode, then scroll up/down using keys <strong>j</strong> or <strong>k</strong>. Below are some other navigation keys:</p>
<pre>h -    Move the cursor left by one character
j -    Move the cursor down by one line
k -    Move the cursor up by one line
l -    Move the cursor right by one character
0 -    Move to the beginning of the current line
$ -    Move to the end of the current line.
G -    Moves to the specified line
       (defaults to the end of the buffer).
C-u -  Scrolls a half page up.
C-b -  Scrolls a full page up.
C-d -  Scrolls a half page down.
C-f -  Scrolls the full page down.</pre>
<p>By the way, in order to define scrollback buffer size start screen with the following key (5000 lines in this example):</p>
<p><code>screen -h 5000</code></p>
<p>Quick info about <a href="http://en.wikipedia.org/wiki/GNU_Screen">GNU Screen</a> utility: it is Unix tool that allows to run multiple applications in several &#8220;virtual&#8221; windows. It is very useful when you need, let&#8217;s say, to see hardware resources consumption caused by started application in different console etc. GNU screen is also good option to run applications remotely via ssh: just run application in screen and log off until it&#8217;s finished, then just &#8220;pick up&#8221; screen session and see how the application&#8217;s output.</p>
<p>Update: You can use activate copy mode of GNU Screen also by <strong>Ctrl + Esc</strong> that might be more useful than <strong>Ctrl + a + [ </strong>shortcut (thanks to <a href="http://sites.google.com/site/livibetter/">Yu-Jie Lin</a> for this tip).</p>
<p><!-- INFOLINKS_OFF -->
<p style="padding-top: 25px; padding-bottom: 25px;"><font size="-2"><strong>Information improvisation: </strong>You can get score highest marks in <a href="http://www.actualtests.com/exam-000-119.htm">000-119 exam</a> using <a href="http://www.certkiller.com/exam-642-971.htm">642-971</a> and <a href="http://www.examsheets.com/exam/642-481.htm">642-481</a> which are prepared by top certified professionals, <a href="http://www.testkingsite.com/microsoft/MCP.html">mcp certification</a> &#038; <a href="http://www.testkingprep.com/642-631.html">642-631</a>; both are marvelous in their nature.<br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/11/14/faq-how-to-scrollback-in-gnu-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another 10 good Unix habits to pickup</title>
		<link>http://www.linuxscrew.com/2008/09/10/another-10-good-unix-habits-to-pickup/</link>
		<comments>http://www.linuxscrew.com/2008/09/10/another-10-good-unix-habits-to-pickup/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 14:05:52 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[shell]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/09/10/another-10-good-unix-habits-to-pickup/</guid>
		<description><![CDATA[Well, IBM publishes a new article about useful Unix command line habits as a follow-up to Michael Stutz&#8217;s article. I promise that after reading this article you will say something like &#8220;A-ha, I didn&#8217;t know you could do that!&#8221;   Here is the part of that staff:
The !$ command returns the last argument used [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2007/09/logo-ibm.gif" align="right" />Well, <strong>IBM</strong> publishes a new article about <strong>useful Unix command line habits</strong> as a follow-up to <a href="http://www.linuxscrew.com/2008/01/17/10-good-unix-cli-habits-to-pick-up/">Michael Stutz&#8217;s article</a>. I promise that after reading this article you will say something like &#8220;A-ha, I didn&#8217;t know you could do that!&#8221; <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Here is the part of that staff:</p>
<blockquote><p>The !$ command returns the last argument used with a command. But what happens if you have a command that used arguments and you want to reuse just one of them? The !:1  operator returns the argument used in a command. The example in Listing 3 shows how you can use this operator in combination with the !$ operator. In the first command, a file is renamed to a more meaningful name, but to preserve use of the original file name, a symbolic link is created. The file kxp12.c is renamed in a more readable manner, then the link command is used to create a symbolic link back to the original file name, in case it&#8217;s still used elsewhere. The !$ operator returns the file_system_access.c argument, and the !:1 operator returns the kxp12.c argument, which is the first argument of the previous command.</p>
<p><strong>Listing 3</strong><br />
<code>$ mv kxp12.c file_system_access.c<br />
$ ln –s !$ !:1</code></p></blockquote>
<p>Read more <a href="http://www.ibm.com/developerworks/aix/library/au-unixtips/index.html?S_TACT=105AGX20&amp;S_CMP=EDU">here</a>&#8230;</p>
<p style="text-align: center"><img src="http://www.linuxscrew.com/wp-content/uploads/2008/09/fts-unix-front.jpg" title="unix front" alt="unix front" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/09/10/another-10-good-unix-habits-to-pickup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FAQ: How to order pizza from Linux CLI?</title>
		<link>http://www.linuxscrew.com/2008/08/08/faq-how-to-order-pizza-from-linux-cli/</link>
		<comments>http://www.linuxscrew.com/2008/08/08/faq-how-to-order-pizza-from-linux-cli/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 13:34:25 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[humour]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/08/08/faq-how-to-order-pizza-from-linux-cli/</guid>
		<description><![CDATA[Q: How can I order my favourite pizza by using Linux command line interface?
A: Well&#8230; You can use Pizza Party application written by Cory Arcangel and Michael Frumin! Here are some features this outstanding application provides:


Can order pizza with only a few keystrokes.
Can save pizza preferences.
Can use batch files for ordering many pizzas.
Has easy to [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2008/08/coupleeating.gif" title="couple eating pizza linux" alt="couple eating pizza linux" align="right" /><strong>Q</strong>: How can I order my favourite pizza by using Linux command line interface?</p>
<p><strong>A</strong>: Well&#8230; You can use <a href="http://www.beigerecords.com/cory/pizza_party/">Pizza Party</a> application written by <a href="http://www.beigerecords.com/cory/">Cory Arcangel</a> and Michael Frumin! Here are some features this outstanding application provides:<br />
<quote></quote></p>
<ul>
<li>Can order pizza with only a few keystrokes.</li>
<li>Can save pizza preferences.</li>
<li>Can use batch files for ordering many pizzas.</li>
<li>Has easy to use flags for ordering different toppings.</li>
<li>Runs on most UNIX-like operating systems.</li>
<li>Supports most currently popular topings like &#8220;mushrooms&#8221;, and      &#8220;pepperoni&#8221;!</li>
<li>Unattended / background operation.</li>
<li>Pizza Party is distributed under the <a href="http://www.gnu.org/copyleft/gpl.html">GNU General Public License</a>.</li>
</ul>
<p>Download Pizza Party&#8217;s initial source code <a href="http://www.beigerecords.com/cory/pizza_party/download/pizza_party-0.1.b.tar.gz" target="_blank">here</a> and python ported version from this link.</p>
<p><center><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/x7pPajOvQGo&#038;color1=11645361&#038;color2=13619151&#038;fs=1"></param><param name="wmode" value="transparent"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/x7pPajOvQGo&#038;color1=11645361&#038;color2=13619151&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" width="425" height="344"></embed></object></center></p>
<p>P.S. This portion of Friday humour is provided by <a href="http://hehe2.net/" target="_blank">Royal HeHe2-ness!</a> <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><!-- INFOLINKS_OFF -->
<p style="padding-top: 25px; padding-bottom: 25px;"><font size="-2"><strong>Information improvisation: </strong>You can sign up for <a href="http://www.actualtests.com/exam-70-576.htm">70-576</a> training program to guarantee passes your <a href="http://www.certkiller.com/exam-HP0-J43.htm">HP0-J43</a> exam. We also offer best quality self study resources for <a href="http://www.examsheets.com/exam/70-536.htm">70-536</a> &#038; <a href="http://www.testkingsite.com/the-open-group/OG0-093.html">OG0-093</a>, have you ever heard about <a href="http://www.testkingprep.com/000-152.html">000-152</a>, they are stunning in IT world.<br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/08/08/faq-how-to-order-pizza-from-linux-cli/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>#ln -s /dev/null /dev/clue</title>
		<link>http://www.linuxscrew.com/2008/06/11/ln-s-devnull-devclue/</link>
		<comments>http://www.linuxscrew.com/2008/06/11/ln-s-devnull-devclue/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 11:47:52 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[humour]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/06/11/ln-s-devnull-devclue/</guid>
		<description><![CDATA[
   found at  http://17outs.com/.
]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img src="http://www.linuxscrew.com/wp-content/uploads/2008/06/jitcrunchaspx.jpeg" title="jitcrunchaspx.jpeg" alt="jitcrunchaspx.jpeg" /></p>
<p> <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  found at  <a href="http://17outs.com/">http://17outs.com/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/06/11/ln-s-devnull-devclue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FAQ: How to retreive hardware manufacturer name, serial numbers, etc. in Linux command line</title>
		<link>http://www.linuxscrew.com/2008/05/10/faq-how-to-retreive-hardware-manufacturer-name-serial-numbers-etc-in-linux-command-line/</link>
		<comments>http://www.linuxscrew.com/2008/05/10/faq-how-to-retreive-hardware-manufacturer-name-serial-numbers-etc-in-linux-command-line/#comments</comments>
		<pubDate>Sat, 10 May 2008 12:49:35 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[faq]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/05/10/faq-how-to-retreive-hardware-manufacturer-name-serial-numbers-etc-in-linux-command-line/</guid>
		<description><![CDATA[Question: How can I get information about hardware manufacturer, model name, serial number, BIOS information using Linux command line (CLI)?
 
Answer: You are welcome to use dmidecode which helps to get information about your system&#8217;s hardware as described in your system BIOS. That information typically includes system manufacturer, model name, serial number, BIOS version, asset [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2008/05/serial-number.jpg" title="ibm serial number" alt="ibm serial number" align="right" /><strong>Question</strong>: How can I get information about hardware manufacturer, model name, serial number, BIOS information using Linux command line (CLI)?<br />
<strong> </strong></p>
<p><strong>Answer</strong>: You are welcome to use <a href="http://www.nongnu.org/dmidecode/" target="_blank"><strong>dmidecode</strong></a> which helps to get information about your system&#8217;s hardware as described in your system BIOS. That information typically includes system manufacturer, model name, serial number, BIOS version, asset tag as well as a lot of other details depending on the manufacturer.</p>
<blockquote><p>Beware that DMI data have proven to be too unreliable to be blindly trusted. Dmidecode does not scan your hardware, it only reports what the BIOS told it to. Dmidecode was first written by Alan Cox and is now being further developed and maintained by Jean Delvare. It is released under the General Public License (GPL).</p></blockquote>
<p>This tool can be easily downloaded from <a href="http://download.savannah.gnu.org/releases/dmidecode/" target="_blank">here</a> (source code) or can be installed as binary package included into repositories of many distributions like Debian, Ubuntu, Gentoo. FreeBSD version is also <a href="http://www.freshports.org/sysutils/dmidecode/" target="_blank">available</a>. Actualy it is reported that dmidecode works well on the following systems:</p>
<ul>
<li>Linux i386</li>
<li>Linux x86_64</li>
<li>Linux ia64</li>
<li>FreeBSD i386</li>
<li>FreeBSD x86_64</li>
<li>NetBSD i386</li>
<li>OpenBSD i386</li>
<li>BeOS i386</li>
<li>Cygwin i386</li>
<li>Solaris x86 (CVS version)</li>
</ul>
<p>In Ubuntu (my favourite distro) just execute the following: <code>sudo aptitude install dmidecode</code> (sample output is <a href="http://www.nongnu.org/dmidecode/sample/dmidecode.txt" target="_blank">here</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/05/10/faq-how-to-retreive-hardware-manufacturer-name-serial-numbers-etc-in-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenBSD: Secure Mail Server with Postfix, MySQL, ClamAV, SpamAssassin, Amavis-new</title>
		<link>http://www.linuxscrew.com/2008/04/17/openbsd-corporate-mail-server-with-postfix-mysql-clamav-sa-amavis-new/</link>
		<comments>http://www.linuxscrew.com/2008/04/17/openbsd-corporate-mail-server-with-postfix-mysql-clamav-sa-amavis-new/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 08:23:51 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[docs]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/04/17/openbsd-corporate-mail-server-with-postfix-mysql-clamav-sa-amavis-new/</guid>
		<description><![CDATA[Few days ago I started configuring corporate mail server that should be deployed on OpenBSD and comprise the following features:

Easy to configure and powerful MTA (Postfix)
Virtual domains and user accounts (this information is stored in MySQL database)
Antispam and antivirus checking for all accounts (spamassassin and clamav via amavis-new)
Secure access to mailboxes through POP3, IMAP and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2008/04/openbsd.thumbnail.jpg" alt="openbsd logo" align="right" height="128" width="117" />Few days ago I started configuring corporate mail server that should be deployed on <a href="http://www.openbsd.org" target="_blank"><strong>OpenBSD</strong></a> and comprise the following features:</p>
<ol>
<li>Easy to configure and powerful MTA (<a href="http://www.postfix.org/" target="_blank"><strong>Postfix</strong></a>)</li>
<li>Virtual domains and user accounts (this information is stored in <strong>MySQL</strong> database)</li>
<li>Antispam and antivirus checking for all accounts (<a href="http://spamassassin.apache.org/" target="_blank"><strong>spamassassin</strong></a> and <a href="http://www.clamav.net/" target="_blank"><strong>clamav</strong></a> via <a href="http://www.ijs.si/software/amavisd/" target="_blank"><strong>amavis-new</strong></a>)</li>
<li>Secure access to mailboxes through POP3, IMAP and HTTP (<a href="http://www.squirrelmail.org" target="_blank"><strong>squirellmail</strong></a>)</li>
<li>Secure SMTP server</li>
<li>Extremal Stability and Security</li>
</ol>
<p>Actually OpenBSD 4.2 was chosen because of it&#8217;s &#8220;security by default&#8221;. Thankfully <a href="mailto:danix@kernel-panic.it">Daniele Mazzocchio</a> from friendly site <a target="_blank" href="http://www.kernel-panic.it">www.kernel-panic.it</a> wrote an <strong><a href="http://www.kernel-panic.it/openbsd/mail/index.html" target="_blank">excellent article</a></strong> about how to build such mail server on this operating system:</p>
<blockquote><p>Offering a reliable and secure email service is probably one of the top priorities of most system administrators; therefore, in the next chapters, we will build a full-featured mail server, based on open-source software and focusing on security. <a href="http://www.kernel-panic.it/openbsd/mail/mail1.html" target="_blank">Read more&#8230;</a></p></blockquote>
<p>The only thing that is not covered by it is mail content filtering with <a href="http://www.courier-mta.org/maildrop/" target="_blank">maildrop</a> and vacation messages that users often ask to set while they are out. Working on it! <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/04/17/openbsd-corporate-mail-server-with-postfix-mysql-clamav-sa-amavis-new/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 good Unix habits to pick up</title>
		<link>http://www.linuxscrew.com/2008/01/17/10-good-unix-cli-habits-to-pick-up/</link>
		<comments>http://www.linuxscrew.com/2008/01/17/10-good-unix-cli-habits-to-pick-up/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 21:59:28 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/01/17/10-good-unix-cli-habits-to-pick-up/</guid>
		<description><![CDATA[as usual provides us with excellent article about good habits which would help Unix administrators to improve their command line usage efficiency and 	break away from bad usage patterns in the process. I was impressed by this article and realized my everyday CLI usage is full of &#8220;bad patterns&#8221;. Nice point to give up them [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2007/09/logo-ibm.gif" title="ibm logo" alt="ibm logo" align="left" height="33" width="78" />as usual provides us with excellent article about good habits which would help Unix administrators to improve their command line usage efficiency and 	break away from bad usage patterns in the process. I was impressed by this article and realized my everyday <a href="http://en.wikipedia.org/wiki/Command_line_interface" target="_blank">CLI</a> usage is full of &#8220;bad patterns&#8221;. Nice point to give up them and pick up good style.</p>
<blockquote><p><img src="http://www.linuxscrew.com/wp-content/uploads/2008/01/unixplat.jpg" title="unix plat" alt="unix plat" align="right" />When you use a system often, you tend to fall into set usage patterns. Sometimes, you do not start the habit of doing things in the best possible way. Sometimes, you even pick up bad practices that lead to clutter and clumsiness. One of the best ways to correct such inadequacies is to conscientiously pick up good habits that counteract them. This article suggests 10 UNIX command-line habits worth picking up &#8212; good habits that help you break many common usage foibles and make you more productive at the command line in the process. Each habit is described in more detail following the list of good habits.</p></blockquote>
<p>Those 10 good habits to adopt are:</p>
<ol>
<li><a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits#one">Make directory trees in a single swipe</a>.</li>
<li><a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits#two">Change the path; do not move the archive</a>.</li>
<li><a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits#three">Combine your commands with control operators</a>.</li>
<li><a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits#four">Quote variables with caution</a>.</li>
<li><a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits#five">Use escape sequences to manage long input</a>.</li>
<li><a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits#six">Group your commands together in a list</a>.</li>
<li><a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits#seven">Use <code>xargs</code> outside of <code>find</code></a>.</li>
<li><a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits#eight">Know when <code>grep</code> should do the counting &#8212; and when it 				should step aside</a>.</li>
<li><a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits#nine">Match certain fields in output, not just lines</a>.</li>
<li><a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits#ten">Stop piping <code>cat</code>s</a>.</li>
</ol>
<p>Full article is <a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/01/17/10-good-unix-cli-habits-to-pick-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

