<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Linux Explore</title>
	<atom:link href="http://linuxexplore.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxexplore.wordpress.com</link>
	<description>Exploring Linux</description>
	<lastBuildDate>Thu, 19 Jan 2012 10:22:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='linuxexplore.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/cc958561792f6a940956798a52d528ca?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Linux Explore</title>
		<link>http://linuxexplore.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://linuxexplore.wordpress.com/osd.xml" title="Linux Explore" />
	<atom:link rel='hub' href='http://linuxexplore.wordpress.com/?pushpress=hub'/>
		<item>
		<title>File encryption/decryption Linux</title>
		<link>http://linuxexplore.wordpress.com/2011/01/20/file-encryptiondecryption-linux/</link>
		<comments>http://linuxexplore.wordpress.com/2011/01/20/file-encryptiondecryption-linux/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 18:12:35 +0000</pubDate>
		<dc:creator>Rahul Panwar</dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[decryption]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[password on tar file]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tar with encryption]]></category>
		<category><![CDATA[tar with password]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=333</guid>
		<description><![CDATA[Openssl is one of the best tools which can be used to encrypt/decrypt files. You can password protect your important data to avoid misuse. To encrypt your files use the command: openssl des3 -salt -in $FILENAME -out ${FILENAME}.des3 To decrypt the file use the command: openssl des3 -d -salt -in ${FILENAME}.des3 -out ${FILENAME} You can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=333&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Openssl is one of the best tools which can be used to encrypt/decrypt files. You can password protect your important data to avoid misuse.</p>
<p>To encrypt your files use the command:</p>
<pre>openssl des3 -salt -in $FILENAME -out ${FILENAME}.des3</pre>
<p>To decrypt the file use the command:</p>
<pre>openssl des3 -d -salt -in ${FILENAME}.des3 -out ${FILENAME}</pre>
<p>You can also use my script ‘tarcrypt.sh’ to encrypt/decrypt files. This script is using tar to compress/decompress with encryption/decryption functionality.</p>
<pre>#!/bin/sh
#
# 'tarcrypt.sh' script can used to compress/decompress the data with encryption.
#
# This script is created &amp; tested by Rahul Panwar.
# WARNING!!! Use it at your own risk.
# Please report the bugs or queries to panwar.rahul@gmail.com

VERSION="Version 1.1.0.1\nCreated by: Rahul Panwar"
PASS=""
PASS_OPTION=""
EXT_OPTION=""
COMP_FILE="encrypted_file"

DATA_FILES_ALL=""

# Usage
usage ()
{
	echo "Usage:"
	echo "	${0##*/} -c \" [  ... \"  [-p ]"
	echo "	${0##*/} -x  [-C ] [-p ]"
	echo "	${0##*/} -h"
	echo "	${0##*/} -v"
	echo "OPTIONS:"
	echo "	-c|--compress	: Compress and encrypt the file(s) or directory(ies)
					for multiple files use double quotes (for example \"file1 file2 dir1\")."
	echo "	-x|--decompress	: Decrypt and uncompress the file"
	echo "	-p|--password	: Password to encrypt/decrypt the file"
	echo "	-C|--extract	: Change directory, to extract the compressed file, default is current directory"
	echo "	-h|--help	: To see this help"
	echo "	-v|--version	: Check the version"
}
[ $# = 0 ] &amp;&amp; usage &amp;&amp; exit 1

# to encrypt files using openssl
encrypt_file()
{
	FNAME=$1

	#openssl des3 -salt -in "$FNAME" -out "$FNAME.des3"
	openssl des3 -salt -out "$FNAME" ${PASS_OPTION}
}

# to decrypt the files using openssl
decrypt_file()
{
	FNAME=$1

	#openssl des3 -d -salt -in "$FNAME" -out "${FNAME%.[^.]*}"
	openssl des3 -d -salt -in "$FNAME" ${PASS_OPTION}
}

# compress and encrypt the files
en_comp()
{
	tar -czp ${DATA_FILES} | encrypt_file ${COMP_FILE}
}

# decrypt and uncompress the files
de_comp()
{
	decrypt_file ${COMP_FILE} | tar ${EXT_OPTION} -xz
}

# main function
main_function()
{
	compress=""
	decompress=""
	extract=""
	password=""
	while test "$1" != "" ; do
		OPT=$1
		OPT_VAL1=$2
		OPT_VAL2=$3
		case "$OPT" in
			--compress|-c)
				DATA_FILES_ALL="${OPT_VAL1}"
				[ ! "${OPT_VAL2}" ] &amp;&amp; echo -e "No encrypt filename, using default name: ${COMP_FILE}"
				COMP_FILE=${OPT_VAL2:-$COMP_FILE}
				compress=1
				shift
				[ "$OPT_VAL2" ] &amp;&amp; shift
			;;
			--decompress|-x)
				COMP_FILE=${OPT_VAL1:-$COMP_FILE}
				decompress=1
				shift
			;;
			--password|-p)
				PASS=${OPT_VAL1}
				[ "$PASS" ] &amp;&amp; password=1 &amp;&amp; PASS_OPTION="-pass pass:${PASS}"
				shift
			;;
			--extract|-C)
				[ ! -d "$OPT_VAL1" ] &amp;&amp; echo -e "Extract directory not exists" &amp;&amp; exit 1
				EXT_OPTION="-C ${OPT_VAL1:-$PWD}"
				extract=1
				shift
			;;
			--help|-h)
				usage
				exit 0
			;;
			--version|-v)
				echo -e "${VERSION}"
				exit 0
			;;
			-*)
				echo "Error: no such option $OPT"
				usage
				exit 1
			;;
			*)
				echo -e "Error: invalid option $OPT"
				usage
				exit 1
		esac
		shift
	done

	if [ "$compress" ] &amp;&amp; [ "$decompress" ]; then
		echo -e "\n-c and -x can't be used simultaneously\n" &amp;&amp; usage &amp;&amp; exit 1
	elif [ "$extract" ] &amp;&amp; [ "$compress" ]; then
		echo -e "\n-C can only use with -x option\n" &amp;&amp; usage &amp;&amp; exit 1
	fi
}

main_function "$@"
if [ "$compress" ]; then
	for FILES in ${DATA_FILES_ALL}; do
		[ -e "${FILES}" ] &amp;&amp; DATA_FILES="${DATA_FILES} ${FILES}"
	done
	if [ ! "${DATA_FILES}" ]; then
		echo -e "No file(s) found to compress" &amp;&amp; exit 2
	fi
	echo "==&gt; compressing"
	en_comp &amp;&gt;/dev/null &amp;&amp; echo "success" || echo "failure"
elif [ "$decompress" ]; then
	[ ! -e "${COMP_FILE}" ] &amp;&amp; echo -e "No file to decrypt" &amp;&amp; exit 2
	echo "==&gt; decompressing"
	de_comp &amp;&gt;/dev/null &amp;&amp; echo "success" || echo "failure"
fi</pre>
<p>If you found any bug in the script, please write your comment. I like to improve this, so suggestions are most welcome.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxexplore.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxexplore.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxexplore.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxexplore.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxexplore.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxexplore.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxexplore.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxexplore.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxexplore.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxexplore.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxexplore.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxexplore.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxexplore.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxexplore.wordpress.com/333/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=333&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxexplore.wordpress.com/2011/01/20/file-encryptiondecryption-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/b3e9374fa6774c441f6af6e01df03457?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rahul Panwar</media:title>
		</media:content>
	</item>
		<item>
		<title>2010 in review</title>
		<link>http://linuxexplore.wordpress.com/2011/01/03/2010-in-review/</link>
		<comments>http://linuxexplore.wordpress.com/2011/01/03/2010-in-review/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 05:39:28 +0000</pubDate>
		<dc:creator>Rahul Panwar</dc:creator>
				<category><![CDATA[Introduction]]></category>
		<category><![CDATA[Linux l2tp xl2tpd l2tpd rp-l2tpd wireshark vpn]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=327</guid>
		<description><![CDATA[The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health: The Blog-Health-o-Meter™ reads Fresher than ever. Crunchy numbers A Boeing 747-400 passenger jet can hold 416 passengers. This blog was viewed about 11,000 times in 2010. That&#8217;s about 26 full [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=327&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health:</p>
<p><img style="border:1px solid #ddd;background:#f5f5f5;padding:20px;" src="http://s0.wp.com/i/annual-recap/meter-healthy3.gif" alt="Healthy blog!" width="250" height="183" /></p>
<p>The <em>Blog-Health-o-Meter™</em> reads Fresher than ever.</p>
<h2>Crunchy numbers</h2>
<p><a href="http://linuxexplore.files.wordpress.com/2009/07/l2tp-vpn.jpg"><img style="max-height:230px;float:right;border:1px solid #ddd;background:#fff;margin:0 0 1em 1em;padding:6px;" src="http://linuxexplore.files.wordpress.com/2009/07/l2tp-vpn.jpg?w=288" alt="Featured image" /></a></p>
<p>A Boeing 747-400 passenger jet can hold 416 passengers.  This blog was viewed about <strong>11,000</strong> times in 2010.  That&#8217;s about 26 full 747s.</p>
<p>&nbsp;</p>
<p>In 2010, there were <strong>8</strong> new posts, growing the total archive of this blog to 17 posts. There were <strong>9</strong> pictures uploaded, taking up a total of 436kb. That&#8217;s about a picture per month.</p>
<p>The busiest day of the year was March 1st with <strong>110</strong> views. The most popular post that day was <a style="color:#08c;" href="http://linuxexplore.wordpress.com/how-tos/l2tp-vpn-using-xl2tpd/">L2TP VPN using xl2tpd</a>.</p>
<h2>Where did they come from?</h2>
<p>The top referring sites in 2010 were <strong>ifreestores.com</strong>, <strong>goodsearch.com</strong>, <strong>secureyourlinux.blogspot.com</strong>, <strong>en.wordpress.com</strong>, and <strong>google.com</strong>.</p>
<p>Some visitors came searching, mostly for <strong>xl2tpd howto</strong>, <strong>centos xl2tpd</strong>, <strong>xl2tpd centos</strong>, <strong>xl2tpd</strong>, and <strong>dropbear sftp</strong>.</p>
<h2>Attractions in 2010</h2>
<p>These are the posts and pages that got the most views in 2010.</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">1</div>
<p><a style="margin-right:10px;" href="http://linuxexplore.wordpress.com/how-tos/l2tp-vpn-using-xl2tpd/">L2TP VPN using xl2tpd</a> <span style="color:#999;font-size:8pt;">July 2009</span><br />
4 comments</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">2</div>
<p><a style="margin-right:10px;" href="http://linuxexplore.wordpress.com/how-tos/l2tp-vpn-using-rp-l2tpd/">L2TP VPN using rp-l2tpd</a> <span style="color:#999;font-size:8pt;">July 2009</span><br />
13 comments</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">3</div>
<p><a style="margin-right:10px;" href="http://linuxexplore.wordpress.com/2009/07/12/l2tp-vpn-without-ipsec-how-to/">L2TP VPN using xl2tpd</a> <span style="color:#999;font-size:8pt;">July 2009</span><br />
1 Like on WordPress.com,</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">4</div>
<p><a style="margin-right:10px;" href="http://linuxexplore.wordpress.com/how-tos/sftp-secure-file-transfer-protocol-with-dropbear/">SFTP (Secure File Transfer Protocol) With Dropbear</a> <span style="color:#999;font-size:8pt;">September 2009</span><br />
6 comments</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">5</div>
<p><a style="margin-right:10px;" href="http://linuxexplore.wordpress.com/2010/05/30/remote-packet-capture-using-wireshark-tcpdump/">Remote packet capture using WireShark &amp; tcpdump</a> <span style="color:#999;font-size:8pt;">May 2010</span><br />
1 Like on WordPress.com,</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxexplore.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxexplore.wordpress.com/327/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxexplore.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxexplore.wordpress.com/327/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxexplore.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxexplore.wordpress.com/327/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxexplore.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxexplore.wordpress.com/327/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxexplore.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxexplore.wordpress.com/327/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxexplore.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxexplore.wordpress.com/327/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxexplore.wordpress.com/327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxexplore.wordpress.com/327/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=327&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxexplore.wordpress.com/2011/01/03/2010-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/b3e9374fa6774c441f6af6e01df03457?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rahul Panwar</media:title>
		</media:content>

		<media:content url="http://s0.wp.com/i/annual-recap/meter-healthy3.gif" medium="image">
			<media:title type="html">Healthy blog!</media:title>
		</media:content>

		<media:content url="http://linuxexplore.files.wordpress.com/2009/07/l2tp-vpn.jpg?w=288" medium="image">
			<media:title type="html">Featured image</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux Explore Stats</title>
		<link>http://linuxexplore.wordpress.com/2010/10/29/linux-explore-stats/</link>
		<comments>http://linuxexplore.wordpress.com/2010/10/29/linux-explore-stats/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 17:50:46 +0000</pubDate>
		<dc:creator>Rahul Panwar</dc:creator>
				<category><![CDATA[Introduction]]></category>
		<category><![CDATA[Explore]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Explore]]></category>
		<category><![CDATA[Stats]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=316</guid>
		<description><![CDATA[Linux Explore stats month March 2011<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=316&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><a href="http://linuxexplore.files.wordpress.com/2010/10/10-04-2011-pm-01-57-28.png"><img class="aligncenter size-full wp-image-343" title="Site Stats 10-04-2011" src="http://linuxexplore.files.wordpress.com/2010/10/10-04-2011-pm-01-57-28.png?w=600&#038;h=193" alt="" width="600" height="193" /></a></p>
<p style="text-align:center;">Linux Explore stats month March 2011</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxexplore.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxexplore.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxexplore.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxexplore.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxexplore.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxexplore.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxexplore.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxexplore.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxexplore.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxexplore.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxexplore.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxexplore.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxexplore.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxexplore.wordpress.com/316/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=316&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxexplore.wordpress.com/2010/10/29/linux-explore-stats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/b3e9374fa6774c441f6af6e01df03457?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rahul Panwar</media:title>
		</media:content>

		<media:content url="http://linuxexplore.files.wordpress.com/2010/10/10-04-2011-pm-01-57-28.png" medium="image">
			<media:title type="html">Site Stats 10-04-2011</media:title>
		</media:content>
	</item>
		<item>
		<title>How to start shell script writing</title>
		<link>http://linuxexplore.wordpress.com/2010/10/06/how-to-start-shell-script-writing/</link>
		<comments>http://linuxexplore.wordpress.com/2010/10/06/how-to-start-shell-script-writing/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 19:33:48 +0000</pubDate>
		<dc:creator>Rahul Panwar</dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[/bin/sh]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[shellscript]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=310</guid>
		<description><![CDATA[This is actually, I want to share, how I learned the shell scripting. It may be helpful for beginners. I am writing it step by step so that it will easy to understand: STEP 1: Do your task manually &#38; prepare the steps. If you know the basic Linux commands, it will help you to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=310&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is actually, I want to share, how I learned the shell scripting.  It may be helpful for beginners. I am writing it step by step so that  it will easy to understand:</p>
<p><strong>STEP 1: Do your task manually &amp; prepare the steps.</strong></p>
<p>If you know the basic Linux commands, it will help you to write a  shell script. I am not writing the basic Linux commands here, you can  see check here <a href="http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html">http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html</a></p>
<p><a class="alignleft" href="http://linuxexplore.wordpress.com/how-tos/how-to-start-shell-script-writing" target="_self">View full topic</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxexplore.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxexplore.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxexplore.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxexplore.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxexplore.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxexplore.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxexplore.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxexplore.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxexplore.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxexplore.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxexplore.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxexplore.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxexplore.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxexplore.wordpress.com/310/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=310&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxexplore.wordpress.com/2010/10/06/how-to-start-shell-script-writing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/b3e9374fa6774c441f6af6e01df03457?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rahul Panwar</media:title>
		</media:content>
	</item>
		<item>
		<title>Yum A Package Management Tool</title>
		<link>http://linuxexplore.wordpress.com/2010/10/03/yum-a-package-management-tool/</link>
		<comments>http://linuxexplore.wordpress.com/2010/10/03/yum-a-package-management-tool/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 16:07:50 +0000</pubDate>
		<dc:creator>Rahul Panwar</dc:creator>
				<category><![CDATA[Yum a package management tool]]></category>
		<category><![CDATA[package-management]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=281</guid>
		<description><![CDATA[yum is a package management tool, used to install, uninstall or update the Linux (CentOS, RHEL, Fedora etc.) packages. You can use yum with root privilege only. To install a package: yum install packagename To update a package, if already install or to install a package: yum update packagename To reinstall a installed package: yum [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=281&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>yum is a package management tool, used to install, uninstall or update the Linux (CentOS, RHEL, Fedora etc.) packages. You can use yum with <strong>root</strong> privilege only.</p>
<p>To install a package:</p>
<blockquote><p>yum install packagename</p></blockquote>
<p>To update a package, if already install or to install a package:</p>
<blockquote><p>yum update packagename</p></blockquote>
<p>To reinstall a installed package:</p>
<blockquote><p>yum reinstall packagename</p></blockquote>
<p>To remove a installed package:</p>
<blockquote><p>yum remove packagename</p></blockquote>
<p>To see the list of package groups:</p>
<blockquote><p>yum grouplist</p></blockquote>
<p>To install all the packages of a group:</p>
<blockquote><p>yum groupinstall packagegroupname</p></blockquote>
<p>To update all the packages of a group:</p>
<blockquote><p>yum groupupdate packagegroupname</p></blockquote>
<p>To remove all the packages of a group:</p>
<blockquote><p>yum groupremove packagegroupname</p></blockquote>
<p>If you want to exclude some packages from group to install or update or remove, use<strong> &#8220;&#8211;exclude&#8221;</strong> option:</p>
<blockquote><p>yum groupinstall packagegroupname &#8211;exclude=excludepackagename</p></blockquote>
<p>To clean the cache of packages database:</p>
<blockquote>
<blockquote><p>yum clean all</p></blockquote>
</blockquote>
<p>Now some little tricky commands.</p>
<p>To disable all the repository &amp; enable the given repositories only &amp; then again same yum commands:</p>
<blockquote><p>yum &#8211;disablerepo=\* &#8211;enablerepo=myreponame1,myreponame2 install packagename</p></blockquote>
<p>You can get the reponame from the repo files inside the <strong>/etc/yum.repo.d</strong> directory. For example, the CentOS.repo file&#8217;s content is showing the reponame inside the square brackets &#8220;<strong>[ ]</strong>&#8221; as <strong>base </strong>&amp; <strong>update</strong>. To select all the repo,&#8221;<strong>\*</strong>&#8221; is used.</p>
<blockquote><p>[base]<br />
name=CentOS-$releasever &#8211; Base<br />
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=os<br />
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/<br />
gpgcheck=1<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5</p>
<p>#released updates<br />
[updates]<br />
name=CentOS-$releasever &#8211; Updates<br />
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=updates<br />
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/<br />
gpgcheck=1<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5</p></blockquote>
<p><strong>&#8220;yum clean all&#8221;</strong> command does not clean the cache of disabled repositories, clean the cache by enabling all the repositories, remove all the cache:</p>
<blockquote><p>yum &#8211;enablerepo=\* clean all</p></blockquote>
<p>you can also remove the directory /var/cache/yum/* to clean all the cache of repositories.</p>
<p>There are so many other commands &amp; combination in yum. If you like to share, please write as a comment.</p>
<p><strong>If you like this post, don&#8217;t forget to share it with others&#8230;&#8230;&#8230;&#8230;..</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxexplore.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxexplore.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxexplore.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxexplore.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxexplore.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxexplore.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxexplore.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxexplore.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxexplore.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxexplore.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxexplore.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxexplore.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxexplore.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxexplore.wordpress.com/281/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=281&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxexplore.wordpress.com/2010/10/03/yum-a-package-management-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/b3e9374fa6774c441f6af6e01df03457?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rahul Panwar</media:title>
		</media:content>
	</item>
		<item>
		<title>Configure syslog to print the Security violation alarm on user terminal (via Linux Explore)</title>
		<link>http://linuxexplore.wordpress.com/2010/06/20/configure-syslog-to-print-the-security-violation-alarm-on-user-terminal-via-linux-explore/</link>
		<comments>http://linuxexplore.wordpress.com/2010/06/20/configure-syslog-to-print-the-security-violation-alarm-on-user-terminal-via-linux-explore/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 17:47:28 +0000</pubDate>
		<dc:creator>Rahul Panwar</dc:creator>
				<category><![CDATA[Message on Linux terminal]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/2010/06/20/configure-syslog-to-print-the-security-violation-alarm-on-user-terminal-via-linux-explore/</guid>
		<description><![CDATA[Open the /etc/rsyslog.conf file for syslog configuration in fedora Linux (some linux like CentOS has /etc/syslog.conf). It will show the something similar as given below: # Log all kernel messages to the console. # Logging much else clutters up the screen. #kern.*                                                 /dev/console # Log anything (except mail) of level info or higher. # Don&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=275&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote style="overflow:hidden;"><p><a title="Visit Post" href="http://linuxexplore.wordpress.com/?p=161"></a> Open the /etc/rsyslog.conf file for syslog configuration in fedora Linux (some linux like CentOS has /etc/syslog.conf). It will show the something similar as given below: # Log all kernel messages to the console. # Logging much else clutters up the screen. #kern.*                                                 /dev/console # Log anything (except mail) of level info or higher. # Don&#8217;t log private authentication messages! *.info;mail.none;authpriv … <a title="Visit Post" href="http://linuxexplore.wordpress.com/?p=161">Read More</a></p></blockquote>
<p>via <a title="Linux Explore" href="http://linuxexplore.wordpress.com/?p=161">Linux Explore</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxexplore.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxexplore.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxexplore.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxexplore.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxexplore.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxexplore.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxexplore.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxexplore.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxexplore.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxexplore.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxexplore.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxexplore.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxexplore.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxexplore.wordpress.com/275/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=275&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxexplore.wordpress.com/2010/06/20/configure-syslog-to-print-the-security-violation-alarm-on-user-terminal-via-linux-explore/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/b3e9374fa6774c441f6af6e01df03457?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rahul Panwar</media:title>
		</media:content>
	</item>
		<item>
		<title>Remote packet capture using WireShark &amp; tcpdump</title>
		<link>http://linuxexplore.wordpress.com/2010/05/30/remote-packet-capture-using-wireshark-tcpdump/</link>
		<comments>http://linuxexplore.wordpress.com/2010/05/30/remote-packet-capture-using-wireshark-tcpdump/#comments</comments>
		<pubDate>Sat, 29 May 2010 19:31:42 +0000</pubDate>
		<dc:creator>Rahul Panwar</dc:creator>
				<category><![CDATA[Remote packet capture using WireShark & tcpdump]]></category>
		<category><![CDATA[Linux Administrator]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[mkfifo]]></category>
		<category><![CDATA[remote packet capture]]></category>
		<category><![CDATA[rpcap]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshd]]></category>
		<category><![CDATA[tcpdump]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=234</guid>
		<description><![CDATA[1. First step is to create a special FIFO file using mkfifo command, where you want to see the packet capture using WireShark. This file will use to read &#38; write simultaneously using WireShark &#38; tcpdump. mkfifo /tmp/packet_capture 2. Second give the following ssh command on your terminal, to start the tcpdump on remote PC. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=234&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. First step is to create a special FIFO file using mkfifo command, where you want to see the packet capture using WireShark. This file will use to read &amp; write simultaneously using WireShark &amp; tcpdump.</p>
<pre>mkfifo /tmp/packet_capture</pre>
<p>2. Second give the following ssh command on your terminal, to start the tcpdump on remote PC.</p>
<pre>ssh hostname_or_ip_of_remote_pc "tcpdump -s 0 -U -n -w - -i eth0 not port 22" \
 &gt; /tmp/packet_capture</pre>
<p>3. Third &amp; last step, give the following command to start the WireShark on your PC, which will read packets from the special FIFO file &#8216;/tmp/packet_capture&#8217; at runtime.</p>
<pre>wireshark -k -i /tmp/packet_capture</pre>
<p>After giving the above command all the packets of remote pc&#8217;s eth0 will be visible on WireShark.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxexplore.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxexplore.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxexplore.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxexplore.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxexplore.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxexplore.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxexplore.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxexplore.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxexplore.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxexplore.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxexplore.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxexplore.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxexplore.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxexplore.wordpress.com/234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=234&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxexplore.wordpress.com/2010/05/30/remote-packet-capture-using-wireshark-tcpdump/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/b3e9374fa6774c441f6af6e01df03457?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rahul Panwar</media:title>
		</media:content>
	</item>
		<item>
		<title>Message on Linux terminal</title>
		<link>http://linuxexplore.wordpress.com/2010/05/22/message-on-linux-terminal/</link>
		<comments>http://linuxexplore.wordpress.com/2010/05/22/message-on-linux-terminal/#comments</comments>
		<pubDate>Fri, 21 May 2010 19:51:36 +0000</pubDate>
		<dc:creator>Rahul Panwar</dc:creator>
				<category><![CDATA[Message on Linux terminal]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[chat]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[Linux hacks]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[notify-send]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[wall]]></category>
		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=235</guid>
		<description><![CDATA[Few interesting commands which can be used to send the messages on other terminal or network: 1. wall: This command is used to broadcast a message on all terminals. For e.g.: wall "Hello, message testing" or cat msg.txt &#124; wall 2. write: This command is used to send message to a user &#38; selected terminal [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=235&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Few interesting commands which can be used to send the messages on other terminal or network:</p>
<p>1. wall:</p>
<p>This command is used to broadcast a message on all terminals.</p>
<p>For e.g.:</p>
<pre>wall "Hello, message testing"
</pre>
<p>or</p>
<pre>cat msg.txt | wall</pre>
<p>2. write:</p>
<p>This command is used to send message to a user &amp; selected terminal of a user.</p>
<p>For e.g.:</p>
<pre>echo "Hello, message testing" |&nbsp;write rahul
</pre>
<p>or</p>
<pre>echo "Hello, message testing" |&nbsp;write rahul pts/0</pre>
<p>or</p>
<pre>cat msg.txt | write rahul pts/0</pre>
<p>or</p>
<pre>write rahul pts/0 &lt;&lt; EOF
Hello, message testing
EOF</pre>
<p>3. echo:</p>
<p>echo command can also used to send messages on selected terminal.</p>
<p>For e.g.:</p>
<pre>echo "Hello, message testing" &gt; /dev/pts/0</pre>
<p>4. cat:</p>
<p>cat can also write on a selected terminal similar to echo command.</p>
<p>For e.g.:</p>
<pre>cat /dev/pts/0
Hello, message testing
CTRL+D</pre>
<p>5. notify-send:</p>
<p>It can send the desktop notifications.</p>
<p>For e.g.: From gnome terminal,</p>
<pre>notify-send "Hello, message testing"</pre>
<p>From any terminal</p>
<pre>export DISPLAY=:0 &amp;&amp; notify-send "Hello, message testing"</pre>
<p>From SSH,</p>
<pre>ssh &lt;host&gt; export DISPLAY=:0 &amp;&amp; notify-send "Hello, message testing"</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxexplore.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxexplore.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxexplore.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxexplore.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxexplore.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxexplore.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxexplore.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxexplore.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxexplore.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxexplore.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxexplore.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxexplore.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxexplore.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxexplore.wordpress.com/235/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=235&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxexplore.wordpress.com/2010/05/22/message-on-linux-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>28.635308 77.224960</georss:point>
		<geo:lat>28.635308</geo:lat>
		<geo:long>77.224960</geo:long>
		<media:content url="http://1.gravatar.com/avatar/b3e9374fa6774c441f6af6e01df03457?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rahul Panwar</media:title>
		</media:content>
	</item>
		<item>
		<title>Umount a busy partition</title>
		<link>http://linuxexplore.wordpress.com/2010/04/24/fuser/</link>
		<comments>http://linuxexplore.wordpress.com/2010/04/24/fuser/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 18:29:49 +0000</pubDate>
		<dc:creator>Rahul Panwar</dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[fuser]]></category>
		<category><![CDATA[umount]]></category>
		<category><![CDATA[busy partition]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=212</guid>
		<description><![CDATA[Check &#38; close the applications which are using any mounted partition or folder If you are using a separate partition for your applications, you need to mount that partition to a folder. Then only you can store &#38; run the application. But if you want to umount that partition again, first you need to close [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=212&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Check &amp; close the applications which are using any mounted partition or folder</h2>
<p>If you are using a separate partition for your applications, you need to mount that partition to a folder. Then only you can store &amp; run the application. But if you want to umount that partition again, first you need to close all the applications which are using that mounted partition or folder.</p>
<p>To check all the application running from that partition or folder, just issue a simple command:</p>
<pre>fuser -mv</pre>
<p>or</p>
<pre>fuser -mv</pre>
<p>For example:</p>
<pre>fuser -mv /dev/sda1</pre>
<p>or</p>
<pre>fuser -mv /usr/local/bin</pre>
<p>The above commands can show the output as follows:</p>
<pre style="padding-left:150px;">USER        PID ACCESS COMMAND</pre>
<pre>/dev/sda1:         root       2467 .rce. mingetty</pre>
<pre style="padding-left:150px;">root       2476 .rce. mingetty</pre>
<pre style="padding-left:150px;">root       2502 .rc.. kauditd</pre>
<pre style="padding-left:150px;">root       2506 .rce. sshd</pre>
<pre style="padding-left:150px;">root       2509 .rce. bash</pre>
<p>You can also use the following command:</p>
<pre>fuser -mv /dev/sda1 &gt; /tmp/sda1.pids</pre>
<p>It will store the PIDs of all application running from &#8216;/dev/sda1&#8242; partition.</p>
<p>Now you can simply issue the &#8216;kill&#8217; command to close all the applications forcefully.</p>
<pre>kill -9 `cat /tmp/sda1.pids`</pre>
<p>It will free the partition /dev/sda1 to umount.</p>
<p><strong><span style="color:#ff0000;"> WARNING!!!</span></strong></p>
<p>Don’t use this method on active partitions, it can cause the OS failure. But after reboot it may be recovered.<strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxexplore.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxexplore.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxexplore.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxexplore.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxexplore.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxexplore.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxexplore.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxexplore.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxexplore.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxexplore.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxexplore.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxexplore.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxexplore.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxexplore.wordpress.com/212/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=212&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxexplore.wordpress.com/2010/04/24/fuser/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b3e9374fa6774c441f6af6e01df03457?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rahul Panwar</media:title>
		</media:content>
	</item>
		<item>
		<title>PAM with Radius Authentication</title>
		<link>http://linuxexplore.wordpress.com/2009/09/28/pam-with-radius-authentication/</link>
		<comments>http://linuxexplore.wordpress.com/2009/09/28/pam-with-radius-authentication/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 08:57:35 +0000</pubDate>
		<dc:creator>Rahul Panwar</dc:creator>
				<category><![CDATA[PAM with Radius Authentication]]></category>
		<category><![CDATA[Freeradius]]></category>
		<category><![CDATA[PAM]]></category>
		<category><![CDATA[pam radius]]></category>
		<category><![CDATA[pam_radius]]></category>
		<category><![CDATA[pam_radius_auth]]></category>
		<category><![CDATA[raddb]]></category>
		<category><![CDATA[Radius]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=186</guid>
		<description><![CDATA[PAM Radius Module allows any PAM-capable machine to become a RADIUS client for authentication and accounting requests. The actual authentication will be performed by a RADIUS server. The freeradius can be used for radius server. Download the PAM Radius Module To download the PAM Radius module, click here. Installing &#38; configuring PAM Radius Module To [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=186&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PAM Radius Module allows any PAM-capable machine to become a RADIUS client for authentication and accounting requests. The actual authentication will be performed by a RADIUS server. The <a href="http://freeradius.org/" target="_blank">freeradius</a> can be used for radius server.</p>
<h1>Download the PAM Radius Module</h1>
<p>To download the PAM Radius module, click <a href="ftp://ftp.freeradius.org/pub/radius/pam_radius-1.3.17.tar.gz">here</a>.</p>
<h1>Installing &amp; configuring PAM Radius Module</h1>
<p>To install PAM radius module, give the following commands:</p>
<p>[root@rahul-pc]# tar -xvf pam_radius-1.3.17.tar.gz</p>
<p>[root@rahul-pc]# cd pam_radius-1.3.17</p>
<p>[root@rahul-pc]# make</p>
<p><a href="http://linuxexplore.wordpress.com/how-tos/pam-with-radius-authentication/" target="_self">Read full topic&#8230;</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxexplore.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxexplore.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxexplore.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxexplore.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxexplore.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxexplore.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxexplore.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxexplore.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxexplore.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxexplore.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxexplore.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxexplore.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxexplore.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxexplore.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxexplore.wordpress.com&amp;blog=8258276&amp;post=186&amp;subd=linuxexplore&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxexplore.wordpress.com/2009/09/28/pam-with-radius-authentication/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b3e9374fa6774c441f6af6e01df03457?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rahul Panwar</media:title>
		</media:content>
	</item>
	</channel>
</rss>
