<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.initq.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.initq.com/index.php?title=Special:NewPages&amp;feed=atom&amp;hideliu=&amp;hidepatrolled=&amp;hidebots=&amp;hideredirs=1&amp;limit=50&amp;namespace=0</id>
		<title>Initq - New pages [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.initq.com/index.php?title=Special:NewPages&amp;feed=atom&amp;hideliu=&amp;hidepatrolled=&amp;hidebots=&amp;hideredirs=1&amp;limit=50&amp;namespace=0"/>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Special:NewPages"/>
		<updated>2012-05-20T22:08:20Z</updated>
		<subtitle>From Initq</subtitle>
		<generator>MediaWiki 1.19.0</generator>

	<entry>
		<id>http://www.initq.com/index.php/SMS_Email_Address_List</id>
		<title>SMS Email Address List</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/SMS_Email_Address_List"/>
				<updated>2012-05-17T21:53:14Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This site aims to be the most complete and up to date list of email addresses that can be used to send text messages to phones. Hence email text messages or email-to-sms. This is the most simple way of sending text messages from the internet or from your computer to phones. These email addresses essentially act as a direct link to a carriers SMS gateway. Most other lists of carrier's text messaging email addresses are out of date and obsolete in 2007. The biggest change being Cingular consolidating everything to a new AT&amp;amp;T email address for their wireless subscribers. This list can be used to help developers develop free text messaging solutions and services. The list includes US, Canadian and international mobile carriers for worldwide texting. &lt;br /&gt;
&lt;br /&gt;
=US &amp;amp; Canadian Carriers=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==3 River Wireless==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@sms.3rivers.net&lt;br /&gt;
&lt;br /&gt;
==ACS Wireless==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@paging.acswireless.com&lt;br /&gt;
&lt;br /&gt;
==Alltel==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@message.alltel.com&lt;br /&gt;
&lt;br /&gt;
==AT&amp;amp;T==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@txt.att.net&lt;br /&gt;
&lt;br /&gt;
==Bell Canada==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@txt.bellmobility.ca&lt;br /&gt;
&lt;br /&gt;
==Bell Canada==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@bellmobility.ca&lt;br /&gt;
&lt;br /&gt;
==Bell Mobility (Canada)==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@txt.bell.ca&lt;br /&gt;
&lt;br /&gt;
==Bell Mobility==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@txt.bellmobility.ca&lt;br /&gt;
&lt;br /&gt;
==Blue Sky Frog==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@blueskyfrog.com&lt;br /&gt;
&lt;br /&gt;
Bluegrass Cellular&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@sms.bluecell.com&lt;br /&gt;
&lt;br /&gt;
Boost Mobile&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@myboostmobile.com&lt;br /&gt;
&lt;br /&gt;
BPL Mobile&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@bplmobile.com&lt;br /&gt;
&lt;br /&gt;
Carolina West Wireless&lt;br /&gt;
&lt;br /&gt;
    10digit10digitnumber@cwwsms.com&lt;br /&gt;
&lt;br /&gt;
Cellular One&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@mobile.celloneusa.com&lt;br /&gt;
&lt;br /&gt;
Cellular South&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@csouth1.com&lt;br /&gt;
&lt;br /&gt;
Centennial Wireless&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@cwemail.com&lt;br /&gt;
&lt;br /&gt;
CenturyTel&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@messaging.centurytel.net&lt;br /&gt;
&lt;br /&gt;
Cingular (Now AT&amp;amp;T)&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@txt.att.net&lt;br /&gt;
&lt;br /&gt;
Clearnet&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@msg.clearnet.com&lt;br /&gt;
&lt;br /&gt;
==Comcast==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@comcastpcs.textmsg.com&lt;br /&gt;
&lt;br /&gt;
Corr Wireless Communications&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@corrwireless.net&lt;br /&gt;
&lt;br /&gt;
Dobson&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@mobile.dobson.net&lt;br /&gt;
&lt;br /&gt;
Edge Wireless&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@sms.edgewireless.com&lt;br /&gt;
&lt;br /&gt;
Fido&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@fido.ca&lt;br /&gt;
&lt;br /&gt;
Golden Telecom&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@sms.goldentele.com&lt;br /&gt;
&lt;br /&gt;
Helio&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@messaging.sprintpcs.com&lt;br /&gt;
&lt;br /&gt;
Houston Cellular&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@text.houstoncellular.net&lt;br /&gt;
&lt;br /&gt;
Idea Cellular&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@ideacellular.net&lt;br /&gt;
&lt;br /&gt;
Illinois Valley Cellular&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@ivctext.com&lt;br /&gt;
&lt;br /&gt;
Inland Cellular Telephone&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@inlandlink.com&lt;br /&gt;
&lt;br /&gt;
MCI&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@pagemci.com&lt;br /&gt;
&lt;br /&gt;
Metrocall&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@page.metrocall.com&lt;br /&gt;
&lt;br /&gt;
Metrocall 2-way&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@my2way.com&lt;br /&gt;
&lt;br /&gt;
Metro PCS&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@mymetropcs.com&lt;br /&gt;
&lt;br /&gt;
Microcell&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@fido.ca&lt;br /&gt;
&lt;br /&gt;
Midwest Wireless&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@clearlydigital.com&lt;br /&gt;
&lt;br /&gt;
Mobilcomm&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@mobilecomm.net&lt;br /&gt;
&lt;br /&gt;
MTS&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@text.mtsmobility.com&lt;br /&gt;
&lt;br /&gt;
Nextel&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@messaging.nextel.com&lt;br /&gt;
&lt;br /&gt;
OnlineBeep&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@onlinebeep.net&lt;br /&gt;
&lt;br /&gt;
PCS One&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@pcsone.net&lt;br /&gt;
&lt;br /&gt;
President's Choice&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@txt.bell.ca&lt;br /&gt;
&lt;br /&gt;
Public Service Cellular&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@sms.pscel.com&lt;br /&gt;
&lt;br /&gt;
==Qwest==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@qwestmp.com&lt;br /&gt;
&lt;br /&gt;
Rogers AT&amp;amp;T Wireless&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@pcs.rogers.com&lt;br /&gt;
&lt;br /&gt;
Rogers Canada&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@pcs.rogers.com&lt;br /&gt;
&lt;br /&gt;
Satellink&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber.pageme@satellink.net&lt;br /&gt;
&lt;br /&gt;
==Southwestern Bell==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@email.swbw.com&lt;br /&gt;
&lt;br /&gt;
==Sprint==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@messaging.sprintpcs.com&lt;br /&gt;
&lt;br /&gt;
Sumcom&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@tms.suncom.com&lt;br /&gt;
&lt;br /&gt;
Surewest Communicaitons&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@mobile.surewest.com&lt;br /&gt;
&lt;br /&gt;
==T-Mobile==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@tmomail.net&lt;br /&gt;
&lt;br /&gt;
Telus&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@msg.telus.com&lt;br /&gt;
&lt;br /&gt;
Tracfone&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@txt.att.net&lt;br /&gt;
&lt;br /&gt;
Triton&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@tms.suncom.com&lt;br /&gt;
&lt;br /&gt;
Unicel&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@utext.com&lt;br /&gt;
&lt;br /&gt;
US Cellular&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@email.uscc.net&lt;br /&gt;
&lt;br /&gt;
Solo Mobile&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@txt.bell.ca&lt;br /&gt;
&lt;br /&gt;
==Sprint==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@messaging.sprintpcs.com&lt;br /&gt;
&lt;br /&gt;
Sumcom&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@tms.suncom.com&lt;br /&gt;
&lt;br /&gt;
Surewest Communicaitons&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@mobile.surewest.com&lt;br /&gt;
&lt;br /&gt;
==T-Mobile==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@tmomail.net&lt;br /&gt;
&lt;br /&gt;
Telus&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@msg.telus.com&lt;br /&gt;
&lt;br /&gt;
Triton&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@tms.suncom.com&lt;br /&gt;
&lt;br /&gt;
Unicel&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@utext.com&lt;br /&gt;
&lt;br /&gt;
US Cellular&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@email.uscc.net&lt;br /&gt;
&lt;br /&gt;
US West&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@uswestdatamail.com&lt;br /&gt;
&lt;br /&gt;
==Verizon==&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@vtext.com&lt;br /&gt;
&lt;br /&gt;
Virgin Mobile&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@vmobl.com&lt;br /&gt;
&lt;br /&gt;
Virgin Mobile Canada&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@vmobile.ca&lt;br /&gt;
&lt;br /&gt;
West Central Wireless&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@sms.wcc.net&lt;br /&gt;
&lt;br /&gt;
Western Wireless&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@cellularonewest.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=International Carriers=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Chennai RPG Cellular==&lt;br /&gt;
&lt;br /&gt;
    phonenumber@rpgmail.net&lt;br /&gt;
&lt;br /&gt;
Chennai Skycell / Airtel&lt;br /&gt;
&lt;br /&gt;
    phonenumber@airtelchennai.com&lt;br /&gt;
&lt;br /&gt;
Comviq&lt;br /&gt;
&lt;br /&gt;
    number@sms.comviq.se&lt;br /&gt;
&lt;br /&gt;
Delhi Aritel&lt;br /&gt;
&lt;br /&gt;
    phonenumber@airtelmail.com&lt;br /&gt;
&lt;br /&gt;
Delhi Hutch&lt;br /&gt;
&lt;br /&gt;
    phonenumber@delhi.hutch.co.in&lt;br /&gt;
&lt;br /&gt;
DT T-Mobile&lt;br /&gt;
&lt;br /&gt;
    phonenumber@t-mobile-sms.de&lt;br /&gt;
&lt;br /&gt;
Dutchtone / Orange-NL&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.orange.nl&lt;br /&gt;
&lt;br /&gt;
EMT&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.emt.ee&lt;br /&gt;
&lt;br /&gt;
Escotel&lt;br /&gt;
&lt;br /&gt;
    phonenumber@escotelmobile.com&lt;br /&gt;
&lt;br /&gt;
German T-Mobile&lt;br /&gt;
&lt;br /&gt;
    number@t-mobile-sms.de&lt;br /&gt;
&lt;br /&gt;
Goa BPLMobil&lt;br /&gt;
&lt;br /&gt;
    phonenumber@bplmobile.com&lt;br /&gt;
&lt;br /&gt;
Golden Telecom&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.goldentele.com&lt;br /&gt;
&lt;br /&gt;
Gujarat Celforce&lt;br /&gt;
&lt;br /&gt;
    phonenumber@celforce.com&lt;br /&gt;
&lt;br /&gt;
JSM Tele-Page&lt;br /&gt;
&lt;br /&gt;
    pinnumber@jsmtel.com&lt;br /&gt;
&lt;br /&gt;
Kerala Escotel&lt;br /&gt;
&lt;br /&gt;
    phonenumber@escotelmobile.com&lt;br /&gt;
&lt;br /&gt;
Kolkata Airtel&lt;br /&gt;
&lt;br /&gt;
    phonenumber@airtelkol.com&lt;br /&gt;
&lt;br /&gt;
Kyivstar&lt;br /&gt;
&lt;br /&gt;
    number@smsmail.lmt.lv&lt;br /&gt;
&lt;br /&gt;
Lauttamus Communication&lt;br /&gt;
&lt;br /&gt;
    pagernumber@e-page.net&lt;br /&gt;
&lt;br /&gt;
LMT&lt;br /&gt;
&lt;br /&gt;
    phonenumber@smsmail.lmt.lv&lt;br /&gt;
&lt;br /&gt;
Maharashtra BPL Mobile&lt;br /&gt;
&lt;br /&gt;
    phonenumber@bplmobile.com&lt;br /&gt;
&lt;br /&gt;
Maharashtra Idea Cellular&lt;br /&gt;
&lt;br /&gt;
    phonenumber@ideacellular.net&lt;br /&gt;
&lt;br /&gt;
Manitoba Telecom Systems&lt;br /&gt;
&lt;br /&gt;
    phonenumber@text.mtsmobility.com&lt;br /&gt;
&lt;br /&gt;
Meteor&lt;br /&gt;
&lt;br /&gt;
    phonenumber@mymeteor.ie&lt;br /&gt;
&lt;br /&gt;
MiWorld&lt;br /&gt;
&lt;br /&gt;
    phonenumber@m1.com.sg&lt;br /&gt;
&lt;br /&gt;
Mobileone&lt;br /&gt;
&lt;br /&gt;
    phonenumber@m1.com.sg&lt;br /&gt;
&lt;br /&gt;
Mobilfone&lt;br /&gt;
&lt;br /&gt;
    phonenumber@page.mobilfone.com&lt;br /&gt;
&lt;br /&gt;
Mobility Bermuda&lt;br /&gt;
&lt;br /&gt;
    phonenumber@ml.bm&lt;br /&gt;
&lt;br /&gt;
Mobistar Belgium&lt;br /&gt;
&lt;br /&gt;
    phonenumber@mobistar.be&lt;br /&gt;
&lt;br /&gt;
Mobitel Tanzania&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.co.tz&lt;br /&gt;
&lt;br /&gt;
Mobtel Srbija&lt;br /&gt;
&lt;br /&gt;
    phonenumber@mobtel.co.yu&lt;br /&gt;
&lt;br /&gt;
Movistar&lt;br /&gt;
&lt;br /&gt;
    number@correo.movistar.net&lt;br /&gt;
&lt;br /&gt;
Mumbai BPL Mobile&lt;br /&gt;
&lt;br /&gt;
    phonenumber@bplmobile.com&lt;br /&gt;
&lt;br /&gt;
Netcom&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.netcom.no&lt;br /&gt;
&lt;br /&gt;
Ntelos&lt;br /&gt;
&lt;br /&gt;
    number@pcs.ntelos.com&lt;br /&gt;
&lt;br /&gt;
O2&lt;br /&gt;
&lt;br /&gt;
    name@o2.co.uk&lt;br /&gt;
&lt;br /&gt;
O2&lt;br /&gt;
&lt;br /&gt;
    number@o2imail.co.uk&lt;br /&gt;
&lt;br /&gt;
O2 (M-mail)&lt;br /&gt;
&lt;br /&gt;
    number@mmail.co.uk&lt;br /&gt;
&lt;br /&gt;
One Connect Austria&lt;br /&gt;
&lt;br /&gt;
    phonenumber@onemail.at&lt;br /&gt;
&lt;br /&gt;
OnlineBeep&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@onlinebeep.net&lt;br /&gt;
&lt;br /&gt;
Optus Mobile&lt;br /&gt;
&lt;br /&gt;
    phonenumber@optusmobile.com.au&lt;br /&gt;
&lt;br /&gt;
Orange&lt;br /&gt;
&lt;br /&gt;
    phonenumber@orange.net&lt;br /&gt;
&lt;br /&gt;
Orange Mumbai&lt;br /&gt;
&lt;br /&gt;
    phonenumber@orangemail.co.in&lt;br /&gt;
&lt;br /&gt;
Orange NL / Dutchtone&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.orange.nl&lt;br /&gt;
&lt;br /&gt;
Oskar&lt;br /&gt;
&lt;br /&gt;
    phonenumber@mujoskar.cz&lt;br /&gt;
&lt;br /&gt;
P&amp;amp;T Luxembourg&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.luxgsm.lu&lt;br /&gt;
&lt;br /&gt;
Personal Communication&lt;br /&gt;
&lt;br /&gt;
    sms@pcom.ru (put the number in the subject line)&lt;br /&gt;
&lt;br /&gt;
Pondicherry BPL Mobile&lt;br /&gt;
&lt;br /&gt;
    phonenumber@bplmobile.com&lt;br /&gt;
&lt;br /&gt;
Primtel&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.primtel.ru&lt;br /&gt;
&lt;br /&gt;
Safaricom&lt;br /&gt;
&lt;br /&gt;
    phonenumber@safaricomsms.com&lt;br /&gt;
&lt;br /&gt;
Satelindo GSM&lt;br /&gt;
&lt;br /&gt;
    phonenumber@satelindogsm.com&lt;br /&gt;
&lt;br /&gt;
SCS-900&lt;br /&gt;
&lt;br /&gt;
    phonenumber@scs-900.ru&lt;br /&gt;
&lt;br /&gt;
SFR France&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sfr.fr&lt;br /&gt;
&lt;br /&gt;
Simple Freedom&lt;br /&gt;
&lt;br /&gt;
    phonenumber@text.simplefreedom.net&lt;br /&gt;
&lt;br /&gt;
Smart Telecom&lt;br /&gt;
&lt;br /&gt;
    phonenumber@mysmart.mymobile.ph&lt;br /&gt;
&lt;br /&gt;
Southern LINC&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@page.southernlinc.com&lt;br /&gt;
&lt;br /&gt;
Sunrise Mobile&lt;br /&gt;
&lt;br /&gt;
    phonenumber@mysunrise.ch&lt;br /&gt;
&lt;br /&gt;
Sunrise Mobile&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@swmsg.com&lt;br /&gt;
&lt;br /&gt;
Surewest Communications&lt;br /&gt;
&lt;br /&gt;
    phonenumber@freesurf.ch&lt;br /&gt;
&lt;br /&gt;
Swisscom&lt;br /&gt;
&lt;br /&gt;
    phonenumber@bluewin.ch&lt;br /&gt;
&lt;br /&gt;
T-Mobile Austria&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.t-mobile.at&lt;br /&gt;
&lt;br /&gt;
T-Mobile Germany&lt;br /&gt;
&lt;br /&gt;
    phonenumber@t-d1-sms.de&lt;br /&gt;
&lt;br /&gt;
T-Mobile UK&lt;br /&gt;
&lt;br /&gt;
    phonenumber@t-mobile.uk.net&lt;br /&gt;
&lt;br /&gt;
Tamil Nadu BPL Mobile&lt;br /&gt;
&lt;br /&gt;
    phonenumber@bplmobile.com&lt;br /&gt;
&lt;br /&gt;
Tele2 Latvia&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.tele2.lv&lt;br /&gt;
&lt;br /&gt;
Telefonica Movistar&lt;br /&gt;
&lt;br /&gt;
    phonenumber@movistar.net&lt;br /&gt;
&lt;br /&gt;
Telenor&lt;br /&gt;
&lt;br /&gt;
    phonenumber@mobilpost.no&lt;br /&gt;
&lt;br /&gt;
Teletouch&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@pageme.teletouch.com&lt;br /&gt;
&lt;br /&gt;
Telia Denmark&lt;br /&gt;
&lt;br /&gt;
    phonenumber@gsm1800.telia.dk&lt;br /&gt;
&lt;br /&gt;
TIM&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@timnet.com&lt;br /&gt;
&lt;br /&gt;
TSR Wireless&lt;br /&gt;
&lt;br /&gt;
    pagernumber@alphame.com&lt;br /&gt;
&lt;br /&gt;
UMC&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.umc.com.ua&lt;br /&gt;
&lt;br /&gt;
Uraltel&lt;br /&gt;
&lt;br /&gt;
    phonenumber@sms.uraltel.ru&lt;br /&gt;
&lt;br /&gt;
Uttar Pradesh Escotel&lt;br /&gt;
&lt;br /&gt;
    phonenumber@escotelmobile.com&lt;br /&gt;
&lt;br /&gt;
Vessotel&lt;br /&gt;
&lt;br /&gt;
    phonenumber@pager.irkutsk.ru&lt;br /&gt;
&lt;br /&gt;
Vodafone Italy&lt;br /&gt;
&lt;br /&gt;
    number@sms.vodafone.it&lt;br /&gt;
&lt;br /&gt;
Vodafone Japan&lt;br /&gt;
&lt;br /&gt;
    phonenumber@c.vodafone.ne.jp&lt;br /&gt;
&lt;br /&gt;
Vodafone Japan&lt;br /&gt;
&lt;br /&gt;
    phonenumber@h.vodafone.ne.jp&lt;br /&gt;
&lt;br /&gt;
Vodafone Japan&lt;br /&gt;
&lt;br /&gt;
    phonenumber@t.vodafone.ne.jp&lt;br /&gt;
&lt;br /&gt;
Vodafone UK&lt;br /&gt;
&lt;br /&gt;
    phonenumber@vodafone.net&lt;br /&gt;
&lt;br /&gt;
Wyndtell&lt;br /&gt;
&lt;br /&gt;
    number@wyndtell.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Old US &amp;amp; Canadian Carriers (Most Not In Use)=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Advantage Communications&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@advantagepaging.com&lt;br /&gt;
&lt;br /&gt;
Airtouch Pagers&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@myairmail.com&lt;br /&gt;
&lt;br /&gt;
AlphaNow&lt;br /&gt;
&lt;br /&gt;
    pin@alphanow.net&lt;br /&gt;
&lt;br /&gt;
Ameritech Paging&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@paging.acswireless.com&lt;br /&gt;
&lt;br /&gt;
American Messaging&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@page.americanmessaging.net&lt;br /&gt;
&lt;br /&gt;
Ameritech Clearpath&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@clearpath.acswireless.com&lt;br /&gt;
&lt;br /&gt;
Arch Pagers (PageNet)&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@archwireless.net&lt;br /&gt;
&lt;br /&gt;
AT&amp;amp;T&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@mobile.att.net&lt;br /&gt;
&lt;br /&gt;
AT&amp;amp;T Free2Go&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@mmode.com&lt;br /&gt;
&lt;br /&gt;
AT&amp;amp;T PCS&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@mobile.att.net&lt;br /&gt;
&lt;br /&gt;
AT&amp;amp;T Pocketnet PCS&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@dpcs.mobile.att.net&lt;br /&gt;
&lt;br /&gt;
Beepwear&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@beepwear.net&lt;br /&gt;
&lt;br /&gt;
Bell Atlantic&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@message.bam.com&lt;br /&gt;
&lt;br /&gt;
Bell South&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@wireless.bellsouth.com&lt;br /&gt;
&lt;br /&gt;
Bell South (Blackberry)&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@bellsouthtips.com&lt;br /&gt;
&lt;br /&gt;
Bell South Mobility&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@blsdcs.net&lt;br /&gt;
&lt;br /&gt;
Cellular One (East Coast)&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@phone.cellone.net&lt;br /&gt;
&lt;br /&gt;
Cellular One (South West)&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@swmsg.com&lt;br /&gt;
&lt;br /&gt;
Cellular One&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@cellularone.txtmsg.com&lt;br /&gt;
&lt;br /&gt;
Cellular One&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@cellularone.textmsg.com&lt;br /&gt;
&lt;br /&gt;
Cellular One&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@cell1.textmsg.com&lt;br /&gt;
&lt;br /&gt;
Cellular One&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@sbcemail.com&lt;br /&gt;
&lt;br /&gt;
Cellular One (West)&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@mycellone.com&lt;br /&gt;
&lt;br /&gt;
Central Vermont Communications&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@cvcpaging.com&lt;br /&gt;
&lt;br /&gt;
Cingular&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@cingularme.com&lt;br /&gt;
&lt;br /&gt;
Communication Specialists&lt;br /&gt;
&lt;br /&gt;
    7digitpin@pageme.comspeco.net&lt;br /&gt;
&lt;br /&gt;
Cook Paging&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@cookmail.com&lt;br /&gt;
&lt;br /&gt;
Corr Wireless Communications&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@corrwireless.net&lt;br /&gt;
&lt;br /&gt;
Digi-Page / Page Kansas&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@page.hit.net&lt;br /&gt;
&lt;br /&gt;
Galaxy Corporation&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber.epage@sendabeep.net&lt;br /&gt;
&lt;br /&gt;
GCS Paging&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@webpager.us&lt;br /&gt;
&lt;br /&gt;
GrayLink / Porta-Phone&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@epage.porta-phone.com&lt;br /&gt;
&lt;br /&gt;
GTE&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@airmessage.net&lt;br /&gt;
&lt;br /&gt;
GTE&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@gte.pagegate.net&lt;br /&gt;
&lt;br /&gt;
GTE&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@messagealert.com&lt;br /&gt;
&lt;br /&gt;
Infopage Systems&lt;br /&gt;
&lt;br /&gt;
    pinnumber@page.infopagesystems.com&lt;br /&gt;
&lt;br /&gt;
Indiana Paging Co&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@inlandlink.com&lt;br /&gt;
&lt;br /&gt;
MCI&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@pagemci.com&lt;br /&gt;
&lt;br /&gt;
Metrocall&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@page.metrocall.com&lt;br /&gt;
&lt;br /&gt;
Mobilecom PA&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@page.mobilcom.net&lt;br /&gt;
&lt;br /&gt;
Morris Wireless&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@beepone.net&lt;br /&gt;
&lt;br /&gt;
Motient&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@isp.com&lt;br /&gt;
&lt;br /&gt;
Nextel&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@page.nextel.com&lt;br /&gt;
&lt;br /&gt;
Omnipoint&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@omnipointpcs.com&lt;br /&gt;
&lt;br /&gt;
Pacific Bell&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@pacbellpcs.net&lt;br /&gt;
&lt;br /&gt;
PageMart&lt;br /&gt;
&lt;br /&gt;
    7digitpinnumber@pagemart.net&lt;br /&gt;
&lt;br /&gt;
PageMart Canada&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@pmcl.net&lt;br /&gt;
&lt;br /&gt;
PageNet Canada&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@pagegate.pagenet.ca&lt;br /&gt;
&lt;br /&gt;
PageOne Northwest&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@page1nw.com&lt;br /&gt;
&lt;br /&gt;
PCS One&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@pcsone.net&lt;br /&gt;
&lt;br /&gt;
Powertel&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@voicestream.net&lt;br /&gt;
&lt;br /&gt;
Price Communications&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@mobilecell1se.com&lt;br /&gt;
&lt;br /&gt;
Primeco&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@email.uscc.net&lt;br /&gt;
&lt;br /&gt;
ProPage&lt;br /&gt;
&lt;br /&gt;
    7digitpagernumber@page.propage.net&lt;br /&gt;
&lt;br /&gt;
Qualcomm&lt;br /&gt;
&lt;br /&gt;
    name@pager.qualcomm.com&lt;br /&gt;
&lt;br /&gt;
RAM Page&lt;br /&gt;
&lt;br /&gt;
    number@ram-page.com&lt;br /&gt;
&lt;br /&gt;
SBC Ameritech Paging&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@paging.acswireless.com&lt;br /&gt;
&lt;br /&gt;
Skytel Pagers&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@email.skytel.com&lt;br /&gt;
&lt;br /&gt;
ST Paging&lt;br /&gt;
&lt;br /&gt;
    pin@page.stpaging.com&lt;br /&gt;
&lt;br /&gt;
Verizon Pagers&lt;br /&gt;
&lt;br /&gt;
    10digitpagernumber@myairmail.com&lt;br /&gt;
&lt;br /&gt;
Verizon PCS&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@myvzw.com&lt;br /&gt;
&lt;br /&gt;
VoiceStream&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@voicestream.net&lt;br /&gt;
&lt;br /&gt;
WebLink Wireless&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@@airmessage.net&lt;br /&gt;
&lt;br /&gt;
WebLink Wireless&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@pagemart.net&lt;br /&gt;
&lt;br /&gt;
West Central Wireless&lt;br /&gt;
&lt;br /&gt;
    10digitphonenumber@sms.wcc.net&lt;br /&gt;
&lt;br /&gt;
[[Category:Mail]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/AMD-V_not_working_in_VirtualBox</id>
		<title>AMD-V not working in VirtualBox</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/AMD-V_not_working_in_VirtualBox"/>
				<updated>2012-05-13T23:50:35Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you get a message when trying to run a 64bit OS in virtualbox to enable AMD-V the follow the below steps.&lt;br /&gt;
&lt;br /&gt;
First of all check your bios and make sure that SVM is enabled. This setting is under CPU settings.&lt;br /&gt;
&lt;br /&gt;
Boot up your machine and do '''grep --color svm /proc/cpuinfo'''. You should get some flags. If you do then you have svm support enabled. SVM will show up for AMD and for Intel you will get VMX.&lt;br /&gt;
&lt;br /&gt;
The only other reason VirtualBox is not seeing AMD-V is because another virtuallization mod is loaded for example kvm.&lt;br /&gt;
&lt;br /&gt;
3.1.4 will contain a workaround for people with a broken BIOS and no option to update it.&lt;br /&gt;
Set the VBOX_HWVIRTEX_IGNORE_SVM_IN_USE environment variable to true:&lt;br /&gt;
&lt;br /&gt;
    set VBOX_HWVIRTEX_IGNORE_SVM_IN_USE=true on Windows&lt;br /&gt;
    export VBOX_HWVIRTEX_IGNORE_SVM_IN_USE=true on Linux &lt;br /&gt;
&lt;br /&gt;
This will tell VirtualBox to ignore VERR_SVM_IN_USE and continue to use AMD-V. Note that this is a hack and dangerous if you run more than one hypervisor at the same time.&lt;br /&gt;
&lt;br /&gt;
[[Category:VirtualBox]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Basic_zfs_info</id>
		<title>Basic zfs info</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Basic_zfs_info"/>
				<updated>2012-02-27T08:03:59Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;=Cache files= * /var/lib/zfs/zpool.cache * /etc/zfs/zpool.cache  Category:ZFS&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Cache files=&lt;br /&gt;
* /var/lib/zfs/zpool.cache&lt;br /&gt;
* /etc/zfs/zpool.cache&lt;br /&gt;
&lt;br /&gt;
[[Category:ZFS]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Users_can_list_pools_in_zfs</id>
		<title>Users can list pools in zfs</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Users_can_list_pools_in_zfs"/>
				<updated>2012-02-27T07:46:44Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;Add the following to '''/etc/udev/rules.d/91-zfs-permissions.rules''' &amp;lt;source lang=bash&amp;gt; #Use this to add a group and more permissive permissions for zfs #so that you don't alway...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Add the following to '''/etc/udev/rules.d/91-zfs-permissions.rules'''&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
#Use this to add a group and more permissive permissions for zfs&lt;br /&gt;
#so that you don't always need run it as root.  beware, users not root&lt;br /&gt;
#can do nearly EVERYTHING, including, but not limited to destroying&lt;br /&gt;
#volumes and deleting datasets.  they CANNOT mount datasets or create new&lt;br /&gt;
#volumes, export datasets via NFS, or other things that require root&lt;br /&gt;
#permissions outside of ZFS.&lt;br /&gt;
ACTION==&amp;quot;add&amp;quot;, KERNEL==&amp;quot;zfs&amp;quot;, MODE=&amp;quot;0660&amp;quot;, GROUP=&amp;quot;zfs&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the group.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
    root@debian:~# groupadd zfs&lt;br /&gt;
    root@debian:~# gpasswd -a username zfs &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot and try the '''zfs list -t all'''&lt;br /&gt;
[[Category:ZFS]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Enable_htaccess_files</id>
		<title>Enable htaccess files</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Enable_htaccess_files"/>
				<updated>2012-02-19T18:06:13Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Check your httpd.conf or apache2.conf file for the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
AccessFileName .htaccess&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# The following lines prevent .htaccess and .htpasswd files from being&lt;br /&gt;
# viewed by Web clients.&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;Files ~ &amp;quot;^\.ht&amp;quot;&amp;gt;&lt;br /&gt;
    Order allow,deny&lt;br /&gt;
    Deny from all&lt;br /&gt;
    Satisfy all&lt;br /&gt;
&amp;lt;/Files&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You also need to make sure you have a Directory defined in /etc/apache2/sites-enabled/000-default or your main httpd.conf or apache2.conf file like this:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
        &amp;lt;Directory /var/www&amp;gt;&lt;br /&gt;
                Options FollowSymLinks&lt;br /&gt;
                AllowOverride ALL&lt;br /&gt;
        &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can go make your .htaccess file in /var/www&lt;br /&gt;
[[Category:Apache]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Run_shell_scripts_from_web</id>
		<title>Run shell scripts from web</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Run_shell_scripts_from_web"/>
				<updated>2012-02-19T15:50:13Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* Simple show date script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CGI stands for common gateway protocol. We are going to use some simple scripts to show you how you can run shell commands via apache.&lt;br /&gt;
&lt;br /&gt;
This setup will be for debian system.&lt;br /&gt;
&lt;br /&gt;
=Enable CGI=&lt;br /&gt;
CGI is enabled in the /etc/apache2/sites-enabled/000-default&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/&lt;br /&gt;
        &amp;lt;Directory &amp;quot;/usr/lib/cgi-bin&amp;quot;&amp;gt;&lt;br /&gt;
                AllowOverride None&lt;br /&gt;
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch&lt;br /&gt;
                Order allow,deny&lt;br /&gt;
                Allow from all&lt;br /&gt;
        &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart apache is you made any changes&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
root@debian60:/etc/apache2/sites-enabled# apachectl configtest&lt;br /&gt;
Syntax OK&lt;br /&gt;
root@debian60:/etc/apache2/sites-enabled# apachectl restart&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Simple show date script=&lt;br /&gt;
Edit /usr/lib/cgi-bin/date.cgi and make it +x. Put the following in it&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# get today's date&lt;br /&gt;
OUTPUT=&amp;quot;$(date)&amp;quot;&lt;br /&gt;
# You must add following two lines before&lt;br /&gt;
# outputting data to the web browser from shell&lt;br /&gt;
# script&lt;br /&gt;
 echo &amp;quot;Content-type: text/html&amp;quot;&lt;br /&gt;
 echo &amp;quot;&amp;quot;&lt;br /&gt;
 echo &amp;quot;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Demo&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;quot;&lt;br /&gt;
 echo &amp;quot;Today is &amp;lt;pre&amp;gt; $OUTPUT &amp;lt;/pre&amp;gt; &amp;lt;br&amp;gt;&amp;quot;&lt;br /&gt;
 echo &amp;quot;Current directory is $(pwd) &amp;lt;br&amp;gt;&amp;quot;&lt;br /&gt;
 echo &amp;quot;Shell Script name is $0&amp;quot;&lt;br /&gt;
 echo &amp;quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
result will show&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
Today is Sat Feb 18 12:06:15 CST 2012&lt;br /&gt;
Current directory is /usr/lib/cgi-bin&lt;br /&gt;
Shell Script name is /usr/lib/cgi-bin/date.cgi &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:CGI]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Nc</id>
		<title>Nc</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Nc"/>
				<updated>2012-02-16T03:44:09Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:nc}}&lt;br /&gt;
=Listen on any port=&lt;br /&gt;
* nc -l 3333&lt;br /&gt;
Go to another machine and '''nc &amp;lt;ip&amp;gt; 3333'''. anything you type will be echoed. You can also use this for testing firewall rules by running nc on different ports and then trying to nmap or telnet to it.&lt;br /&gt;
&lt;br /&gt;
=Transfering Files=&lt;br /&gt;
In the very same way it can be used to transfer files between two computers. You can create a server that serves the file with the following:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$ cat backup.iso | nc -l 3333&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Receive backup.iso on the client machine with the following:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$ nc 192.168.0.1 3333 &amp;gt; backup.iso&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
As you may have noticed, netcat does not show any info about the progress of the data transfer. This is inconvenient when dealing with large files. In such cases, a pipe-monitoring utility like pv can be used to show a progress indicator. For example, the following shows the total amount of data that has been transfered in real-time on the server side:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$ cat backup.iso | pv -b | nc -l 3333&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Of course, the same can be implemented on the client side by piping netcat’s output through pv:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$ nc 192.168.0.1 3333 | pv -b &amp;gt; backup.iso&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Mysql_prompt_cheet_sheet</id>
		<title>Mysql prompt cheet sheet</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Mysql_prompt_cheet_sheet"/>
				<updated>2012-02-14T16:11:55Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Run a script=&lt;br /&gt;
* mysql&amp;gt; SOURCE /home/bob/my_commands.sql;&lt;br /&gt;
&lt;br /&gt;
=List all users=&lt;br /&gt;
* mysql&amp;gt; select User from mysql.user;&lt;br /&gt;
[[Category:Mysql]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Backup_and_Restore_mysql</id>
		<title>Backup and Restore mysql</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Backup_and_Restore_mysql"/>
				<updated>2012-02-14T15:35:42Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;How to backup and Restore mysql:  * backup: # mysqldump -u root -p[root_password] [database_name] &amp;gt; dumpfilename.sql  * restore:# mysql -u root -p[root_password] [database_name] ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;How to backup and Restore mysql:&lt;br /&gt;
&lt;br /&gt;
* backup: # mysqldump -u root -p[root_password] [database_name] &amp;gt; dumpfilename.sql&lt;br /&gt;
&lt;br /&gt;
* restore:# mysql -u root -p[root_password] [database_name] &amp;lt; dumpfilename.sql&lt;br /&gt;
&lt;br /&gt;
[[Category:Mysql]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Installing_nagios</id>
		<title>Installing nagios</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Installing_nagios"/>
				<updated>2012-02-12T15:59:04Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* Password for nagios */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Debian Install=&lt;br /&gt;
At the writing of this article nagios-3 was the latest version.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
root@debian60:~# apt-get install nagios3-core&lt;br /&gt;
Reading package lists... Done&lt;br /&gt;
Building dependency tree       &lt;br /&gt;
Reading state information... Done&lt;br /&gt;
The following extra packages will be installed:&lt;br /&gt;
  fping libmysqlclient16 libpq5 libradiusclient-ng2 mysql-common nagios-plugins nagios-plugins-basic nagios-plugins-standard nagios3-common qstat samba-common samba-common-bin&lt;br /&gt;
  smbclient&lt;br /&gt;
Suggested packages:&lt;br /&gt;
  nagios3 nagios-nrpe-plugin cifs-utils&lt;br /&gt;
The following NEW packages will be installed:&lt;br /&gt;
  fping libmysqlclient16 libpq5 libradiusclient-ng2 mysql-common nagios-plugins nagios-plugins-basic nagios-plugins-standard nagios3-common nagios3-core qstat samba-common&lt;br /&gt;
  samba-common-bin smbclient&lt;br /&gt;
0 upgraded, 14 newly installed, 0 to remove and 167 not upgraded.&lt;br /&gt;
Need to get 26.2 MB of archives.&lt;br /&gt;
After this operation, 76.7 MB of additional disk space will be used.&lt;br /&gt;
Do you want to continue [Y/n]? Y&lt;br /&gt;
Get:1 http://ftp.us.debian.org/debian/ squeeze/main fping amd64 2.4b2-to-ipv6-16.1 [33.9 kB]&lt;br /&gt;
Get:2 http://ftp.us.debian.org/debian/ squeeze/main mysql-common all 5.1.49-3 [70.9 kB]&lt;br /&gt;
Get:3 http://ftp.us.debian.org/debian/ squeeze/main libmysqlclient16 amd64 5.1.49-3 [1,985 kB]&lt;br /&gt;
Get:4 http://ftp.us.debian.org/debian/ squeeze/main libpq5 amd64 8.4.10-0squeeze1 [165 kB]&lt;br /&gt;
Get:5 http://ftp.us.debian.org/debian/ squeeze/main libradiusclient-ng2 amd64 0.5.6-1.1 [39.9 kB]&lt;br /&gt;
Get:6 http://ftp.us.debian.org/debian/ squeeze/main nagios-plugins-basic amd64 1.4.15-3squeeze1 [1,010 kB]&lt;br /&gt;
Get:7 http://ftp.us.debian.org/debian/ squeeze/main nagios3-common all 3.2.1-2 [78.7 kB]                                                                                          &lt;br /&gt;
Get:8 http://ftp.us.debian.org/debian/ squeeze/main nagios3-core amd64 3.2.1-2 [271 kB]                                                                                           &lt;br /&gt;
Get:9 http://ftp.us.debian.org/debian/ squeeze/main qstat amd64 2.11-3 [145 kB]                                                                                                   &lt;br /&gt;
Get:10 http://ftp.us.debian.org/debian/ squeeze/main samba-common all 2:3.5.6~dfsg-3squeeze6 [388 kB]                                                                             &lt;br /&gt;
Get:11 http://ftp.us.debian.org/debian/ squeeze/main samba-common-bin amd64 2:3.5.6~dfsg-3squeeze6 [6,378 kB]                                                                     &lt;br /&gt;
Get:12 http://ftp.us.debian.org/debian/ squeeze/main smbclient amd64 2:3.5.6~dfsg-3squeeze6 [15.2 MB]                                                                             &lt;br /&gt;
Get:13 http://ftp.us.debian.org/debian/ squeeze/main nagios-plugins-standard amd64 1.4.15-3squeeze1 [429 kB]                                                                      &lt;br /&gt;
Get:14 http://ftp.us.debian.org/debian/ squeeze/main nagios-plugins all 1.4.15-3squeeze1 [21.3 kB]                                                                                &lt;br /&gt;
Fetched 26.2 MB in 53s (487 kB/s)                                                                                                                                                 &lt;br /&gt;
Preconfiguring packages ...&lt;br /&gt;
Selecting previously deselected package fping.&lt;br /&gt;
(Reading database ... 119368 files and directories currently installed.)&lt;br /&gt;
Unpacking fping (from .../fping_2.4b2-to-ipv6-16.1_amd64.deb) ...&lt;br /&gt;
Selecting previously deselected package mysql-common.&lt;br /&gt;
Unpacking mysql-common (from .../mysql-common_5.1.49-3_all.deb) ...&lt;br /&gt;
Selecting previously deselected package libmysqlclient16.&lt;br /&gt;
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.49-3_amd64.deb) ...&lt;br /&gt;
Selecting previously deselected package libpq5.&lt;br /&gt;
Unpacking libpq5 (from .../libpq5_8.4.10-0squeeze1_amd64.deb) ...&lt;br /&gt;
Selecting previously deselected package libradiusclient-ng2.&lt;br /&gt;
Unpacking libradiusclient-ng2 (from .../libradiusclient-ng2_0.5.6-1.1_amd64.deb) ...&lt;br /&gt;
Selecting previously deselected package nagios-plugins-basic.&lt;br /&gt;
Unpacking nagios-plugins-basic (from .../nagios-plugins-basic_1.4.15-3squeeze1_amd64.deb) ...&lt;br /&gt;
Selecting previously deselected package nagios3-common.&lt;br /&gt;
Unpacking nagios3-common (from .../nagios3-common_3.2.1-2_all.deb) ...&lt;br /&gt;
Selecting previously deselected package nagios3-core.&lt;br /&gt;
Unpacking nagios3-core (from .../nagios3-core_3.2.1-2_amd64.deb) ...&lt;br /&gt;
Selecting previously deselected package qstat.&lt;br /&gt;
Unpacking qstat (from .../qstat_2.11-3_amd64.deb) ...&lt;br /&gt;
Selecting previously deselected package samba-common.&lt;br /&gt;
Unpacking samba-common (from .../samba-common_2%3a3.5.6~dfsg-3squeeze6_all.deb) ...&lt;br /&gt;
Selecting previously deselected package samba-common-bin.&lt;br /&gt;
Unpacking samba-common-bin (from .../samba-common-bin_2%3a3.5.6~dfsg-3squeeze6_amd64.deb) ...&lt;br /&gt;
Selecting previously deselected package smbclient.&lt;br /&gt;
Unpacking smbclient (from .../smbclient_2%3a3.5.6~dfsg-3squeeze6_amd64.deb) ...&lt;br /&gt;
Selecting previously deselected package nagios-plugins-standard.&lt;br /&gt;
Unpacking nagios-plugins-standard (from .../nagios-plugins-standard_1.4.15-3squeeze1_amd64.deb) ...&lt;br /&gt;
Selecting previously deselected package nagios-plugins.&lt;br /&gt;
Unpacking nagios-plugins (from .../nagios-plugins_1.4.15-3squeeze1_all.deb) ...&lt;br /&gt;
Processing triggers for man-db ...&lt;br /&gt;
Setting up fping (2.4b2-to-ipv6-16.1) ...&lt;br /&gt;
Setting up mysql-common (5.1.49-3) ...&lt;br /&gt;
Setting up libmysqlclient16 (5.1.49-3) ...&lt;br /&gt;
Setting up libpq5 (8.4.10-0squeeze1) ...&lt;br /&gt;
Setting up libradiusclient-ng2 (0.5.6-1.1) ...&lt;br /&gt;
Setting up nagios-plugins-basic (1.4.15-3squeeze1) ...&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/apt.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/dhcp.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/disk.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/dummy.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/ftp.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/http.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/load.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/mail.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/news.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/ntp.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/ping.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/procs.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/real.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/ssh.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/tcp_udp.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/telnet.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/users.cfg with new version&lt;br /&gt;
Setting up nagios3-common (3.2.1-2) ...&lt;br /&gt;
Adding system-user for nagios&lt;br /&gt;
Starting nagios3 monitoring daemon: nagios3.&lt;br /&gt;
Setting up nagios3-core (3.2.1-2) ...&lt;br /&gt;
Setting up qstat (2.11-3) ...&lt;br /&gt;
Setting up samba-common (2:3.5.6~dfsg-3squeeze6) ...&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/samba/smb.conf with new version&lt;br /&gt;
Setting up samba-common-bin (2:3.5.6~dfsg-3squeeze6) ...&lt;br /&gt;
update-alternatives: using /usr/bin/nmblookup.samba3 to provide /usr/bin/nmblookup (nmblookup) in auto mode.&lt;br /&gt;
update-alternatives: using /usr/bin/net.samba3 to provide /usr/bin/net (net) in auto mode.&lt;br /&gt;
update-alternatives: using /usr/bin/testparm.samba3 to provide /usr/bin/testparm (testparm) in auto mode.&lt;br /&gt;
Setting up smbclient (2:3.5.6~dfsg-3squeeze6) ...&lt;br /&gt;
Setting up nagios-plugins-standard (1.4.15-3squeeze1) ...&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/breeze.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/disk-smb.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/dns.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/flexlm.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/fping.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/games.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/hppjd.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/ifstatus.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/ldap.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/mailq.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/mrtg.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/mysql.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/netware.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/nt.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/pgsql.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/radius.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/rpc-nfs.cfg with new version&lt;br /&gt;
&lt;br /&gt;
Creating config file /etc/nagios-plugins/config/snmp.cfg with new version&lt;br /&gt;
Setting up nagios-plugins (1.4.15-3squeeze1) ...&lt;br /&gt;
root@debian60:~#&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this install apache and nagios-cgi.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
apt-get install apache2-mpm-worker&lt;br /&gt;
apt-get install nagios3-cgi&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Password for nagios=&lt;br /&gt;
Passwords are kept in &lt;br /&gt;
* /etc/nagios3/htpasswd.users&lt;br /&gt;
&lt;br /&gt;
During the install you will be asked to put in a default nagiosadmin password. if you forget then:&lt;br /&gt;
* htpasswd /etc/nagios3/htpasswd.users nagiosadmin&lt;br /&gt;
to make a new password.&lt;br /&gt;
[[Category:Nagios]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/ACL_utilities</id>
		<title>ACL utilities</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/ACL_utilities"/>
				<updated>2012-02-10T03:53:59Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* Remove all acl */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Access Control List (ACL) feature extends the model to allow much finer control: you can specify permissions for each individual user and group defined in your system.&lt;br /&gt;
&lt;br /&gt;
=Turn ACL on the partition=&lt;br /&gt;
As root, edit /etc/fstab. Find the partition that you want ACL enabled, and add the mount option acl.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
/dev/mapper/star-home /home ext3  defaults,acl 0 2&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=Remount your partition=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
mount -o remount /&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also do:&lt;br /&gt;
* mount -o remount,acl /&lt;br /&gt;
&lt;br /&gt;
=Get ACL package=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$ apt-get install acl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=Our test users and groups=&lt;br /&gt;
Do all this as root&lt;br /&gt;
* mkdir /opt/projections&lt;br /&gt;
* groupadd sales&lt;br /&gt;
* groupadd marketing&lt;br /&gt;
* useradd -m tester&lt;br /&gt;
* useradd -m sales1&lt;br /&gt;
* useradd -m marketing1&lt;br /&gt;
* usermod -G sales sales1&lt;br /&gt;
* usermod -G marketing marketing1&lt;br /&gt;
* id sales1&lt;br /&gt;
* id marketing1&lt;br /&gt;
&lt;br /&gt;
You should see that users sales1 and marketing1 belong to two groups.&lt;br /&gt;
&lt;br /&gt;
=Set permissions for a file=&lt;br /&gt;
Create a file in /home/lexiana called targets.txt.&lt;br /&gt;
* touch /home/lexiana/targets.txt&lt;br /&gt;
&lt;br /&gt;
Let's set permissions.&lt;br /&gt;
* setfacl -m group:sales:rw-,group:marketing:rw- targets.txt&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
# getfacl targets.txt &lt;br /&gt;
# file: targets.txt&lt;br /&gt;
# owner: root&lt;br /&gt;
# group: root&lt;br /&gt;
user::rw-&lt;br /&gt;
group::r--&lt;br /&gt;
group:sales:rw-&lt;br /&gt;
group:marketing:rw-&lt;br /&gt;
mask::rw-&lt;br /&gt;
other::r--&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To test:&lt;br /&gt;
* su - sales1&lt;br /&gt;
* vi /home/lexiana/targets.txt&lt;br /&gt;
&lt;br /&gt;
You should be able to edit this file but should not be able to add anything else in /home/lexiana&lt;br /&gt;
&lt;br /&gt;
=Set permissions on a directory=&lt;br /&gt;
* setfacl -m user:tester:rwx,group:sales:rwx,group:marketing:rwx /opt/projections/&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
root@debian60:/opt# getfacl projections/&lt;br /&gt;
# file: projections/&lt;br /&gt;
# owner: root&lt;br /&gt;
# group: root&lt;br /&gt;
user::rwx&lt;br /&gt;
user:lexiana:rwx&lt;br /&gt;
user:tester:rwx&lt;br /&gt;
group::r-x&lt;br /&gt;
group:sales:rwx&lt;br /&gt;
group:marketing:rwx&lt;br /&gt;
mask::rwx&lt;br /&gt;
other::r-x&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Test by swicthing to user tester and writing and deleting files in /opt/projections&lt;br /&gt;
=Grant user rwx=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
setfacl -m u:bob:rwx /data1/foo.txt&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Grant group read write=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
setfacl -m g:peeps:rw /data1/foo.txt&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=Remove ACL permissions=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
setfacl -x u:bob /data1/foo.txt&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Default ACL permissions on a directory=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
setfacl -m d:g:peeps:rw /data1/stuff/&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Revoke write permission for everyone=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
setfacl -m m::rx /data1/foo.txt&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Remove all acl=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
setfacl --remove-all -R apache2/&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:Linux_Articles]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Reset_the_Root_Password_for_mysql</id>
		<title>Reset the Root Password for mysql</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Reset_the_Root_Password_for_mysql"/>
				<updated>2012-02-08T16:42:47Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;1. Log on to your system as Administrator.  2. mysqld_safe --skip-grant-tables   3. mysql --user=root mysql  4. update user set Password=PASSWORD('new-password') where user='root...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;1. Log on to your system as Administrator.&lt;br /&gt;
&lt;br /&gt;
2. mysqld_safe --skip-grant-tables &lt;br /&gt;
&lt;br /&gt;
3. mysql --user=root mysql&lt;br /&gt;
&lt;br /&gt;
4. update user set Password=PASSWORD('new-password') where user='root';&lt;br /&gt;
flush privileges;&lt;br /&gt;
exit;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mysql]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Ldconfig</id>
		<title>Ldconfig</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Ldconfig"/>
				<updated>2012-02-08T15:03:17Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:ldconfig}}&lt;br /&gt;
&lt;br /&gt;
Ldconfig is a basic system program which determines run-time linkbindings between ld.so and shared libraries. Ldconfig scans a running system and sets up the symbolic links that are used to load shared libraries properly. It also creates a cache (/etc/ld.so.cache) which speeds the loading of programs which use shared libraries. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[root@linapp20 ~]# ldconfig -p | grep libgd&lt;br /&gt;
        libgdk_pixbuf_xlib-2.0.so.0 (libc6,x86-64) =&amp;gt; /usr/lib64/libgdk_pixbuf_xlib-2.0.so.0&lt;br /&gt;
        libgdk_pixbuf-2.0.so.0 (libc6,x86-64) =&amp;gt; /usr/lib64/libgdk_pixbuf-2.0.so.0&lt;br /&gt;
        libgdk-x11-2.0.so.0 (libc6,x86-64) =&amp;gt; /usr/lib64/libgdk-x11-2.0.so.0&lt;br /&gt;
        libgdbm.so.2 (libc6,x86-64) =&amp;gt; /usr/lib64/libgdbm.so.2&lt;br /&gt;
        libgd.so.2 (libc6,x86-64) =&amp;gt; /usr/lib64/libgd.so.2&lt;br /&gt;
        libgd.so (libc6,x86-64) =&amp;gt; /usr/lib64/libgd.so&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check your glibc version do&lt;br /&gt;
* ldd --version&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Nagios.cfg</id>
		<title>Nagios.cfg</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Nagios.cfg"/>
				<updated>2012-01-30T04:08:52Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;Main Config File for Nagios    Category:Nagios&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Main Config File for Nagios&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Nagios]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Basic_Info</id>
		<title>Basic Info</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Basic_Info"/>
				<updated>2012-01-30T01:17:12Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* Nagios Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Monitoring tools=&lt;br /&gt;
There are many like Big Brother, OpenNMS, OpenView and SysMon.&lt;br /&gt;
&lt;br /&gt;
=Nagios can monotor=&lt;br /&gt;
*    Ping to see if host is reachable&lt;br /&gt;
&lt;br /&gt;
*    Services such as DHCP, DNS, FTP, SSH, Telnet, HTTP, NTP, POP3, IMAP, SMTP etc.&lt;br /&gt;
&lt;br /&gt;
*    Database servers such as MySQL, Postgres, Oracle, SQL Server etc.&lt;br /&gt;
&lt;br /&gt;
*    Application level information (Apache, Postfix, LDAP, Citrix etc.)&lt;br /&gt;
&lt;br /&gt;
=Installing Nagios=&lt;br /&gt;
* apt-get install nagios3&lt;br /&gt;
&lt;br /&gt;
=Default password=&lt;br /&gt;
The default opassword goes in /etc/nagios3/htpasswd.users. &lt;br /&gt;
&lt;br /&gt;
=Nagios Files=&lt;br /&gt;
* nagios.cfg&lt;br /&gt;
The main configuration file (usually /usr/local/nagios/etc/nagios.cfg) contains a number of directives that affect how Nagios operates. This config file is read by both the Nagios process and the CGIs. This is the first configuration file you're going to want to create or edit. &lt;br /&gt;
 &lt;br /&gt;
* resource.cfg&lt;br /&gt;
Resource files can be used to store user-defined macros. Resource files can also contain other information (like database connection settings), although this will depend on how you've compiled Nagios. The main point of having resource files is to use them to store sensitive configuration information and not make them available to the CGIs.&lt;br /&gt;
&lt;br /&gt;
* cgi.cfg&lt;br /&gt;
The CGI configuration file (usually /usr/local/nagios/etc/cgi.cfg) contains a number of directives that affect the operation of the CGIs. &lt;br /&gt;
&lt;br /&gt;
* object files&lt;br /&gt;
These are the object configuration files in which you define hosts, host groups, contacts, contact groups, services, etc. You can split your object definitions across several config files if you wish (as shown below), or keep them all in a single config file.&lt;br /&gt;
&lt;br /&gt;
You can specify individual object config files as shown below:&lt;br /&gt;
&lt;br /&gt;
cfg_file=/etc/nagios3/objects/commands.cfg&lt;br /&gt;
&lt;br /&gt;
cfg_file=/etc/nagios3/objects/contacts.cfg&lt;br /&gt;
&lt;br /&gt;
cfg_file=/etc/nagios3/objects/timeperiods.cfg&lt;br /&gt;
&lt;br /&gt;
cfg_file=/etc/nagios3/objects/templates.cfg&lt;br /&gt;
&lt;br /&gt;
Definitions for monitoring a Windows machine&lt;br /&gt;
&lt;br /&gt;
cfg_file=/etc/nagios3/objects/windows.cfg&lt;br /&gt;
&lt;br /&gt;
Definitions for monitoring a router/switch&lt;br /&gt;
&lt;br /&gt;
cfg_file=/etc/nagios3/objects/switch.cfg&lt;br /&gt;
&lt;br /&gt;
Definitions for monitoring a network printer&lt;br /&gt;
&lt;br /&gt;
You can also tell Nagios to process all config files (with a .cfg extension) in a particular directory by using the cfg_dir&lt;br /&gt;
&lt;br /&gt;
directive as shown below:&lt;br /&gt;
&lt;br /&gt;
cfg_dir=/etc/nagios3/servers&lt;br /&gt;
&lt;br /&gt;
cfg_dir=/etc/nagios3/printers&lt;br /&gt;
&lt;br /&gt;
cfg_dir=/etc/nagios3/switches&lt;br /&gt;
&lt;br /&gt;
cfg_dir=/etc/nagios3/routers&lt;br /&gt;
&lt;br /&gt;
=Enable Nagios=&lt;br /&gt;
* deb = /etc/default/nagios3&lt;br /&gt;
* rpm = /etc/rc.conf&lt;br /&gt;
=Verify config=&lt;br /&gt;
* /usr/sbin/nagios3 -v nagios.cfg&lt;br /&gt;
=Check config=&lt;br /&gt;
* /usr/sbin/nagios3 -s nagios.cfg&lt;br /&gt;
[[Category:Nagios]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/RCS_MINI-HOWTO</id>
		<title>RCS MINI-HOWTO</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/RCS_MINI-HOWTO"/>
				<updated>2012-01-25T03:35:04Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* Cheat sheet */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;GNU Revision Control System, under Linux.&lt;br /&gt;
&lt;br /&gt;
=Creating an archive=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
lexiana@initq:~/junk$ rcs -i file.c&lt;br /&gt;
RCS file: file.c,v&lt;br /&gt;
enter description, terminated with single '.' or end of file:&lt;br /&gt;
NOTE: This is NOT the log message!&lt;br /&gt;
&amp;gt;&amp;gt; this is my first file.&lt;br /&gt;
&amp;gt;&amp;gt; .&lt;br /&gt;
done&lt;br /&gt;
lexiana@initq:~/junk$ ls -la&lt;br /&gt;
total 12&lt;br /&gt;
drwxrwxr-x  2 lexiana lexiana 4096 2012-01-24 21:34 .&lt;br /&gt;
drwxr-xr-x 62 lexiana lexiana 4096 2012-01-24 21:23 ..&lt;br /&gt;
-r--r--r--  1 lexiana lexiana   88 2012-01-24 21:34 file.c,v&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=Check out files=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
lexiana@initq:~/junk$ co -l file.c&lt;br /&gt;
file.c,v  --&amp;gt;  file.c&lt;br /&gt;
no revisions present; generating empty revision 0.0&lt;br /&gt;
co: warning: no revisions, so nothing can be locked&lt;br /&gt;
done&lt;br /&gt;
lexiana@initq:~/junk$ ls -la&lt;br /&gt;
total 12&lt;br /&gt;
drwxrwxr-x  2 lexiana lexiana 4096 2012-01-24 21:45 .&lt;br /&gt;
drwxr-xr-x 62 lexiana lexiana 4096 2012-01-24 21:40 ..&lt;br /&gt;
-rw-r--r--  1 lexiana lexiana    0 2012-01-24 21:45 file.c&lt;br /&gt;
-r--r--r--  1 lexiana lexiana   89 2012-01-24 21:45 file.c,v&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can edit file.c&lt;br /&gt;
&lt;br /&gt;
=Check in=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
lexiana@initq:~/junk$ ci -l file.c&lt;br /&gt;
file.c,v  &amp;lt;--  file.c&lt;br /&gt;
new revision: 1.3; previous revision: 1.2&lt;br /&gt;
enter log message, terminated with single '.' or end of file:&lt;br /&gt;
&amp;gt;&amp;gt; made 3rd change.&lt;br /&gt;
&amp;gt;&amp;gt; .&lt;br /&gt;
done&lt;br /&gt;
lexiana@initq:~/junk$ ls -la&lt;br /&gt;
total 16&lt;br /&gt;
drwxrwxr-x  2 lexiana lexiana 4096 2012-01-24 21:49 .&lt;br /&gt;
drwxr-xr-x 62 lexiana lexiana 4096 2012-01-24 21:49 ..&lt;br /&gt;
-rw-r--r--  1 lexiana lexiana   50 2012-01-24 21:49 file.c&lt;br /&gt;
-r--r--r--  1 lexiana lexiana  510 2012-01-24 21:49 file.c,v&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=History Status=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
rlog -b file.c&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Cheat sheet=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
 mkdir RCS&lt;br /&gt;
 rcs -i prod-processor.ksh&lt;br /&gt;
 co -l prod-processor.ksh&lt;br /&gt;
 vi prod-processor.ksh&lt;br /&gt;
 ci prod-processor.ksh&lt;br /&gt;
 co -r prod-processor.ksh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:RCS]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Vpnc_error</id>
		<title>Vpnc error</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Vpnc_error"/>
				<updated>2011-12-29T15:57:05Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;=Error: either &amp;quot;to&amp;quot; is duplicate, or &amp;quot;ipid&amp;quot; is a garbage.= To fixthi edit * /etc/vpnc/vpnc-script line 119 replace line with  &amp;lt;source lang=bash&amp;gt; sed 's/cache//;s/metric \?[0-9]\+...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Error: either &amp;quot;to&amp;quot; is duplicate, or &amp;quot;ipid&amp;quot; is a garbage.=&lt;br /&gt;
To fixthi edit&lt;br /&gt;
* /etc/vpnc/vpnc-script line 119&lt;br /&gt;
replace line with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit[0-9]\+//g;s/ipid 0x....//g'&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Caegory:vpnc]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Telnet</id>
		<title>Telnet</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Telnet"/>
				<updated>2011-12-29T15:19:05Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;{{DISPLAYTITLE:telnet}}  Category:Linux_Commands&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:telnet}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux_Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Ping</id>
		<title>Ping</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Ping"/>
				<updated>2011-12-27T14:40:56Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* --c flag count */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:ping}}&lt;br /&gt;
&lt;br /&gt;
=ping flood=&lt;br /&gt;
Only root can use the -f flag.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# ping -f jump221&lt;br /&gt;
PING jump221 (161.89.145.221) 56(84) bytes of data.&lt;br /&gt;
.^C &lt;br /&gt;
--- jump221 ping statistics ---&lt;br /&gt;
1507 packets transmitted, 1506 received, 0% packet loss, time 23438ms&lt;br /&gt;
rtt min/avg/max/mdev = 17.587/21.271/46.510/2.949 ms, pipe 4, ipg/ewma 15.563/20.038 ms&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1% or 2% packet loss is tolerable but not anymore. If you have more then you have network issues.&lt;br /&gt;
&lt;br /&gt;
=-I switch=&lt;br /&gt;
Use the -I flag to use a specific interface.&lt;br /&gt;
&lt;br /&gt;
=-n flag=&lt;br /&gt;
Numeric  output  only.  No attempt will be made to lookup symbolic names for host addresses.&lt;br /&gt;
=--c flag count=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
a507394@aowarll271:~$ ping -c 3 jump221&lt;br /&gt;
PING jump221 (161.89.145.221) 56(84) bytes of data.&lt;br /&gt;
64 bytes from jump221 (161.89.145.221): icmp_req=1 ttl=58 time=25.1 ms&lt;br /&gt;
64 bytes from jump221 (161.89.145.221): icmp_req=2 ttl=58 time=19.1 ms&lt;br /&gt;
64 bytes from jump221 (161.89.145.221): icmp_req=3 ttl=58 time=22.0 ms&lt;br /&gt;
&lt;br /&gt;
--- jump221 ping statistics ---&lt;br /&gt;
3 packets transmitted, 3 received, 0% packet loss, time 2002ms&lt;br /&gt;
rtt min/avg/max/mdev = 19.138/22.110/25.135/2.451 ms&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=-D date=&lt;br /&gt;
Unix date the ping results.&lt;br /&gt;
=-t ttl= &lt;br /&gt;
Set the IP Time to Live.&lt;br /&gt;
=-s packetsize=&lt;br /&gt;
Specifies  the  number of data bytes to be sent.  The default is 56, which translates into 64 ICMP data bytes when combined with the 8 bytes of ICMP header data.&lt;br /&gt;
[[Category:Linux_Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Nmap</id>
		<title>Nmap</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Nmap"/>
				<updated>2011-10-23T16:43:36Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* OS DETECTION */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:nmap}}&lt;br /&gt;
&lt;br /&gt;
=OS DETECTION=&lt;br /&gt;
  -O: Enable OS detection&lt;br /&gt;
  --osscan-limit: Limit OS detection to promising targets&lt;br /&gt;
  --osscan-guess: Guess OS more aggressively&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
nmap -O jump221&lt;br /&gt;
&lt;br /&gt;
Starting Nmap 5.21 ( http://nmap.org ) at 2011-12-27 12:34 CST&lt;br /&gt;
Nmap scan report for jump221 (161.89.145.221)&lt;br /&gt;
Host is up (0.023s latency).&lt;br /&gt;
Not shown: 995 closed ports&lt;br /&gt;
PORT     STATE SERVICE&lt;br /&gt;
21/tcp   open  ftp&lt;br /&gt;
22/tcp   open  ssh&lt;br /&gt;
80/tcp   open  http&lt;br /&gt;
111/tcp  open  rpcbind&lt;br /&gt;
3306/tcp open  mysql&lt;br /&gt;
Device type: general purpose&lt;br /&gt;
Running: Linux 2.6.X&lt;br /&gt;
OS details: Linux 2.6.18 (CentOS 5.1, x86)&lt;br /&gt;
Network Distance: 6 hops&lt;br /&gt;
&lt;br /&gt;
OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .&lt;br /&gt;
Nmap done: 1 IP address (1 host up) scanned in 8.44 seconds&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* nmap -A -T4 scanme.nmap.org&lt;br /&gt;
&lt;br /&gt;
The only Nmap arguments used in this example are -A, to enable OS and version detection, script scanning, and traceroute; -T4 for faster execution; and then the two target hostnames.&lt;br /&gt;
&lt;br /&gt;
=Multiple address=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ nmap 161.89.145.220-221&lt;br /&gt;
&lt;br /&gt;
Starting Nmap 5.21 ( http://nmap.org ) at 2011-12-27 12:29 CST&lt;br /&gt;
Nmap scan report for jump220 (161.89.145.220)&lt;br /&gt;
Host is up (0.024s latency).&lt;br /&gt;
Not shown: 985 closed ports&lt;br /&gt;
PORT     STATE SERVICE&lt;br /&gt;
22/tcp   open  ssh&lt;br /&gt;
23/tcp   open  telnet&lt;br /&gt;
135/tcp  open  msrpc&lt;br /&gt;
139/tcp  open  netbios-ssn&lt;br /&gt;
445/tcp  open  microsoft-ds&lt;br /&gt;
1025/tcp open  NFS-or-IIS&lt;br /&gt;
1033/tcp open  netinfo&lt;br /&gt;
1039/tcp open  unknown&lt;br /&gt;
2301/tcp open  compaqdiag&lt;br /&gt;
2381/tcp open  unknown&lt;br /&gt;
3389/tcp open  ms-term-serv&lt;br /&gt;
5555/tcp open  freeciv&lt;br /&gt;
5800/tcp open  vnc-http&lt;br /&gt;
5900/tcp open  vnc&lt;br /&gt;
8081/tcp open  blackice-icecap&lt;br /&gt;
&lt;br /&gt;
Nmap scan report for jump221 (161.89.145.221)&lt;br /&gt;
Host is up (0.025s latency).&lt;br /&gt;
Not shown: 995 closed ports&lt;br /&gt;
PORT     STATE SERVICE&lt;br /&gt;
21/tcp   open  ftp&lt;br /&gt;
22/tcp   open  ssh&lt;br /&gt;
80/tcp   open  http&lt;br /&gt;
111/tcp  open  rpcbind&lt;br /&gt;
3306/tcp open  mysql&lt;br /&gt;
&lt;br /&gt;
Nmap done: 2 IP addresses (2 hosts up) scanned in 7.87 seconds&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/NTP_Server</id>
		<title>NTP Server</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/NTP_Server"/>
				<updated>2011-10-20T14:29:47Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* Kernel Time */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Network Time Protocol (NTP) is a protocol used to help synchronize your Linux system's clock with an accurate time source. There are that allow the general public to synchronize with them. They are divided into two types: &lt;br /&gt;
&lt;br /&gt;
*    Stratum 1: NTP sites using an atomic clock for timing.&lt;br /&gt;
*    Stratum 2: NTP sites with slightly less accurate time sources. &lt;br /&gt;
&lt;br /&gt;
It is good practice to have at least one server on your network be the local time server for all your other devices. This makes the correlation of system events on different systems much easier. It also reduces Internet bandwidth usage due to NTP traffic and reduces the need to manage firewall rules for each NTP client on your network. Sometimes, not all your servers will have Internet access; in such cases you'll need a central server that all can access. &lt;br /&gt;
&lt;br /&gt;
=Download and install=&lt;br /&gt;
==Debian==&lt;br /&gt;
* apt-get install ntp&lt;br /&gt;
&lt;br /&gt;
==RedHat==&lt;br /&gt;
* yum install ntp&lt;br /&gt;
* chkconfig ntpd on&lt;br /&gt;
&lt;br /&gt;
=/etc/ntp.conf File=&lt;br /&gt;
The /etc/ntp.conf file is the main configuration file for Linux NTP in which you place the IP addresses of the stratum 1 and stratum 2 servers you want to use. Here are the steps to create a configuration file using a pair of sample Internet-based NTP servers: &lt;br /&gt;
&lt;br /&gt;
==Different ntp servers==&lt;br /&gt;
1) First we specify the servers you're interested in: &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
server 0.rhel.pool.ntp.org&lt;br /&gt;
server 1.rhel.pool.ntp.org&lt;br /&gt;
server 2.rhel.pool.ntp.org&lt;br /&gt;
&lt;br /&gt;
server 0.freebsd.pool.ntp.org iburst maxpoll 9&lt;br /&gt;
server 1.freebsd.pool.ntp.org iburst maxpoll 9&lt;br /&gt;
server 2.freebsd.pool.ntp.org iburst maxpoll 9&lt;br /&gt;
&lt;br /&gt;
server 0.ubuntu.pool.ntp.org&lt;br /&gt;
server 1.ubuntu.pool.ntp.org&lt;br /&gt;
server 2.ubuntu.pool.ntp.org&lt;br /&gt;
server 3.ubuntu.pool.ntp.org&lt;br /&gt;
&lt;br /&gt;
server 0.debian.pool.ntp.org iburst dynamic&lt;br /&gt;
server 1.debian.pool.ntp.org iburst dynamic&lt;br /&gt;
server 2.debian.pool.ntp.org iburst dynamic&lt;br /&gt;
server 3.debian.pool.ntp.org iburst dynamic&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2) Restrict the type of access you allow these servers. In this example the servers are not allowed to modify the run-time configuration or query your Linux NTP server. &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
restrict default ignore&lt;br /&gt;
&lt;br /&gt;
restrict otherntp.server.org   mask 255.255.255.255 nomodify notrap noquery&lt;br /&gt;
restrict ntp.research.gov      mask 255.255.255.255 nomodify notrap noquery&lt;br /&gt;
&lt;br /&gt;
restrict -4 default kod notrap nomodify nopeer noquery&lt;br /&gt;
restrict -6 default kod notrap nomodify nopeer noquery&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
restrict default ignore will deny all access to any machine, server and client.&lt;br /&gt;
&lt;br /&gt;
The mask 255.255.255.255 statement is really a subnet mask limiting access to the single IP address of the remote NTP servers. &lt;br /&gt;
&lt;br /&gt;
3) If this server is also going to provide time for other computers, such as PCs, other Linux servers and networking devices, then you'll have to define the networks from which this server will accept NTP synchronization requests. You do so with a modified restrict statement removing the noquery keyword to allow the network to query your NTP server. The syntax is: &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
In this case the mask statement has been expanded to include all 255 possible IP addresses on the local network. &lt;br /&gt;
&lt;br /&gt;
4) We also want to make sure that localhost (the universal IP address used to refer to a Linux server itself) has full access without any restricting keywords: &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
restrict 127.0.0.1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
5) Save the file and restart NTP for these settings to take effect. You can now configure other Linux hosts on your network to synchronize with this new master NTP server in a similar fashion.&lt;br /&gt;
&lt;br /&gt;
=Get NTP Started =&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@bigboy tmp]# service ntpd start&lt;br /&gt;
[root@bigboy tmp]# service ntpd stop&lt;br /&gt;
[root@bigboy tmp]# service ntpd restart&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=Verifying NTP is Running =&lt;br /&gt;
* Port 123&lt;br /&gt;
* Protocol UDP&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@bigboy tmp]# pgrep ntpd&lt;br /&gt;
8038&lt;br /&gt;
[root@cluster1 .ssh]# netstat -nutlp | grep ntpd&lt;br /&gt;
udp        0      0 192.168.1.26:123            0.0.0.0:*                               8038/ntpd           &lt;br /&gt;
udp        0      0 192.168.56.102:123          0.0.0.0:*                               8038/ntpd           &lt;br /&gt;
udp        0      0 127.0.0.1:123               0.0.0.0:*                               8038/ntpd           &lt;br /&gt;
udp        0      0 0.0.0.0:123                 0.0.0.0:*                               8038/ntpd           &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Doing An Initial Synchronization=&lt;br /&gt;
If the time on the local server is very different from that of its primary time server your NTP daemon will eventually terminate itself leaving an error message in the /var/log/messages file. You should run the ntpdate -u command to force your server to become instantly synchronized with its NTP servers before starting the NTP daemon for the first time. The ntpdate command doesn't run continuously in the background, you will still have to run the ntpd daemon to get continuous NTP updates.&lt;br /&gt;
&lt;br /&gt;
Take a look at some sample output of the ntpdate command in which a server whose initial time was set to midnight, was correctly set to 8:03 am. &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@smallfry tmp]# date&lt;br /&gt;
Thu Aug 12 00:00:00 PDT 2004&lt;br /&gt;
[root@smallfry tmp]#&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The ntpdate command is run three times to synchronize smallfry's clock to server 192.168.1.100, but it must be run while the ntpd process is stopped. So you'll have to stop ntpd, run ntpdate and then start ntpd again. &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@smallfry tmp]# service ntpd stop&lt;br /&gt;
[root@smallfry tmp]# ntpdate -u 192.168.1.100&lt;br /&gt;
Looking for host 192.168.1.100 and service ntp&lt;br /&gt;
host found : bigboy.my-site.com&lt;br /&gt;
12 Aug 08:03:38 ntpdate[2472]: step time server 192.168.1.100 offset 28993.084943 sec&lt;br /&gt;
[root@smallfry tmp]# ntpdate -u 192.168.1.100&lt;br /&gt;
Looking for host 192.168.1.100 and service ntp&lt;br /&gt;
host found : bigboy.my-site.com&lt;br /&gt;
12 Aug 08:03:40 ntpdate[2472]: step time server 192.168.1.100 offset 2.467652 sec&lt;br /&gt;
[root@smallfry tmp]# ntpdate -u 192.168.1.100&lt;br /&gt;
Looking for host 192.168.1.100 and service ntp&lt;br /&gt;
host found : bigboy.my-site.com&lt;br /&gt;
12 Aug 08:03:42 ntpdate[2472]: step time server 192.168.1.100 offset 0.084943 sec&lt;br /&gt;
[root@smallfry tmp]# service ntpd start&lt;br /&gt;
[root@smallfry tmp]#&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The date is now corrected. &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@smallfry tmp]# date&lt;br /&gt;
Thu Aug 12 08:03:45 PDT 2004&lt;br /&gt;
[root@smallfry tmp]#&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=Determining If NTP Is Synchronized Properly=&lt;br /&gt;
Use the ntpq command to see the servers with which you are synchronized. It provided you with a list of configured time servers and the delay, offset and jitter that your server is experiencing with them. For correct synchronization, the delay and offset values should be non-zero and the jitter value should be under 100. &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@cluster1 ~]# ntpq -p&lt;br /&gt;
     remote           refid      st t when poll reach   delay   offset  jitter&lt;br /&gt;
==============================================================================&lt;br /&gt;
 rdns01.nexcess. 66.219.116.140   2 u   59   64  377   11.843  1434754 295744.&lt;br /&gt;
 tuppy.intrepidh 173.201.38.85    3 u   62   64  377   14.909  1658350 344907.&lt;br /&gt;
 elle.fallingsno 72.20.40.62      3 u   55   64  377   15.011  1439944 295244.&lt;br /&gt;
*LOCAL(0)        .LOCL.          10 l   54   64  377    0.000    0.000   0.001&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=Linux NTP clients cannot Synchronize Properly=&lt;br /&gt;
A telltale sign that you haven't got proper synchronization is when all the remote servers have jitter, delay and reach values of 0. In some older versions of Fedora, the jitter values will be 4000. &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
remote           refid      st t when poll reach   delay   offset  jitter&lt;br /&gt;
=============================================================================&lt;br /&gt;
LOCAL(0)        LOCAL(0)        10 l    -   64    7    0.000    0.000   0.008&lt;br /&gt;
ntp-cup.externa 0.0.0.0         16 u    -   64    0    0.000    0.000   0.000&lt;br /&gt;
snvl-smtp1.trim 0.0.0.0         16 u    -   64    0    0.000    0.000   0.000&lt;br /&gt;
nist1.aol-ca.tr 0.0.0.0         16 u    -   64    0    0.000    0.000   0.000&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This could be caused by the following:&lt;br /&gt;
&lt;br /&gt;
*    Older versions of the NTP package that don't work correctly if you use the DNS name for the NTP servers. In these cases you will want to use the actual IP addresses instead.&lt;br /&gt;
*    A firewall blocking access to your Stratum 1 and 2 NTP servers. This could be located on one of the networks between the NTP server and its time source, or firewall software such as iptables could be running on the server itself.&lt;br /&gt;
*    The notrust nomodify notrap keywords are present in the restrict statement for the NTP client. In some versions of the Fedora Core 2's implementation of NTP, clients will not be able to synchronize with a Fedora Core 2 time server unless the notrust nomodify notrap keywords are removed from the NTP client's restrict statement. &lt;br /&gt;
&lt;br /&gt;
*    In this example the restrict statement has only the client network defined without any keywords and the configuration line that works with other NTP versions has been commented out: &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
# -- CLIENT NETWORK -------&lt;br /&gt;
#restrict 172.16.1.0 mask 255.255.255.0 notrust nomodify notrap&lt;br /&gt;
restrict 172.16.1.0 mask 255.255.255.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=Fedora Core 2 File Permissions=&lt;br /&gt;
All the Fedora/RedHat NTP daemons write temporary files to the /etc/ntp directory. Unfortunately, in Fedora Core 2, the permissions on this directory don't allow writing of temporary files. Instead you have to set the group and owner of the directory to be ntp. &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@bigboy tmp]# chown ntp:ntp /etc/ntp&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
If you don't, you'll get errors like this in the /var/log/messages file. &lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
Aug 12 00:29:45 smallfry ntpd[2097]: can't open /etc/ntp/drift.TEMP: Permission denied&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Time Not Syncing With Remote NTP Server=&lt;br /&gt;
Some users have observed that their system time is being synchronized to the remote server's time when xntpd initially starts, but then is only being synchronized to their local time thereafter. An example /var/log/ntp or messages would look like this:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
2 May 08:11:05 ntpd[2965]: synchronized to LOCAL(0), stratum 10&lt;br /&gt;
 2 May 08:11:05 ntpd[2965]: kernel time sync disabled 0041&lt;br /&gt;
 2 May 08:14:17 ntpd[2965]: synchronized to LOCAL(0), stratum 10&lt;br /&gt;
 2 May 08:26:13 ntpd[2965]: kernel time sync enabled 0001&lt;br /&gt;
 2 May 10:33:35 ntpd[3489]: synchronized to LOCAL(0), stratum 10&lt;br /&gt;
 2 May 10:33:35 ntpd[3489]: kernel time sync disabled 0041&lt;br /&gt;
&lt;br /&gt;
#  ntpq -p&lt;br /&gt;
&lt;br /&gt;
     remote           local      st poll reach  delay   offset    disp&lt;br /&gt;
=======================================================================&lt;br /&gt;
*LOCAL(0)        127.0.0.1       10 1024  377 0.00000  0.000000 0.11856&lt;br /&gt;
=prv-time.provo. 137.65.211.18    2 1024  377 0.00041 -262.1380 0.11470&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The solution is to make NTP more persistent when probing the remote time server. This is done by appending the flags burst and iburst to the remote server; burst tells NTP to send a burst of eight packets to the remote server instead of one when the server is reachable, and iburst tells it to do the same when the server is not reachable. The result is faster and more reliable synchronizations.&lt;br /&gt;
&lt;br /&gt;
They can also be added directly to the server in /etc/ntp.conf as follows:&lt;br /&gt;
&lt;br /&gt;
* server 137.65.1.123  burst iburst&lt;br /&gt;
=Check clock source=&lt;br /&gt;
* cat /sys/devices/system/clocksource/clocksource0/available_clocksource&lt;br /&gt;
tsc hpet acpi_pm jiffies&lt;br /&gt;
* cat /sys/devices/system/clocksource/clocksource0/current_clocksource&lt;br /&gt;
tsc&lt;br /&gt;
tsc hpet acpi_pm jiffies&lt;br /&gt;
&lt;br /&gt;
if you have experience with lockups, you shall try to use 'clocksource=hpet' or 'clocksource=jiffies'. And 'nohz=off' too.&lt;br /&gt;
&lt;br /&gt;
in your grub.conf or /boot/grub/menu.lst file, you can set: &lt;br /&gt;
* kernel   /vmlinuz-2.6.XXXX root=XXXX clocksource=acpi_pm ro quiet splash&lt;br /&gt;
&lt;br /&gt;
* clocksource=[hpet|pit|tsc|acpi_pm|cyclone|scx200_hrt]&lt;br /&gt;
&lt;br /&gt;
=Kernel Time=&lt;br /&gt;
To determine time you can use:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[joseg@dev03 proc]$ dmesg | grep time.c&lt;br /&gt;
time.c: Using 3.579545 MHz PM timer.&lt;br /&gt;
time.c: Detected 2599.956 MHz processor.&lt;br /&gt;
time.c: Using PM based timekeeping.&lt;br /&gt;
[joseg@dev03 proc]$ &lt;br /&gt;
&lt;br /&gt;
[joseg@prod03 ~]$ cat /proc/cmdline&lt;br /&gt;
ro root=LABEL=/ rhgb quiet nohpet nopmtimer console=tty0&lt;br /&gt;
[joseg@prod03 ~] &lt;br /&gt;
&lt;br /&gt;
Taken from Documentation/kernel-parameters.txt&lt;br /&gt;
&lt;br /&gt;
        clock=		[BUGS=X86-32, HW] gettimeofday clocksource override.&lt;br /&gt;
			[Deprecated]&lt;br /&gt;
			Forces specified clocksource (if available) to be used&lt;br /&gt;
			when calculating gettimeofday(). If specified&lt;br /&gt;
			clocksource is not available, it defaults to PIT.&lt;br /&gt;
			Format: { pit | tsc | cyclone | pmtmr }&lt;br /&gt;
&lt;br /&gt;
	clocksource=	Override the default clocksource&lt;br /&gt;
			Format: &amp;lt;string&amp;gt;&lt;br /&gt;
			Override the default clocksource and use the clocksource&lt;br /&gt;
			with the name specified.&lt;br /&gt;
			Some clocksource names to choose from, depending on&lt;br /&gt;
			the platform:&lt;br /&gt;
			[all] jiffies (this is the base, fallback clocksource)&lt;br /&gt;
			[ACPI] acpi_pm&lt;br /&gt;
			[ARM] imx_timer1,OSTS,netx_timer,mpu_timer2,&lt;br /&gt;
				pxa_timer,timer3,32k_counter,timer0_1&lt;br /&gt;
			[AVR32] avr32&lt;br /&gt;
			[X86-32] pit,hpet,tsc;&lt;br /&gt;
				scx200_hrt on Geode; cyclone on IBM x440&lt;br /&gt;
			[MIPS] MIPS&lt;br /&gt;
			[PARISC] cr16&lt;br /&gt;
			[S390] tod&lt;br /&gt;
			[SH] SuperH&lt;br /&gt;
			[SPARC64] tick&lt;br /&gt;
			[X86-64] hpet,tsc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1006427&lt;br /&gt;
[[Category:NTP]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Sysfs_and_procfs</id>
		<title>Sysfs and procfs</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Sysfs_and_procfs"/>
				<updated>2011-10-15T16:21:05Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;IIRC it was because /proc was meant to be to store process information but then turned into a maze of twisty directories with all sorts of random data dumped into it - including device information.&lt;br /&gt;
&lt;br /&gt;
Sysfs on the other hand is designed to be a representation of the kernel device model. For that reason stuff isn't just dumped in, the position of nodes with sysfs actually represents the hierachy of devices in relation to their subsytems.&lt;br /&gt;
&lt;br /&gt;
proc is the old one, it is more or less without rules and structure. And at some point it was decided that proc was a little to chaotic and a new way was needed.&lt;br /&gt;
&lt;br /&gt;
Then sysfs was created, and the new stuff that was added was put into sysfs like device information.&lt;br /&gt;
&lt;br /&gt;
So in some sense they do the same, but sysfs is a little bit more structured.&lt;br /&gt;
&lt;br /&gt;
    Why are they made as file systems?&lt;br /&gt;
&lt;br /&gt;
Unix philosophy tells us that everything is a file, therefore it was created so it behaves as files.&lt;br /&gt;
&lt;br /&gt;
    As I understand it, proc is just something to store the immediate info regarding the processes running in the system.&lt;br /&gt;
&lt;br /&gt;
Those parts has always been there and they will probably never move into sysfs.&lt;br /&gt;
&lt;br /&gt;
But there is more old stuff that you can find in proc, that has not been moved.&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Articles]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Udev</id>
		<title>Udev</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Udev"/>
				<updated>2011-10-15T15:40:16Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* Not Enough Major/Minor Number Pairs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hotplugging (which is the word used to describe the process of inserting devices into a running system) is achieved in a Linux distribution by a combination of three components:¬†Udev, HAL(Hardware Abstraction Layer), and Dbus.&lt;br /&gt;
&lt;br /&gt;
HAL (Hardware Abstraction Layer) is a daemon that allows desktop applications to readily access hardware information, to locate and use such hardware regardless of bus or device type. In this way a desktop GUI can present all resources to its user in a seamless and uniform manner. &lt;br /&gt;
&lt;br /&gt;
D-Bus is a message bus system that provides an easy way for inter-process communication. It consists of a daemon, which can be run both system-wide and for each user session, and a set of libraries to allow applications to use D-Bus. &lt;br /&gt;
&lt;br /&gt;
Udev supplies a dynamic device directory containing only the nodes for devices which are connected to the system. It creates or removes the device node files in the /dev directory as they are plugged in or taken out. Dbus is like a system bus which is used for inter-process communication. The HAL gets information from the Udev service, when a device is attached to the system and it creates an XML representation of that device. It then notifies the corresponding desktop application like Nautilus through the Dbus and Nautilus will open the mounted device files.&lt;br /&gt;
&lt;br /&gt;
=What is Udev?=&lt;br /&gt;
Udev is the device manager for the Linux 2.6 kernel that creates/removes device nodes in the /dev directory dynamically. It is the successor of devfs and hotplug. It runs in userspace and the user can change device names using Udev rules.&lt;br /&gt;
&lt;br /&gt;
Udev depends on the sysfs file system which was introduced in the 2.5 kernel. It is sysfs which makes devices visible in user space. When a device is added or removed, kernel events are produced which will notify Udev in user space.&lt;br /&gt;
&lt;br /&gt;
The external binary /sbin/hotplug was used in earlier releases to inform Udev about device state change. That has been replaced and Udev can now directly listen to those events through Netlink.&lt;br /&gt;
=Why Do We Need It ?=&lt;br /&gt;
In the older kernels, the /dev directory contained statics device files. But with dynamic device creation, device nodes for only those devices which are actually present in the system are created. Let us see the disadvantages of the static /dev directory, which led to the development of Udev.&lt;br /&gt;
=Problems Identifying the Exact Hardware Device for a Device Node in /dev=&lt;br /&gt;
The kernel will assign a major/minor number pair when it detects a hardware device while booting the system. Let us consider two hard disks. The connection/alignment is in such a way that one is connected as a master and the other, as a slave. The Linux system will call them,¬†/dev/hdaand¬†/dev/hdb. Now, if we interchange the disks the device name will change. This makes it difficult to identify the correct device that is related to the available static device node. The condition gets worse when there are a bunch of hard disks connected to the system.&lt;br /&gt;
&lt;br /&gt;
Udev provides a persistent device naming system through the /dev directory, making it easier to identify the device.&lt;br /&gt;
&lt;br /&gt;
The following is an example of persistent symbolic links created by Udev for the hard disks attached to a system.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$ ls -lR /dev/disk/&lt;br /&gt;
/dev/disk/by-id:&lt;br /&gt;
lrwxrwxrwx 1 root root 9 Jul 4 06:48 scsi-SATA_WDC_WD800JD-75M_WD-WMAM9UT48593 -&amp;gt; ../../sda¬†&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 scsi-SATA_WDC_WD800JD-75M_WD-WMAM9UT48593-part1 -&amp;gt; ../../sda1&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 scsi-SATA_WDC_WD800JD-75M_WD-WMAM9UT48593-part2 -&amp;gt; ../../sda2&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 scsi-SATA_WDC_WD800JD-75M_WD-WMAM9UT48593-part3 -&amp;gt; ../../sda3&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 scsi-SATA_WDC_WD800JD-75M_WD-WMAM9UT48593-part4 -&amp;gt; ../../sda4&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 scsi-SATA_WDC_WD800JD-75M_WD-WMAM9UT48593-part5 -&amp;gt; ../../sda5&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 scsi-SATA_WDC_WD800JD-75M_WD-WMAM9UT48593-part6 -&amp;gt; ../../sda6&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 scsi-SATA_WDC_WD800JD-75M_WD-WMAM9UT48593-part7 -&amp;gt; ../../sda7&lt;br /&gt;
/dev/disk/by-label:&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 1 -&amp;gt; ../../sda6&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 boot1 -&amp;gt; ../../sda2&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 project -&amp;gt; ../../sda3&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 SWAP-sda7 -&amp;gt; ../../sda7&lt;br /&gt;
/dev/disk/by-path:&lt;br /&gt;
lrwxrwxrwx 1 root root 9 Jul 4 06:48 pci-0000:00:1f.2-scsi-0:0:0:0 -&amp;gt; ../../sda&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 pci-0000:00:1f.2-scsi-0:0:0:0-part1 -&amp;gt; ../../sda1&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 pci-0000:00:1f.2-scsi-0:0:0:0-part2 -&amp;gt; ../../sda2&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 pci-0000:00:1f.2-scsi-0:0:0:0-part3 -&amp;gt; ../../sda3&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 pci-0000:00:1f.2-scsi-0:0:0:0-part4 -&amp;gt; ../../sda4&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 pci-0000:00:1f.2-scsi-0:0:0:0-part5 -&amp;gt; ../../sda5&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 pci-0000:00:1f.2-scsi-0:0:0:0-part6 -&amp;gt; ../../sda6&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 pci-0000:00:1f.2-scsi-0:0:0:0-part7 -&amp;gt; ../../sda7&lt;br /&gt;
/dev/disk/by-uuid:&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 18283DC6283DA422 -&amp;gt; ../../sda1&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 25a4068c-e84a-44ac-85e6-461b064d08cd -&amp;gt; ../../sda6&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 3ea7cf15-511b-407a-a56b-c6bfa046fd9f -&amp;gt; ../../sda5&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 8878a0a4-604e-4ddf-b62c-637c4fa84d3f -&amp;gt; ../../sda2&lt;br /&gt;
lrwxrwxrwx 1 root root 10 Jul 4 06:48 e50bcd6d-61ea-4b05-81a8-3cbe17ad6674 -&amp;gt; ../../sda3&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Persistent device naming helps to identify the hardware device without much trouble.&lt;br /&gt;
=Huge Number of Device Nodes in /dev=&lt;br /&gt;
In the static model of device node creation, no method was available to identify the hardware devices actually present in the system. So, device nodes were created for all the devices that Linux was known to support at the time. The huge mess of device nodes in /dev made it difficult to identify the devices actually present in the system.&lt;br /&gt;
=Not Enough Major/Minor Number Pairs=&lt;br /&gt;
The number of static device nodes to be included increased a lot in recent times and the 8-bit scheme, that was used, proved to be insufficient for handling all the devices. As a result the major/minor number pairs started running out.&lt;br /&gt;
&lt;br /&gt;
Major number is the controller and minor number is the device attached to that controller. &lt;br /&gt;
&lt;br /&gt;
Character devices and block devices have a fixed major/minor number pair assigned to them. The authority responsible for assigning the major/minor pair is the¬†Linux Assigned Name and Number Authority. But, a machine will not use all the available devices. So, there will be free major/minor numbers within a system. In such a situation, the kernel of that machine will borrow major/minor numbers from those free devices and assign those numbers to other devices which require it.&lt;br /&gt;
&lt;br /&gt;
This can create issues at times. The user space application which handles the device through the device node will not be aware of the number change. For the user space application, the device number assigned by LANANA is very important. So, the user space application should be informed about the major/minor number change. This is called dynamic assignment of major/minor numbers and Udev does this task.&lt;br /&gt;
&lt;br /&gt;
=Udev's Goals=&lt;br /&gt;
*    Run in user space.&lt;br /&gt;
*    Create persistent device names, take the device naming out of kernel space and implement rule based device naming.&lt;br /&gt;
*    Create a dynamic /dev with device nodes for devices present in the system and allocate major/minor numbers dynamically.&lt;br /&gt;
*    Provide a user space API to access the device information in the system.&lt;br /&gt;
&lt;br /&gt;
=Installation of Udev=&lt;br /&gt;
Udev is the default device manager in the 2.6 kernel. Almost all modern Linux distributions come with Udev as part of the default installation. You can also get Udev from¬†http://www.kernel.org/pub/linux/utils/kernel/hotplug/. The latest version of Udev needs the 2.6.25 kernel with sysfs, procfs, signalfd, inotify, Unix domain sockets, networking, and hotplug enabled.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
CONFIG_HOTPLUG=y&lt;br /&gt;
CONFIG_UEVENT_HELPER_PATH=‚Äù&amp;quot;&lt;br /&gt;
CONFIG_NET=y&lt;br /&gt;
CONFIG_UNIX=y&lt;br /&gt;
CONFIG_SYSFS=y&lt;br /&gt;
CONFIG_SYSFS_DEPRECATED*=n&lt;br /&gt;
CONFIG_PROC_FS=y&lt;br /&gt;
CONFIG_TMPFS=y&lt;br /&gt;
CONFIG_TMPFS_POSIX_ACL=y¬†&lt;br /&gt;
CONFIG_INOTIFY=y&lt;br /&gt;
CONFIG_SIGNALFD=y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
For a much more reliable operation, the kernel must not use the CONFIG_SYSFS_DEPRECATED* option.&lt;br /&gt;
&lt;br /&gt;
Udev depends on the proc and sys file systems and they must be mounted on /proc and /sys.&lt;br /&gt;
=Working of Udev=&lt;br /&gt;
The Udev daemon listens to the netlink socket that the kernel uses for communicating with user space applications. The kernel will send a bunch of data through the netlink socket when a device is added to, or removed from a system. The Udev daemon catches all this data and will do the rest, i.e., device node creation, module loading etc.&lt;br /&gt;
=Kernel Device Event Management=&lt;br /&gt;
*    When bootup is initialized, the /dev directory is mounted in tmpfs.&lt;br /&gt;
*    After that, Udev will copy the static device nodes from¬†/lib/udev/devices¬†to the /dev directory.&lt;br /&gt;
*    The Udev daemon then runs and collects uevents from the kernel, for all the devices connected to the system.&lt;br /&gt;
*    The Udev daemon will parse the uevent data and it will match the data with the rules specified in¬†/etc/udev/rules.d.&lt;br /&gt;
*    It will create the device nodes and symbolic links for the devices as specified in the rules.&lt;br /&gt;
*    The Udev daemon reads the rules from¬†/etc/udev/rules.d/*.rules and stores them in the memory.&lt;br /&gt;
*    Udev will receive an inotify event, if any rules were changed. It will read the changes and will update the memory.&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.s/11-automount-cds.rules&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
KERNEL!=&amp;quot;sr[0-9]*&amp;quot;, GOTO=&amp;quot;disc_by_label_auto_mount_end&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Get label&lt;br /&gt;
ACTION==&amp;quot;add&amp;quot;, PROGRAM==&amp;quot;/sbin/blkid -o value -s LABEL %E{device}&amp;quot;, ENV{dir_name}=&amp;quot;%c&amp;quot;&lt;br /&gt;
&lt;br /&gt;
ACTION==&amp;quot;add&amp;quot;, RUN+=&amp;quot;/bin/mkdir -p '/media/%E{dir_name}'&amp;quot;, RUN+=&amp;quot;/bin/mount -o %E{mount_options} /dev/%k '/media/%E{dir_name}'&amp;quot;&lt;br /&gt;
ACTION==&amp;quot;add&amp;quot;, RUN+=&amp;quot;/bin/ln -s /media/%E{dir_name} /media/disc&amp;quot;&lt;br /&gt;
ACTION==&amp;quot;remove&amp;quot;, RUN+=&amp;quot;/bin/umount -l '/media/%E{dir_name}'&amp;quot;, RUN+=&amp;quot;/bin/rmdir '/media/%E{dir_name}'&amp;quot;&lt;br /&gt;
&lt;br /&gt;
LABEL=&amp;quot;disc_by_label_auto_mount_end&amp;quot;&lt;br /&gt;
&lt;br /&gt;
KERNEL!=&amp;quot;sr[0-9]*&amp;quot;, GOTO=&amp;quot;disc_by_label_auto_mount_end&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Import FS infos&lt;br /&gt;
IMPORT{program}=&amp;quot;/sbin/blkid -o udev -p %N&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Get a label if present, otherwise specify one&lt;br /&gt;
ENV{ID_FS_LABEL}!=&amp;quot;&amp;quot;, ENV{dir_name}=&amp;quot;%E{ID_FS_LABEL}&amp;quot;&lt;br /&gt;
ENV{ID_FS_LABEL}==&amp;quot;&amp;quot;, ENV{dir_name}=&amp;quot;%k&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Mount the device&lt;br /&gt;
ACTION==&amp;quot;add&amp;quot;, RUN+=&amp;quot;/bin/mkdir -p /media/%E{dir_name}&amp;quot;, RUN+=&amp;quot;/bin/mount /dev/%k /media/%E{dir_name}&amp;quot;&lt;br /&gt;
ACTION==&amp;quot;add&amp;quot;, RUN+=&amp;quot;/bin/ln -s /media/%E{dir_name} /media/disc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Clean up after removal&lt;br /&gt;
ACTION==&amp;quot;remove&amp;quot;, ENV{dir_name}!=&amp;quot;&amp;quot;, RUN+=&amp;quot;/bin/umount -l /media/%E{dir_name}&amp;quot;, RUN+=&amp;quot;/bin/rmdir /media/%E{dir_name}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Exit&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Device Driver Loading For Devices=&lt;br /&gt;
Udev uses the modalias method to load device drivers. The modalias file located at/lib/modules/`uname -r`/modules.alias¬†helps Udev to load the drivers. The modalias file is created by the depmod binary and it contains alternate names for the device drivers.&lt;br /&gt;
&lt;br /&gt;
Let us examine an example of device driver loading in Linux :&lt;br /&gt;
&lt;br /&gt;
I am using a C program to collect data from the netlink socket that Udev uses to create device nodes and load modules.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@arch ~]# ./a.out&lt;br /&gt;
add@/devices/pci0000:00/0000:00:02.1/usb1/1-4&lt;br /&gt;
ACTION=add&lt;br /&gt;
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-4&lt;br /&gt;
SUBSYSTEM=usb&lt;br /&gt;
MAJOR=189&lt;br /&gt;
MINOR=1&lt;br /&gt;
DEVTYPE=usb_device&lt;br /&gt;
DEVICE=/proc/bus/usb/001/002&lt;br /&gt;
PRODUCT=1058/1010/105&lt;br /&gt;
TYPE=0/0/0&lt;br /&gt;
BUSNUM=001&lt;br /&gt;
DEVNUM=002&lt;br /&gt;
SEQNUM=1163&lt;br /&gt;
add@/devices/pci0000:00/0000:00:02.1/usb1/1-4/1-4:1.0&lt;br /&gt;
ACTION=add&lt;br /&gt;
DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-4/1-4:1.0&lt;br /&gt;
SUBSYSTEM=usb&lt;br /&gt;
DEVTYPE=usb_interface&lt;br /&gt;
DEVICE=/proc/bus/usb/001/002&lt;br /&gt;
PRODUCT=1058/1010/105 ‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶‚Ä¶&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
You can see that it provides a lot of information about the device. This includes the modalias variable that tells Udev to load a particular module.&lt;br /&gt;
&lt;br /&gt;
The modalias data will look like :&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
MODALIAS=pci:v000010ECd00008169sv00001385sd0000311Abc02sc00i00&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The modalias data contains all the information required to find the corresponding device driver :&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
pci :- Its a pci device¬†&lt;br /&gt;
v :- vendor ID of the device. Here it is 000010EC ( ie 10EC )&lt;br /&gt;
d :- device ID of the device. Here it is 00008169 ( ie : 8169 )&lt;br /&gt;
sv and sd are subsystem versions for both vendor and device.¬†&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The best place to find the vendor/product from the id of a PCI device is¬†http://www.pcidatabase.com.&lt;br /&gt;
&lt;br /&gt;
Udev uses the modalias data to find the correct device driver from¬†/lib/modules/`uname -r`/modules.alias.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$ grep -i 10EC /lib/modules/`uname -r`/modules.alias | grep -i 8169&lt;br /&gt;
alias pci:v000010ECd00008129sv*sd*bc*sc*i* r8169&lt;br /&gt;
alias pci:v000010ECd00008169sv*sd*bc*sc*i* r8169&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
You can see that the module which is suitable for the device is r8169. Let us get some more information about the driver.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$ /sbin/modinfo r8169&lt;br /&gt;
filename: /lib/modules/2.6.18-53.el5/kernel/drivers/net/r8169.ko&lt;br /&gt;
version: 2.2LK-NAPI&lt;br /&gt;
license: GPL&lt;br /&gt;
description: RealTek RTL-8169 Gigabit Ethernet driver&lt;br /&gt;
author: Realtek and the Linux r8169 crew¬†&lt;br /&gt;
srcversion: D5EDA4980B92CA2CF677B62&lt;br /&gt;
alias: pci:v00001737d00001032sv*sd00000024bc*sc*i*&lt;br /&gt;
alias: pci:v000016ECd00000116sv*sd*bc*sc*i*&lt;br /&gt;
alias: pci:v00001186d00004300sv*sd*bc*sc*i*&lt;br /&gt;
alias: pci:v000010ECd00008129sv*sd*bc*sc*i*&lt;br /&gt;
alias: pci:v000010ECd00008169sv*sd*bc*sc*i*&lt;br /&gt;
depends:&lt;br /&gt;
vermagic: 2.6.18-53.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1&lt;br /&gt;
parm: media:force phy operation. Deprecated by ethtool (8). (array of int)&lt;br /&gt;
parm: rx_copybreak:Copy breakpoint for copy-only-tiny-frames (int)&lt;br /&gt;
parm: use_dac:Enable PCI DAC. Unsafe on 32 bit PCI slot. (int)&lt;br /&gt;
parm: debug:Debug verbosity level (0=none, ‚Ä¶, 16=all) (int)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Check out the line starting with ‚Äúdepends‚Äù. It describes the other modules which the r8169 module depends on. Udev will load these modules also.&lt;br /&gt;
=Rule Processing and Device Node Creation=&lt;br /&gt;
As already mentioned, Udev parses the rules in/etc/udev/rules.d/¬†for every device state change in the kernel. The Udev rule can be used to manipulate the device node name/permission/symlink in user space.&lt;br /&gt;
&lt;br /&gt;
Let us see some sample rules that will help you understand Udev rules better.&lt;br /&gt;
&lt;br /&gt;
The data supplied by the kernel through netlink is used by Udev to create the device nodes. The data includes the major/minor number pair and other device specific data such as device/vendor id, device serial number etc. The Udev rule can match all this data to change the name of the device node, create symbolic links or register the network link.&lt;br /&gt;
&lt;br /&gt;
The following example shows how to write a Udev rule to rename the network device in a system.&lt;br /&gt;
&lt;br /&gt;
We need to get the device information to create a rule.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
# udevadm info -a -p /sys/class/net/eth0/&lt;br /&gt;
&lt;br /&gt;
llooking at device '/devices/pci0000:00/0000:00:04.0/0000:01:06.0/net/eth0':&lt;br /&gt;
KERNEL==‚Äùeth0‚Ä≥&lt;br /&gt;
SUBSYSTEM==‚Äùnet‚Äù&lt;br /&gt;
DRIVER==‚Äù&amp;quot;&lt;br /&gt;
ATTR{addr_len}==‚Äù6‚Ä≥&lt;br /&gt;
ATTR{dev_id}==‚Äù0√ó0‚Ä≥&lt;br /&gt;
ATTR{ifalias}==‚Äù&amp;quot;&lt;br /&gt;
ATTR{iflink}==‚Äù3‚Ä≥&lt;br /&gt;
ATTR{ifindex}==‚Äù3‚Ä≥&lt;br /&gt;
ATTR{features}==‚Äù0√ó829‚Ä≥&lt;br /&gt;
ATTR{type}==‚Äù1‚Ä≥&lt;br /&gt;
ATTR{link_mode}==‚Äù0‚Ä≥&lt;br /&gt;
ATTR{address}==‚Äù00:80:48:62:2a:33‚Ä≥&lt;br /&gt;
ATTR{broadcast}==‚Äùff:ff:ff:ff:ff:ff‚Äù&lt;br /&gt;
ATTR{carrier}==‚Äù1‚Ä≥&lt;br /&gt;
ATTR{dormant}==‚Äù0‚Ä≥&lt;br /&gt;
ATTR{operstate}==‚Äùunknown‚Äù&lt;br /&gt;
ATTR{mtu}==‚Äù1500‚Ä≥&lt;br /&gt;
ATTR{flags}==‚Äù0√ó1003‚Ä≥&lt;br /&gt;
ATTR{tx_queue_len}==‚Äù1000‚Ä≥&lt;br /&gt;
looking at parent device ‚Äò/devices/pci0000:00/0000:00:04.0/0000:01:06.0‚Ä≤:&lt;br /&gt;
KERNELS==‚Äù0000:01:06.0‚Ä≥&lt;br /&gt;
SUBSYSTEMS==‚Äùpci‚Äù&lt;br /&gt;
DRIVERS==‚Äù8139too‚Äù&lt;br /&gt;
ATTRS{vendor}==‚Äù0√ó10ec‚Äù&lt;br /&gt;
ATTRS{device}==‚Äù0√ó8139‚Ä≥&lt;br /&gt;
ATTRS{subsystem_vendor}==‚Äù0√ó10ec‚Äù&lt;br /&gt;
ATTRS{subsystem_device}==‚Äù0√ó8139‚Ä≥&lt;br /&gt;
ATTRS{class}==‚Äù0√ó020000‚Ä≥&lt;br /&gt;
ATTRS{irq}==‚Äù19‚Ä≥&lt;br /&gt;
ATTRS{local_cpus}==‚Äùff‚Äù&lt;br /&gt;
ATTRS{local_cpulist}==‚Äù0-7‚Ä≥&lt;br /&gt;
ATTRS{modalias}==‚Äùpci:v000010ECd00008139sv000010ECsd00008139bc02sc00i00‚Ä≥&lt;br /&gt;
ATTRS{enable}==‚Äù1‚Ä≥&lt;br /&gt;
ATTRS{broken_parity_status}==‚Äù0‚Ä≥&lt;br /&gt;
ATTRS{msi_bus}==‚Äù&amp;quot;&lt;br /&gt;
looking at parent device ‚Äò/devices/pci0000:00/0000:00:04.0‚Ä≤:&lt;br /&gt;
KERNELS==‚Äù0000:00:04.0‚Ä≥&lt;br /&gt;
SUBSYSTEMS==‚Äùpci‚Äù&lt;br /&gt;
DRIVERS==‚Äù&amp;quot;&lt;br /&gt;
ATTRS{vendor}==‚Äù0√ó10de‚Äù&lt;br /&gt;
ATTRS{device}==‚Äù0√ó03f3‚Ä≥&lt;br /&gt;
ATTRS{subsystem_vendor}==‚Äù0√ó0000‚Ä≥&lt;br /&gt;
ATTRS{subsystem_device}==‚Äù0√ó0000‚Ä≥&lt;br /&gt;
ATTRS{class}==‚Äù0√ó060401‚Ä≥&lt;br /&gt;
ATTRS{irq}==‚Äù0‚Ä≥&lt;br /&gt;
ATTRS{local_cpus}==‚Äùff‚Äù&lt;br /&gt;
ATTRS{local_cpulist}==‚Äù0-7‚Ä≥&lt;br /&gt;
ATTRS{modalias}==‚Äùpci:v000010DEd000003F3sv00000000sd00000000bc06sc04i01‚Ä≥&lt;br /&gt;
ATTRS{enable}==‚Äù1‚Ä≥&lt;br /&gt;
ATTRS{broken_parity_status}==‚Äù0‚Ä≥&lt;br /&gt;
ATTRS{msi_bus}==‚Äù1‚Ä≥&lt;br /&gt;
looking at parent device ‚Äò/devices/pci0000:00‚Ä≤:&lt;br /&gt;
KERNELS==‚Äùpci0000:00‚Ä≥&lt;br /&gt;
SUBSYSTEMS==‚Äù&amp;quot;&lt;br /&gt;
DRIVERS==‚Äù&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
You can see that Udev has a lot of information about the network device. Let us examine it in detail :&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
KERNEL==&amp;quot;eth0&amp;quot; :- kernel name of the device is eth0&lt;br /&gt;
DRIVERS==‚Äù8139too‚Äù :- driver loaded is 8139too&lt;br /&gt;
ATTR{address}==‚Äù00:80:48:62:2a:33‚Ä≥ :- hardware address of the device&lt;br /&gt;
ATTRS{vendor}==‚Äù0√ó10ec‚Äù :- vendor id&lt;br /&gt;
ATTRS{device}==‚Äù0√ó8139‚Ä≥ :- device id&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Let us create a rule to rename this network device to eth1 (This name will be persistent and will not be reset after a reboot).&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@arch ~]# cat /etc/udev/rules.d/70-persistent-net.rules&lt;br /&gt;
SUBSYSTEM==‚Äùnet‚Äù, ACTION==‚Äùadd‚Äù, DRIVERS==‚Äù?*‚Äù, ATTR{address}==‚Äù00:80:48:62:2a:33‚Ä≥, ATTR{type}==‚Äù1‚Ä≥, KERNEL==‚Äùeth*‚Äù, NAME=‚Äùeth1‚Ä≥&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This rule renames the device to eth1. We can easily manage the network and other device nodes in the system, this way.&lt;br /&gt;
=Udev Utilities=&lt;br /&gt;
Udev provides some user space utilities to manage devices and device nodes in a system. One such command that you will find in all of the latest Linux distributions is ‚Äòudevadm‚Äô. The udevadm command is functionally capable of doing all the tasks which were done by the separate commands shown above.&lt;br /&gt;
&lt;br /&gt;
This utility can be used to regenerate the device nodes in a running system as shown:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@arch ~]# ls -l /dev/ | wc -l&lt;br /&gt;
150&lt;br /&gt;
[root@arch ~]# rm -rf /dev/*&lt;br /&gt;
rm: cannot remove `/dev/pts/0‚Ä≤: Operation not permitted&lt;br /&gt;
rm: cannot remove directory `/dev/shm‚Äô: Device or resource busy&lt;br /&gt;
[root@arch ~]# ls -l /dev/ | wc -l&lt;br /&gt;
4&lt;br /&gt;
[root@arch ~]# udevadm trigger&lt;br /&gt;
[root@arch ~]# ls -l /dev/ | wc -l&lt;br /&gt;
150&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
There are many other useful operations that can be done using the udevadm command. You can get more information from the man page of udevadm.&lt;br /&gt;
=What is the Future of Udev ?=&lt;br /&gt;
It is impossible to predict the future of a Linux sub system. Linux is undergoing rapid development and it is probably not wise to predict the future of the Linux kernel. The DEVfs system which was introduced as a solution to static device nodes disappeared within a short span of time. But Udev has proven to be a successful device manager for the modern Linux kernel, and promises to be a more stable, feature rich device management system in future releases.&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Articles]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Setting_up_Bind</id>
		<title>Setting up Bind</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Setting_up_Bind"/>
				<updated>2011-10-06T21:00:10Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* Complete Zone Datafiles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We will make a movie dns. &lt;br /&gt;
&lt;br /&gt;
=db.DOMAIN=&lt;br /&gt;
File that maps hostnames to addresses is called db.domian. We will call ours db.movie.edu.&lt;br /&gt;
&lt;br /&gt;
=db.ADDR=&lt;br /&gt;
The files mapping addresses to hostnames are called db.ADDR, where ADDR is the network number without training zeros.  In our example these files will be db.192.249.249 and db.192.253.253&lt;br /&gt;
&lt;br /&gt;
The db.domain and db.addr are called zone datafiles. The format of these files is called master file format.&lt;br /&gt;
&lt;br /&gt;
=db.cache=&lt;br /&gt;
&lt;br /&gt;
=db.127.0.0=&lt;br /&gt;
&lt;br /&gt;
The db.cache and db.127.0.0 files are called overhead.&lt;br /&gt;
&lt;br /&gt;
To tie all these files together you need a named.conf file.&lt;br /&gt;
&lt;br /&gt;
=Zone DataFiles=&lt;br /&gt;
&lt;br /&gt;
* TTL&lt;br /&gt;
* SOA record (start of authority for this zone)&lt;br /&gt;
* NS record (lists a nameserver for this zone)&lt;br /&gt;
* Other records (data about hosts in this zone)&lt;br /&gt;
* A (name-to-address mapping)&lt;br /&gt;
* PTR (name-to-address mapping)&lt;br /&gt;
* CNAME (canonical name of aliases)&lt;br /&gt;
comments start with a semicolon.&lt;br /&gt;
==Setting the zone default TTL==&lt;br /&gt;
We add the following resource record to db.movie.edu file.&lt;br /&gt;
&lt;br /&gt;
$TTL 3h&lt;br /&gt;
&lt;br /&gt;
==SOA Records==&lt;br /&gt;
We add the following resource record to db.movie.edu file.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
movie.edu. IN SOA toystory.movie.edu. al.movie.edu. (&lt;br /&gt;
                        1       ; Serial&lt;br /&gt;
                        3h      ; Refresh after 3 hours&lt;br /&gt;
                        1h      ; Retry after 1 hour&lt;br /&gt;
                        1w      ; Expire after 1 week&lt;br /&gt;
                        1h )    ; Negative caching TTL of 1 hour&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==NS Records==&lt;br /&gt;
Here is the information about our two name servers. We add the following resource record to db.movie.edu file.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
; NS Record&lt;br /&gt;
movie.edu.      IN NS toystory.movie.edu.&lt;br /&gt;
movie.edu.      IN NS wormhole.movie.edu.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Address and Alias Records==&lt;br /&gt;
Next, we create name-to-address mappings. We add the following resource record to db.movie.edu file.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
;&lt;br /&gt;
; Host addresses&lt;br /&gt;
;&lt;br /&gt;
localhost.movie.edu.          IN A       127.0.0.1&lt;br /&gt;
shrek.movie.edu.              IN A       192.249.249.2&lt;br /&gt;
toystory.movie.edu.           IN A       192.249.249.3&lt;br /&gt;
monsters-inc.movie.edu.       IN A       192.249.249.4&lt;br /&gt;
misery.movie.edu.             IN A       192.253.253.2&lt;br /&gt;
;&lt;br /&gt;
; Multi-homes hosts&lt;br /&gt;
;&lt;br /&gt;
wormhole.movie.edu.           IN A       192.249.249.1&lt;br /&gt;
wormhole.movie.edu.           IN A       192.253.253.1&lt;br /&gt;
;&lt;br /&gt;
; Aliases&lt;br /&gt;
;&lt;br /&gt;
toys.movie.edu.               IN CNAME   toystory.movie.edu.&lt;br /&gt;
mi.movie.edu.                 IN CNAME   monsters-inc.movie.edu.&lt;br /&gt;
wh.movie.edu.                 IN CNAME   wormhole.movie.edu.&lt;br /&gt;
wh249.movie.edu.              IN A       192.249.249.1&lt;br /&gt;
wh253.movie.edu.              IN A       192.253.253.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The A stands for addresses. wormhole.movie.edu is a multihomed host. It has two addresses associated with it. CNAME is canonical name resource record. The last two entries solve a problem to check individual interface for the multihomed host.&lt;br /&gt;
&lt;br /&gt;
==PTR Records==&lt;br /&gt;
Next we create address-to-name mappings. This will go in the file 192.249.249&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
1.249.249.192.in-addr.arpa.   IN PTR wormhole.movie.edu.&lt;br /&gt;
2.249.249.192.in-addr.arpa.   IN PTR shrek.movie.edu.&lt;br /&gt;
3.249.249.192.in-addr.arpa.   IN PTR toystory.movie.edu.&lt;br /&gt;
4.249.249.192.in-addr.arpa.   IN PTR monsters-inc.movie.edu.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Same data is inserted for file db.192.253.253&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
1.249.249.192.in-addr.arpa.   IN PTR wormhole.movie.edu.&lt;br /&gt;
2.249.249.192.in-addr.arpa.   IN PTR shrek.movie.edu.&lt;br /&gt;
3.249.249.192.in-addr.arpa.   IN PTR toystory.movie.edu.&lt;br /&gt;
4.249.249.192.in-addr.arpa.   IN PTR monsters-inc.movie.edu.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Complete Zone Datafiles=&lt;br /&gt;
Here is the complete db.movie.edu:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$TTL 3h&lt;br /&gt;
movie.edu. IN SOA toystory.movie.edu. al.movie.edu. (&lt;br /&gt;
                        1       ; Serial&lt;br /&gt;
                        3h      ; Refresh after 3 hours&lt;br /&gt;
                        1h      ; Retry after 1 hour&lt;br /&gt;
                        1w      ; Expire after 1 week&lt;br /&gt;
                        1h )    ; Negative caching TTL of 1 hour&lt;br /&gt;
&lt;br /&gt;
; NS Record&lt;br /&gt;
movie.edu.      IN NS toystory.movie.edu.&lt;br /&gt;
movie.edu.      IN NS wormhole.movie.edu.&lt;br /&gt;
&lt;br /&gt;
;&lt;br /&gt;
; Host addresses&lt;br /&gt;
;&lt;br /&gt;
localhost.movie.edu.          IN A       127.0.0.1&lt;br /&gt;
shrek.movie.edu.              IN A       192.249.249.2&lt;br /&gt;
toystory.movie.edu.           IN A       192.249.249.3&lt;br /&gt;
monsters-inc.movie.edu.       IN A       192.249.249.4&lt;br /&gt;
misery.movie.edu.             IN A       192.253.253.2&lt;br /&gt;
;&lt;br /&gt;
; Multi-homes hosts&lt;br /&gt;
;&lt;br /&gt;
wormhole.movie.edu.           IN A       192.249.249.1&lt;br /&gt;
wormhole.movie.edu.           IN A       192.253.253.1&lt;br /&gt;
;&lt;br /&gt;
; Aliases&lt;br /&gt;
;&lt;br /&gt;
toys.movie.edu.               IN CNAME   toystory.movie.edu.&lt;br /&gt;
mi.movie.edu.                 IN CNAME   monsters-inc.movie.edu.&lt;br /&gt;
wh.movie.edu.                 IN CNAME   wormhole.movie.edu.&lt;br /&gt;
&lt;br /&gt;
; Interface specific names&lt;br /&gt;
&lt;br /&gt;
wh249.movie.edu.              IN A       192.249.249.1&lt;br /&gt;
wh253.movie.edu.              IN A       192.253.253.1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Complete PTR files=&lt;br /&gt;
db.192.249.249&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$TTL 3h&lt;br /&gt;
249.249.192.in-addr.arpa. IN SOA toystory.movie.edu. al.movie.edu. (&lt;br /&gt;
                        1       ; Serial&lt;br /&gt;
                        3h      ; Refresh after 3 hours&lt;br /&gt;
                        1h      ; Retry after 1 hour&lt;br /&gt;
                        1w      ; Expire after 1 week&lt;br /&gt;
                        1h )    ; Negative caching TTL of 1 hour&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
db.192.253.253&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$TTL 3h&lt;br /&gt;
253.253.192.in-addr.arpa. IN SOA toystory.movie.edu. al.movie.edu. (&lt;br /&gt;
                        1       ; Serial&lt;br /&gt;
                        3h      ; Refresh after 3 hours&lt;br /&gt;
                        1h      ; Retry after 1 hour&lt;br /&gt;
                        1w      ; Expire after 1 week&lt;br /&gt;
                        1h )    ; Negative caching TTL of 1 hour&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:DNS]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Ports_on_Linux</id>
		<title>Ports on Linux</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Ports_on_Linux"/>
				<updated>2011-10-06T16:43:45Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
Port # / Layer	Name	Comment&lt;br /&gt;
1 	tcpmux 	TCP port service multiplexer&lt;br /&gt;
5 	rje 	Remote Job Entry&lt;br /&gt;
7 	echo 	Echo service&lt;br /&gt;
9 	discard 	Null service for connection testing&lt;br /&gt;
11 	systat 	System Status service for listing connected ports&lt;br /&gt;
13 	daytime 	Sends date and time to requesting host&lt;br /&gt;
17 	qotd 	Sends quote of the day to connected host&lt;br /&gt;
18 	msp 	Message Send Protocol&lt;br /&gt;
19 	chargen 	Character Generation service; sends endless stream of characters&lt;br /&gt;
20 	ftp-data 	FTP data port&lt;br /&gt;
21 	ftp 	File Transfer Protocol (FTP) port; sometimes used by File Service Protocol (FSP)&lt;br /&gt;
22 	ssh 	Secure Shell (SSH) service&lt;br /&gt;
23 	telnet 	The Telnet service&lt;br /&gt;
25 	smtp 	Simple Mail Transfer Protocol (SMTP)&lt;br /&gt;
37 	time 	Time Protocol&lt;br /&gt;
39 	rlp 	Resource Location Protocol&lt;br /&gt;
42 	nameserver 	Internet Name Service&lt;br /&gt;
43 	nicname 	WHOIS directory service&lt;br /&gt;
49 	tacacs 	Terminal Access Controller Access Control System for TCP/IP based authentication and access&lt;br /&gt;
50 	re-mail-ck 	Remote Mail Checking Protocol&lt;br /&gt;
53 	domain 	domain name services (such as BIND)&lt;br /&gt;
63 	whois++ 	WHOIS++, extended WHOIS services&lt;br /&gt;
67 	bootps 	Bootstrap Protocol (BOOTP) services; also used by Dynamic Host Configuration Protocol (DHCP) services&lt;br /&gt;
68 	bootpc 	Bootstrap (BOOTP) client; also used by Dynamic Host Control Protocol (DHCP) clients&lt;br /&gt;
69 	tftp 	Trivial File Transfer Protocol (TFTP)&lt;br /&gt;
70 	gopher 	Gopher Internet document search and retrieval&lt;br /&gt;
71 	netrjs-1 	Remote Job Service&lt;br /&gt;
72 	netrjs-2 	Remote Job Service&lt;br /&gt;
73 	netrjs-3 	Remote Job Service&lt;br /&gt;
73 	netrjs-4 	Remote Job Service&lt;br /&gt;
79 	finger 	Finger service for user contact information&lt;br /&gt;
80 	http 	HyperText Transfer Protocol (HTTP) for World Wide Web (WWW) services&lt;br /&gt;
88 	kerberos 	Kerberos network authentication system&lt;br /&gt;
95 	supdup 	Telnet protocol extension&lt;br /&gt;
101 	hostname 	Hostname services on SRI-NIC machines&lt;br /&gt;
102 	iso-tsap 	ISO Development Environment (ISODE) network applications&lt;br /&gt;
105 	csnet-ns 	Mailbox nameserver; also used by CSO nameserver&lt;br /&gt;
107 	rtelnet 	Remote Telnet&lt;br /&gt;
109 	pop2 	Post Office Protocol version 2&lt;br /&gt;
110 	pop3 	Post Office Protocol version 3&lt;br /&gt;
111 	sunrpc 	Remote Procedure Call (RPC) Protocol for remote command execution, used by Network Filesystem (NFS)&lt;br /&gt;
113 	auth 	Authentication and Ident protocols&lt;br /&gt;
115 	sftp 	Secure File Transfer Protocol (SFTP) services&lt;br /&gt;
117 	uucp-path 	Unix-to-Unix Copy Protocol (UUCP) Path services&lt;br /&gt;
119 	nntp 	Network News Transfer Protocol (NNTP) for the USENET discussion system&lt;br /&gt;
123 	ntp 	Network Time Protocol (NTP)&lt;br /&gt;
137 	netbios-ns 	NETBIOS Name Services used in Red Hat Enterprise Linux by Samba&lt;br /&gt;
138 	netbios-dgm 	NETBIOS Datagram Services used in Red Hat Enterprise Linux by Samba&lt;br /&gt;
139 	netbios-ssn 	NETBIOS Session Services used in Red Hat Enterprise Linux by Samba&lt;br /&gt;
143 	imap 	Internet Message Access Protocol (IMAP)&lt;br /&gt;
161 	snmp 	Simple Network Management Protocol (SNMP)&lt;br /&gt;
162 	snmptrap 	Traps for SNMP&lt;br /&gt;
163 	cmip-man 	Common Management Information Protocol (CMIP)&lt;br /&gt;
164 	cmip-agent 	Common Management Information Protocol (CMIP)&lt;br /&gt;
174 	mailq 	MAILQ&lt;br /&gt;
177 	xdmcp 	X Display Manager Control Protocol&lt;br /&gt;
178 	nextstep 	NeXTStep window server&lt;br /&gt;
179 	bgp 	Border Gateway Protocol&lt;br /&gt;
191 	prospero 	Cliffod Neuman's Prospero services&lt;br /&gt;
194 	irc 	Internet Relay Chat (IRC)&lt;br /&gt;
199 	smux 	SNMP UNIX Multiplexer&lt;br /&gt;
201 	at-rtmp 	AppleTalk routing&lt;br /&gt;
202 	at-nbp 	AppleTalk name binding&lt;br /&gt;
204 	at-echo 	AppleTalk echo&lt;br /&gt;
206 	at-zis 	AppleTalk zone information&lt;br /&gt;
209 	qmtp 	Quick Mail Transfer Protocol (QMTP)&lt;br /&gt;
210 	z39.50 	NISO Z39.50 database&lt;br /&gt;
213 	ipx 	Internetwork Packet Exchange (IPX), a datagram protocol commonly used in Novell Netware environments&lt;br /&gt;
220 	imap3 	Internet Message Access Protocol version 3&lt;br /&gt;
245 	link 	LINK&lt;br /&gt;
347 	fatserv 	Fatmen Server&lt;br /&gt;
363 	rsvp_tunnel 	RSVP Tunnel&lt;br /&gt;
369 	rpc2portmap 	Coda filesystem portmapper&lt;br /&gt;
370 	codaauth2 	Coda filesystem authentication services&lt;br /&gt;
372 	ulistproc 	UNIX Listserv&lt;br /&gt;
389 	ldap 	Lightweight Directory Access Protocol (LDAP)&lt;br /&gt;
427 	svrloc 	Service Location Protocol (SLP)&lt;br /&gt;
434 	mobileip-agent 	Mobile Internet Protocol (IP) agent&lt;br /&gt;
435 	mobilip-mn 	Mobile Internet Protocol (IP) manager&lt;br /&gt;
443 	https 	Secure Hypertext Transfer Protocol (HTTP)&lt;br /&gt;
444 	snpp 	Simple Network Paging Protocol&lt;br /&gt;
445 	microsoft-ds 	Server Message Block (SMB) over TCP/IP&lt;br /&gt;
464 	kpasswd 	Kerberos password and key changing services&lt;br /&gt;
468 	photuris 	Photuris session key management protocol&lt;br /&gt;
487 	saft 	Simple Asynchronous File Transfer (SAFT) protocol&lt;br /&gt;
488 	gss-http 	Generic Security Services (GSS) for HTTP&lt;br /&gt;
496 	pim-rp-disc 	Rendezvous Point Discovery (RP-DISC) for Protocol Independent Multicast (PIM) services&lt;br /&gt;
500 	isakmp 	Internet Security Association and Key Management Protocol (ISAKMP)&lt;br /&gt;
535 	iiop 	Internet Inter-Orb Protocol (IIOP)&lt;br /&gt;
538 	gdomap 	GNUstep Distributed Objects Mapper (GDOMAP)&lt;br /&gt;
546 	dhcpv6-client 	Dynamic Host Configuration Protocol (DHCP) version 6 client&lt;br /&gt;
547 	dhcpv6-server 	Dynamic Host Configuration Protocol (DHCP) version 6 Service&lt;br /&gt;
554 	rtsp 	Real Time Stream Control Protocol (RTSP)&lt;br /&gt;
563 	nntps 	Network News Transport Protocol over Secure Sockets Layer (NNTPS)&lt;br /&gt;
565 	whoami 	whoami&lt;br /&gt;
587 	submission 	Mail Message Submission Agent (MSA)&lt;br /&gt;
610 	npmp-local 	Network Peripheral Management Protocol (NPMP) local / Distributed Queueing System (DQS)&lt;br /&gt;
611 	npmp-gui 	Network Peripheral Management Protocol (NPMP) GUI / Distributed Queueing System (DQS)&lt;br /&gt;
612 	hmmp-ind 	HMMP Indication / DQS&lt;br /&gt;
631 	ipp 	Internet Printing Protocol (IPP)&lt;br /&gt;
636 	ldaps 	Lightweight Directory Access Protocol over Secure Sockets Layer (LDAPS)&lt;br /&gt;
674 	acap 	Application Configuration Access Protocol (ACAP)&lt;br /&gt;
694 	ha-cluster 	Heartbeat services for High-Availability Clusters&lt;br /&gt;
749 	kerberos-adm 	Kerberos version 5 (v5) 'kadmin' database administration&lt;br /&gt;
750 	kerberos-iv 	Kerberos version 4 (v4) services&lt;br /&gt;
765 	webster 	Network Dictionary&lt;br /&gt;
767 	phonebook 	Network Phonebook&lt;br /&gt;
873 	rsync 	rsync file transfer services&lt;br /&gt;
992 	telnets 	Telnet over Secure Sockets Layer (TelnetS)&lt;br /&gt;
993 	imaps 	Internet Message Access Protocol over Secure Sockets Layer (IMAPS)&lt;br /&gt;
994 	ircs 	Internet Relay Chat over Secure Sockets Layer (IRCS)&lt;br /&gt;
995 	pop3s 	Post Office Protocol version 3 over Secure Sockets Layer (POP3S)&lt;br /&gt;
&lt;br /&gt;
Table C-1. Well Known Ports&lt;br /&gt;
&lt;br /&gt;
The following ports are UNIX-specific and cover services ranging from email to authentication and more. Names enclosed in brackets (for example, [service]) are either daemon names for the service or common alias(es).&lt;br /&gt;
Port # / Layer	Name	Comment&lt;br /&gt;
512/tcp 	exec 	Authentication for remote process execution&lt;br /&gt;
512/udp 	biff [comsat] 	Asynchrous mail client (biff) and service (comsat)&lt;br /&gt;
513/tcp 	login 	Remote Login (rlogin)&lt;br /&gt;
513/udp 	who [whod] 	who logged user listing&lt;br /&gt;
514/tcp 	shell [cmd] 	remote shell (rshell) and remote copy (rcp) with no logging&lt;br /&gt;
514/udp 	syslog 	UNIX system logging service&lt;br /&gt;
515 	printer [spooler] 	line printer (lpr) spooler&lt;br /&gt;
517/udp 	talk 	talk remote calling service and client&lt;br /&gt;
518/udp 	ntalk 	Network talk (ntalk) remote calling service and client&lt;br /&gt;
519 	utime [unixtime] 	UNIX time (utime) protocol&lt;br /&gt;
520/tcp 	efs 	Extended Filename Server (EFS)&lt;br /&gt;
520/udp 	router [route, routed] 	Routing Information Protocol (RIP)&lt;br /&gt;
521 	ripng 	Routing Information Protocol for Internet Protocol version 6 (IPv6)&lt;br /&gt;
525 	timed [timeserver] 	Time daemon (timed)&lt;br /&gt;
526/tcp 	tempo [newdate] 	Tempo&lt;br /&gt;
530/tcp 	courier [rpc] 	Courier Remote Procedure Call (RPC) protocol&lt;br /&gt;
531/tcp 	conference [chat] 	Internet Relay Chat&lt;br /&gt;
532 	netnews 	Netnews&lt;br /&gt;
533/udp 	netwall 	Netwall for emergency broadcasts&lt;br /&gt;
540/tcp 	uucp [uucpd] 	Unix-to-Unix copy services&lt;br /&gt;
543/tcp 	klogin 	Kerberos version 5 (v5) remote login&lt;br /&gt;
544/tcp 	kshell 	Kerberos version 5 (v5) remote shell&lt;br /&gt;
548 	afpovertcp 	Appletalk Filing Protocol (AFP) over Transmission Control Protocol (TCP)&lt;br /&gt;
556 	remotefs [rfs_server, rfs] 	Brunhoff's Remote Filesystem (RFS)&lt;br /&gt;
&lt;br /&gt;
Table C-2. UNIX Specific Ports&lt;br /&gt;
&lt;br /&gt;
Table C-3 lists ports submitted by the network and software community to the IANA for formal registration in the port number list.&lt;br /&gt;
Port # / Layer	Name	Comment&lt;br /&gt;
1080 	socks 	SOCKS network application proxy services&lt;br /&gt;
1236 	bvcontrol [rmtcfg] 	Garcilis Packeten Remote Configuration Server[a]&lt;br /&gt;
1300 	h323hostcallsc 	H.323 teleconferencing Host Call Secure&lt;br /&gt;
1433 	ms-sql-s 	Microsoft SQL Server&lt;br /&gt;
1434 	ms-sql-m 	Microsoft SQL Monitor&lt;br /&gt;
1494 	ica 	Citrix ICA Client&lt;br /&gt;
1512 	wins 	Microsoft Windows Internet Name Server&lt;br /&gt;
1524 	ingreslock 	Ingres Database Management System (DBMS) lock services&lt;br /&gt;
1525 	prospero-np 	Prospero non-priveleged&lt;br /&gt;
1645 	datametrics [old-radius] 	Datametrics / old radius entry&lt;br /&gt;
1646 	sa-msg-port [oldradacct] 	sa-msg-port / old radacct entry&lt;br /&gt;
1649 	kermit 	Kermit file transfer and management service&lt;br /&gt;
1701 	l2tp [l2f] 	Layer 2 Tunneling Protocol (LT2P) / layer 2 forwarding (L2F)&lt;br /&gt;
1718 	h323gatedisc 	H.323 telecommunication Gatekeeper Discovery&lt;br /&gt;
1719 	h323gatestat 	H.323 telecommunication Gatekeeper Status&lt;br /&gt;
1720 	h323hostcall 	H.323 telecommunication Host Call setup&lt;br /&gt;
1758 	tftp-mcast 	Trivial FTP Multicast&lt;br /&gt;
1759 	mtftp 	Multicast Trivial FTP (MTFTP)&lt;br /&gt;
1789 	hello 	Hello router communication protocol&lt;br /&gt;
1812 	radius 	Radius dial-up authentication and accounting services&lt;br /&gt;
1813 	radius-acct 	Radius Accounting&lt;br /&gt;
1911 	mtp 	Starlight Networks Multimedia Transport Protocol (MTP)&lt;br /&gt;
1985 	hsrp 	Cisco Hot Standby Router Protocol&lt;br /&gt;
1986 	licensedaemon 	Cisco License Management Daemon&lt;br /&gt;
1997 	gdp-port 	Cisco Gateway Discovery Protocol (GDP)&lt;br /&gt;
2049 	nfs [nfsd] 	Network File System (NFS)&lt;br /&gt;
2102 	zephyr-srv 	Zephyr notice transport and delivery Server&lt;br /&gt;
2103 	zephyr-clt 	Zephyr serv-hm connection&lt;br /&gt;
2104 	zephyr-hm 	Zephyr host manager&lt;br /&gt;
2401 	cvspserver 	Concurrent Versions System (CVS) client/server operations&lt;br /&gt;
2430/tcp 	venus 	Venus cache manager for Coda file system (codacon port)&lt;br /&gt;
2430/udp 	venus 	Venus cache manager for Coda file system (callback/wbc interface)&lt;br /&gt;
2431/tcp 	venus-se 	Venus Transmission Control Protocol (TCP) side effects&lt;br /&gt;
2431/udp 	venus-se 	Venus User Datagram Protocol (UDP) side effects&lt;br /&gt;
2432/udp 	codasrv 	Coda file system server port&lt;br /&gt;
2433/tcp 	codasrv-se 	Coda file system TCP side effects&lt;br /&gt;
2433/udp 	codasrv-se 	Coda file system UDP SFTP side effect&lt;br /&gt;
2600 	hpstgmgr [zebrasrv] 	HPSTGMGR; Zebra routing[b]&lt;br /&gt;
2601 	discp-client [zebra] 	discp client; Zebra integrated shell&lt;br /&gt;
2602 	discp-server [ripd] 	discp server; Routing Information Protocol daemon (ripd)&lt;br /&gt;
2603 	servicemeter [ripngd] 	Service Meter; RIP daemon for IPv6&lt;br /&gt;
2604 	nsc-ccs [ospfd] 	NSC CCS; Open Shortest Path First daemon (ospfd)&lt;br /&gt;
2605 	nsc-posa 	NSC POSA; Border Gateway Protocol daemon (bgpd)&lt;br /&gt;
2606 	netmon [ospf6d] 	Dell Netmon; OSPF for IPv6 daemon (ospf6d)&lt;br /&gt;
2809 	corbaloc 	Common Object Request Broker Architecture (CORBA) naming service locator&lt;br /&gt;
3130 	icpv2 	Internet Cache Protocol version 2 (v2); used by Squid Proxy caching server&lt;br /&gt;
3306 	mysql 	MySQL database service&lt;br /&gt;
3346 	trnsprntproxy 	Trnsprnt Proxy&lt;br /&gt;
4011 	pxe 	Pre-execution Environment (PXE) service&lt;br /&gt;
4321 	rwhois 	Remote Whois (rwhois) service&lt;br /&gt;
4444 	krb524 	Kerberos version 5 (v5) to version 4 (v4) ticket translator&lt;br /&gt;
5002 	rfe 	Radio Free Ethernet (RFE) audio broadcasting system&lt;br /&gt;
5308 	cfengine 	Configuration Engine (Cfengine)&lt;br /&gt;
5999 	cvsup [CVSup] 	CVSup file transfer and update tool&lt;br /&gt;
6000 	x11 [X] 	X Window System services&lt;br /&gt;
7000 	afs3-fileserver 	Andrew File System (AFS) file server&lt;br /&gt;
7001 	afs3-callback 	AFS port for callbacks to cache manager&lt;br /&gt;
7002 	afs3-prserver 	AFS user and group database&lt;br /&gt;
7003 	afs3-vlserver 	AFS volume location database&lt;br /&gt;
7004 	afs3-kaserver 	AFS Kerberos authentication service&lt;br /&gt;
7005 	afs3-volser 	AFS volume management server&lt;br /&gt;
7006 	afs3-errors 	AFS error interpretation service&lt;br /&gt;
7007 	afs3-bos 	AFS basic overseer process&lt;br /&gt;
7008 	afs3-update 	AFS server-to-server updater&lt;br /&gt;
7009 	afs3-rmtsys 	AFS remote cache manager service&lt;br /&gt;
9876 	sd 	Session Director&lt;br /&gt;
10080 	amanda 	Advanced Maryland Automatic Network Disk Archiver (Amanda) backup services&lt;br /&gt;
11371 	pgpkeyserver 	Pretty Good Privacy (PGP) / GNU Privacy Guard (GPG) public keyserver&lt;br /&gt;
11720 	h323callsigalt 	H.323 Call Signal Alternate&lt;br /&gt;
13720 	bprd 	Veritas NetBackup Request Daemon (bprd)&lt;br /&gt;
13721 	bpdbm 	Veritas NetBackup Database Manager (bpdbm)&lt;br /&gt;
13722 	bpjava-msvc 	Veritas NetBackup Java / Microsoft Visual C++ (MSVC) Protocol&lt;br /&gt;
13724 	vnetd 	Veritas Network Utility&lt;br /&gt;
13782 	bpcd 	Vertias NetBackup&lt;br /&gt;
13783 	vopied 	Veritas VOPIED Protocol&lt;br /&gt;
22273 	wnn6 [wnn4] 	Kana/Kanji conversion system[c]&lt;br /&gt;
26000 	quake 	Quake (and related) multi-player game servers&lt;br /&gt;
26208 	wnn6-ds 	 &lt;br /&gt;
33434 	traceroute 	Traceroute network tracking tool&lt;br /&gt;
Notes:&lt;br /&gt;
a. Comment from /etc/services: &amp;quot;Port 1236 is registered as `bvcontrol', but is also used by the Gracilis Packeten remote config server. The official name is listed as the primary name, with the unregistered name as an alias.&amp;quot;&lt;br /&gt;
b. Note from /etc/services: &amp;quot;Ports numbered 2600 through 2606 are used by the zebra package without being registered. The primary names are the registered names, and the unregistered names used by zebra are listed as aliases.&amp;quot;&lt;br /&gt;
c. Note from /etc/services: &amp;quot;This port is registered as wnn6, but also used under the unregistered name 'wnn4' by the FreeWnn package.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Table C-3. Registered Ports&lt;br /&gt;
&lt;br /&gt;
Table C-4 shows a list of ports related to Datagram Delivery Protocol (DDP) used on AppleTalk networks.&lt;br /&gt;
Port # / Layer	Name	Comment&lt;br /&gt;
1/ddp 	rtmp 	Routing Table Management Protocol&lt;br /&gt;
2/ddp 	nbp 	Name Binding Protocol&lt;br /&gt;
4/ddp 	echo 	AppleTalk Echo Protocol&lt;br /&gt;
6/ddp 	zip 	Zone Information Protocol&lt;br /&gt;
&lt;br /&gt;
Table C-4. Datagram Deliver Protocol Ports&lt;br /&gt;
&lt;br /&gt;
Table C-5 is a listing of ports related to the Kerberos network authentication protocol. Where noted, v5 refers to Kerberos version 5 protocol. Note that these ports are not registered with the IANA.&lt;br /&gt;
Port # / Layer	Name	Comment&lt;br /&gt;
751 	kerberos_master 	Kerberos authentication&lt;br /&gt;
752 	passwd_server 	Kerberos Password (kpasswd) server&lt;br /&gt;
754 	krb5_prop 	Kerberos v5 slave propagation&lt;br /&gt;
760 	krbupdate [kreg] 	Kerberos registration&lt;br /&gt;
1109 	kpop 	Kerberos Post Office Protocol (KPOP)&lt;br /&gt;
2053 	knetd 	Kerberos de-multiplexor&lt;br /&gt;
2105 	eklogin 	Kerberos v5 encrypted remote login (rlogin)&lt;br /&gt;
&lt;br /&gt;
Table C-5. Kerberos (Project Athena/MIT) Ports&lt;br /&gt;
&lt;br /&gt;
Table C-6 is a listing of unregistered ports that are used by services and protocols that may be installed on your Red Hat Enterprise Linux system or is necessary for communication between Red Hat Enterprise Linux and systems running other operating systems.&lt;br /&gt;
Port # / Layer	Name	Comment&lt;br /&gt;
15/tcp 	netstat 	Network Status (netstat)&lt;br /&gt;
98/tcp 	linuxconf 	Linuxconf Linux administration tool&lt;br /&gt;
106 	poppassd 	Post Office Protocol Password change daemon (POPPASSD)&lt;br /&gt;
465/tcp 	smtps 	Simple Mail Transfer Protocol over Secure Sockets Layer (SMTPS)&lt;br /&gt;
616/tcp 	gii 	Gated (routing daemon) Interactive Interface&lt;br /&gt;
808 	omirr [omirrd] 	Online Mirror (Omirr) file mirroring services&lt;br /&gt;
871/tcp 	supfileserv 	Software Upgrade Protocol (SUP) server&lt;br /&gt;
901/tcp 	swat 	Samba Web Administration Tool (SWAT)&lt;br /&gt;
953 	rndc 	Berkeley Internet Name Domain version 9 (BIND 9) remote name daemon configuration tool&lt;br /&gt;
1127 	sufiledbg 	Software Upgrade Protocol (SUP) debugging&lt;br /&gt;
1178/tcp 	skkserv 	Simple Kana to Kanji (SKK) Japanese input server&lt;br /&gt;
1313/tcp 	xtel 	French Minitel text information system&lt;br /&gt;
1529/tcp 	support [prmsd, gnatsd] 	GNATS bug tracking system&lt;br /&gt;
2003/tcp 	cfinger 	GNU Finger&lt;br /&gt;
2150 	ninstall 	Network Installation Service&lt;br /&gt;
2988 	afbackup 	afbackup client-server backup system&lt;br /&gt;
3128/tcp 	squid 	Squid Web proxy cache&lt;br /&gt;
3455 	prsvp 	RSVP port&lt;br /&gt;
5432 	postgres 	PostgreSQL database&lt;br /&gt;
4557/tcp 	fax 	FAX transmission service (old service)&lt;br /&gt;
4559/tcp 	hylafax 	HylaFAX client-server protocol (new service)&lt;br /&gt;
5232 	sgi-dgl 	SGI Distributed Graphics Library&lt;br /&gt;
5354 	noclog 	NOCOL network operation center logging daemon (noclogd)&lt;br /&gt;
5355 	hostmon 	NOCOL network operation center host monitoring&lt;br /&gt;
5680/tcp 	canna 	Canna Japanese character input interface&lt;br /&gt;
6010/tcp 	x11-ssh-offset 	Secure Shell (SSH) X11 forwarding offset&lt;br /&gt;
6667 	ircd 	Internet Relay Chat daemon (ircd)&lt;br /&gt;
7100/tcp 	xfs 	X Font Server (XFS)&lt;br /&gt;
7666/tcp 	tircproxy 	Tircproxy IRC proxy service&lt;br /&gt;
8008 	http-alt 	Hypertext Tranfer Protocol (HTTP) alternate&lt;br /&gt;
8080 	webcache 	World Wide Web (WWW) caching service&lt;br /&gt;
8081 	tproxy 	Transparent Proxy&lt;br /&gt;
9100/tcp 	jetdirect [laserjet, hplj] 	Hewlett-Packard (HP) JetDirect network printing service&lt;br /&gt;
9359 	mandelspawn [mandelbrot] 	Parallel Mandelbrot spawning program for the X Window System&lt;br /&gt;
10081 	kamanda 	Amanda backup service over Kerberos&lt;br /&gt;
10082/tcp 	amandaidx 	Amanda backup services&lt;br /&gt;
10083/tcp 	amidxtape 	Amanda backup services&lt;br /&gt;
20011 	isdnlog 	Integrated Systems Digital Network (ISDN) logging system&lt;br /&gt;
20012 	vboxd 	ISDN voice box daemon (vboxd)&lt;br /&gt;
22305/tcp 	wnn4_Kr 	kWnn Korean input system&lt;br /&gt;
22289/tcp 	wnn4_Cn 	cWnn Chinese input system&lt;br /&gt;
22321/tcp 	wnn4_Tw 	tWnn Chinese input system (Taiwan)&lt;br /&gt;
24554 	binkp 	Binkley TCP/IP Fidonet mailer daemon&lt;br /&gt;
27374 	asp 	Address Search Protocol&lt;br /&gt;
60177 	tfido 	Ifmail FidoNet compatible mailer service&lt;br /&gt;
60179 	fido 	FidoNet electronic mail and news network &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:Linux_Articles]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Installing_Bind</id>
		<title>Installing Bind</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Installing_Bind"/>
				<updated>2011-10-06T16:35:11Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* Where do I fit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@localhost etc]# yum install bind.x86_64&lt;br /&gt;
Loaded plugins: rhnplugin&lt;br /&gt;
Setting up Install Process&lt;br /&gt;
Resolving Dependencies&lt;br /&gt;
--&amp;gt; Running transaction check&lt;br /&gt;
---&amp;gt; Package bind.x86_64 32:9.7.3-2.el6_1.P3.2 will be installed&lt;br /&gt;
--&amp;gt; Processing Dependency: bind-libs = 32:9.7.3-2.el6_1.P3.2 for package: 32:bind-9.7.3-2.el6_1.P3.2.x86_64&lt;br /&gt;
--&amp;gt; Processing Dependency: liblwres.so.60()(64bit) for package: 32:bind-9.7.3-2.el6_1.P3.2.x86_64&lt;br /&gt;
--&amp;gt; Processing Dependency: libisccfg.so.62()(64bit) for package: 32:bind-9.7.3-2.el6_1.P3.2.x86_64&lt;br /&gt;
--&amp;gt; Processing Dependency: libisccc.so.60()(64bit) for package: 32:bind-9.7.3-2.el6_1.P3.2.x86_64&lt;br /&gt;
--&amp;gt; Processing Dependency: libisc.so.62()(64bit) for package: 32:bind-9.7.3-2.el6_1.P3.2.x86_64&lt;br /&gt;
--&amp;gt; Processing Dependency: libdns.so.69()(64bit) for package: 32:bind-9.7.3-2.el6_1.P3.2.x86_64&lt;br /&gt;
--&amp;gt; Processing Dependency: libbind9.so.60()(64bit) for package: 32:bind-9.7.3-2.el6_1.P3.2.x86_64&lt;br /&gt;
--&amp;gt; Running transaction check&lt;br /&gt;
---&amp;gt; Package bind-libs.x86_64 32:9.7.3-2.el6_1.P3.2 will be installed&lt;br /&gt;
--&amp;gt; Finished Dependency Resolution&lt;br /&gt;
&lt;br /&gt;
Dependencies Resolved&lt;br /&gt;
&lt;br /&gt;
======================================================================================&lt;br /&gt;
 Package       Arch       Version                      Repository                Size&lt;br /&gt;
======================================================================================&lt;br /&gt;
Installing:&lt;br /&gt;
 bind          x86_64     32:9.7.3-2.el6_1.P3.2        rhel-x86_64-server-6     3.9 M&lt;br /&gt;
Installing for dependencies:&lt;br /&gt;
 bind-libs     x86_64     32:9.7.3-2.el6_1.P3.2        rhel-x86_64-server-6     838 k&lt;br /&gt;
&lt;br /&gt;
Transaction Summary&lt;br /&gt;
======================================================================================&lt;br /&gt;
Install       2 Package(s)&lt;br /&gt;
&lt;br /&gt;
Total download size: 4.7 M&lt;br /&gt;
Installed size: 0  &lt;br /&gt;
Is this ok [y/N]: y&lt;br /&gt;
Downloading Packages:&lt;br /&gt;
(1/2): bind-9.7.3-2.el6_1.P3.2.x86_64.rpm                      | 3.9 MB     00:11     &lt;br /&gt;
(2/2): bind-libs-9.7.3-2.el6_1.P3.2.x86_64.rpm                 | 838 kB     00:01     &lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
Total                                                 349 kB/s | 4.7 MB     00:13     &lt;br /&gt;
Running rpm_check_debug&lt;br /&gt;
Running Transaction Test&lt;br /&gt;
Transaction Test Succeeded&lt;br /&gt;
Running Transaction&lt;br /&gt;
  Installing : 32:bind-libs-9.7.3-2.el6_1.P3.2.x86_64                             1/2 &lt;br /&gt;
  Installing : 32:bind-9.7.3-2.el6_1.P3.2.x86_64                                  2/2 &lt;br /&gt;
&lt;br /&gt;
Installed:&lt;br /&gt;
  bind.x86_64 32:9.7.3-2.el6_1.P3.2                                                   &lt;br /&gt;
&lt;br /&gt;
Dependency Installed:&lt;br /&gt;
  bind-libs.x86_64 32:9.7.3-2.el6_1.P3.2                                              &lt;br /&gt;
&lt;br /&gt;
Complete!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Install Bind utilities=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@localhost etc]# yum install bind-utils&lt;br /&gt;
Loaded plugins: rhnplugin&lt;br /&gt;
Setting up Install Process&lt;br /&gt;
Resolving Dependencies&lt;br /&gt;
--&amp;gt; Running transaction check&lt;br /&gt;
---&amp;gt; Package bind-utils.x86_64 32:9.7.3-2.el6_1.P3.2 will be installed&lt;br /&gt;
--&amp;gt; Finished Dependency Resolution&lt;br /&gt;
&lt;br /&gt;
Dependencies Resolved&lt;br /&gt;
&lt;br /&gt;
======================================================================================&lt;br /&gt;
 Package        Arch       Version                     Repository                Size&lt;br /&gt;
======================================================================================&lt;br /&gt;
Installing:&lt;br /&gt;
 bind-utils     x86_64     32:9.7.3-2.el6_1.P3.2       rhel-x86_64-server-6     177 k&lt;br /&gt;
&lt;br /&gt;
Transaction Summary&lt;br /&gt;
======================================================================================&lt;br /&gt;
Install       1 Package(s)&lt;br /&gt;
&lt;br /&gt;
Total download size: 177 k&lt;br /&gt;
Installed size: 0  &lt;br /&gt;
Is this ok [y/N]: y&lt;br /&gt;
Downloading Packages:&lt;br /&gt;
bind-utils-9.7.3-2.el6_1.P3.2.x86_64.rpm                       | 177 kB     00:00     &lt;br /&gt;
Running rpm_check_debug&lt;br /&gt;
Running Transaction Test&lt;br /&gt;
Transaction Test Succeeded&lt;br /&gt;
Running Transaction&lt;br /&gt;
  Installing : 32:bind-utils-9.7.3-2.el6_1.P3.2.x86_64                            1/1 &lt;br /&gt;
&lt;br /&gt;
Installed:&lt;br /&gt;
  bind-utils.x86_64 32:9.7.3-2.el6_1.P3.2                                             &lt;br /&gt;
&lt;br /&gt;
Complete!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Testing utilities=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@localhost etc]# nslookup lexiana.com 207.69.188.185&lt;br /&gt;
Server:		207.69.188.185&lt;br /&gt;
Address:	207.69.188.185#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
Name:	lexiana.com&lt;br /&gt;
Address: 99.54.115.122&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Registration=&lt;br /&gt;
Registration is a process by which a customer tells a registrar which nameservers to delegate a subdomain to and provides the registrar with contact and billing information. Some of these are Godaddy, VeriSign and Networksolutions.&lt;br /&gt;
&lt;br /&gt;
=Where do I fit=&lt;br /&gt;
* http://www.allwhois.com&lt;br /&gt;
&lt;br /&gt;
Look for start of authority (SOA) record to get more information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@localhost etc]# nslookup - 207.69.188.185&lt;br /&gt;
&amp;gt; set type=soa&lt;br /&gt;
&amp;gt; lexiana.com&lt;br /&gt;
Server:		207.69.188.185&lt;br /&gt;
Address:	207.69.188.185#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
lexiana.com&lt;br /&gt;
	origin = ns1.mydyndns.org&lt;br /&gt;
	mail addr = zone-admin.dyndns.com&lt;br /&gt;
	serial = 2007072046&lt;br /&gt;
	refresh = 10800&lt;br /&gt;
	retry = 1800&lt;br /&gt;
	expire = 604800&lt;br /&gt;
	minimum = 1800&lt;br /&gt;
&lt;br /&gt;
Authoritative answers can be found from:&lt;br /&gt;
lexiana.com	nameserver = ns3.mydyndns.org.&lt;br /&gt;
lexiana.com	nameserver = ns1.mydyndns.org.&lt;br /&gt;
lexiana.com	nameserver = ns4.mydyndns.org.&lt;br /&gt;
lexiana.com	nameserver = ns5.mydyndns.org.&lt;br /&gt;
lexiana.com	nameserver = ns2.mydyndns.org.&lt;br /&gt;
ns1.mydyndns.org	internet address = 204.13.248.76&lt;br /&gt;
ns2.mydyndns.org	internet address = 204.13.249.76&lt;br /&gt;
ns2.mydyndns.org	has AAAA address 2600:2002::76&lt;br /&gt;
ns5.mydyndns.org	internet address = 203.62.195.76&lt;br /&gt;
ns5.mydyndns.org	has AAAA address 2600:2005::76&lt;br /&gt;
ns4.mydyndns.org	internet address = 91.198.22.76&lt;br /&gt;
ns4.mydyndns.org	has AAAA address 2600:2004::76&lt;br /&gt;
ns3.mydyndns.org	internet address = 208.78.69.76&lt;br /&gt;
&amp;gt; &lt;br /&gt;
[root@localhost etc]# nslookup &lt;br /&gt;
&amp;gt; set type=any&lt;br /&gt;
&amp;gt; lexiana.com.&lt;br /&gt;
Server:		10.0.2.3&lt;br /&gt;
Address:	10.0.2.3#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
lexiana.com	nameserver = ns1.mydyndns.org.&lt;br /&gt;
lexiana.com	nameserver = ns3.mydyndns.org.&lt;br /&gt;
lexiana.com	nameserver = ns5.mydyndns.org.&lt;br /&gt;
lexiana.com	nameserver = ns4.mydyndns.org.&lt;br /&gt;
lexiana.com	nameserver = ns2.mydyndns.org.&lt;br /&gt;
&lt;br /&gt;
Authoritative answers can be found from:&lt;br /&gt;
&amp;gt; set type=mx &lt;br /&gt;
&amp;gt; lexiana.com.&lt;br /&gt;
Server:		10.0.2.3&lt;br /&gt;
Address:	10.0.2.3#53&lt;br /&gt;
&lt;br /&gt;
Non-authoritative answer:&lt;br /&gt;
lexiana.com	mail exchanger = 5 mail.lexiana.com.&lt;br /&gt;
&lt;br /&gt;
Authoritative answers can be found from:&lt;br /&gt;
&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:DNS]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Umask</id>
		<title>Umask</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Umask"/>
				<updated>2011-10-05T13:01:52Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;{{DISPLAYTITLE:umask}}     Octal value : Permission     0 : read, write and execute     1 : read and write     2 : read and execute     3 : read only     4 : write and execute   ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:umask}}&lt;br /&gt;
    Octal value : Permission&lt;br /&gt;
    0 : read, write and execute&lt;br /&gt;
    1 : read and write&lt;br /&gt;
    2 : read and execute&lt;br /&gt;
    3 : read only&lt;br /&gt;
    4 : write and execute&lt;br /&gt;
    5 : write only&lt;br /&gt;
    6 : execute only&lt;br /&gt;
    7 : no permissions&lt;br /&gt;
&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/WWN_numbers_on_linux</id>
		<title>WWN numbers on linux</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/WWN_numbers_on_linux"/>
				<updated>2011-10-03T17:46:55Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;cat /sys/class/scsi_host/hostn/device/fchost\:hostn/port_name&lt;br /&gt;
&lt;br /&gt;
where n is the host adapter number for your card.&lt;br /&gt;
&lt;br /&gt;
Then you can cat out the messages file and look for your card info to see which scsi host they got loaded on.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@aoarnbnfu01 ~]# cat /sys/class/scsi_host/host&lt;br /&gt;
host0/ host1/ host2/ host3/ host4/ host5/ &lt;br /&gt;
&lt;br /&gt;
[root@aoarnbnfu01 ~]# cat /sys/class/scsi_host/host0/device/fc_host\:host0/port_name &lt;br /&gt;
0x500110a00017a298&lt;br /&gt;
[root@aoarnbnfu01 ~]# cat /sys/class/scsi_host/host1/device/fc_host\:host1/port_name &lt;br /&gt;
0x500110a00017a29a&lt;br /&gt;
[root@aoarnbnfu01 ~]# cat /sys/class/scsi_host/host2/device/fc_host\:host2/port_name &lt;br /&gt;
0x10000000c9b3cf04&lt;br /&gt;
[root@aoarnbnfu01 ~]# cat /sys/class/scsi_host/host3/device/fc_host\:host3/port_name &lt;br /&gt;
0x10000000c9b3cf05&lt;br /&gt;
&lt;br /&gt;
Sep 30 08:21:32 aoarnbnfu01 kernel: scsi0 : qla2xxx&lt;br /&gt;
Sep 30 08:21:32 aoarnbnfu01 kernel: qla2xxx 0000:10:00.0: &lt;br /&gt;
Sep 30 08:21:32 aoarnbnfu01 kernel:  QLogic Fibre Channel HBA Driver: 8.03.01.05.05.06-k&lt;br /&gt;
Sep 30 08:21:32 aoarnbnfu01 kernel:   QLogic HPAE312A - PCI-Express Dual Port 4Gb Fibre Channel HBA&lt;br /&gt;
&lt;br /&gt;
Sep 30 08:21:33 aoarnbnfu01 kernel: Emulex LightPulse Fibre Channel SCSI driver 8.2.0.87.1p&lt;br /&gt;
Sep 30 08:21:33 aoarnbnfu01 kernel: Copyright(c) 2004-2009 Emulex.  All rights reserved.&lt;br /&gt;
Sep 30 08:21:33 aoarnbnfu01 kernel: ACPI: PCI Interrupt 0000:13:00.0[A] -&amp;gt; GSI 16 (level, low) -&amp;gt; IRQ 50&lt;br /&gt;
Sep 30 08:21:33 aoarnbnfu01 kernel: scsi2 :  on PCI bus 13 device 00 irq 50&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Method 2: /proc/scsi/{adapter-type}/{n} File=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
bash-3.00# cat /proc/scsi/qla2xxx/1&lt;br /&gt;
QLogic PCI to Fibre Channel Host Adapter for QLA2340-SUN:&lt;br /&gt;
        Firmware version 3.03.19 IPX, Driver version 8.01.04&lt;br /&gt;
ISP: ISP2312, Serial# E71054&lt;br /&gt;
Request Queue = 0x37dc0000, Response Queue = 0x37c50000&lt;br /&gt;
Request Queue count = 2048, Response Queue count = 512&lt;br /&gt;
Total number of active commands = 1&lt;br /&gt;
Total number of interrupts = 5034411&lt;br /&gt;
    Device queue depth = 0x20&lt;br /&gt;
Number of free request entries = 1264&lt;br /&gt;
Number of mailbox timeouts = 0&lt;br /&gt;
Number of ISP aborts = 0&lt;br /&gt;
Number of loop resyncs = 0&lt;br /&gt;
Number of retries for empty slots = 0&lt;br /&gt;
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0&lt;br /&gt;
Host adapter:loop state = &amp;lt;READY&amp;gt;, flags = 0x1a03&lt;br /&gt;
Dpc flags = 0x4000000&lt;br /&gt;
MBX flags = 0x0&lt;br /&gt;
Link down Timeout = 030&lt;br /&gt;
Port down retry = 030&lt;br /&gt;
Login retry count = 030&lt;br /&gt;
Commands retried with dropped frame(s) = 0&lt;br /&gt;
Product ID = 4953 5020 2020 0002&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SCSI Device Information:&lt;br /&gt;
scsi-qla0-adapter-node=200000e08b870e30;&lt;br /&gt;
scsi-qla0-adapter-port=210000e08b870e30;&lt;br /&gt;
scsi-qla0-target-0=50060e8004295542;&lt;br /&gt;
scsi-qla0-target-1=50060e8005bd3604;&lt;br /&gt;
&lt;br /&gt;
FC Port Information:&lt;br /&gt;
scsi-qla0-port-0=50060e8004295509:50060e8004295509:3a000a:81;&lt;br /&gt;
scsi-qla0-port-1=50060e8005bd3604:50060e8005bd3604:3a0036:82;&lt;br /&gt;
&lt;br /&gt;
SCSI LUN Information:&lt;br /&gt;
(Id:Lun)  * - indicates lun is not registered with the OS.&lt;br /&gt;
( 1: 0): Total reqs 2, Pending reqs 0, flags 0x0*, 0:0:82 00&lt;br /&gt;
( 1: 3): Total reqs 25133, Pending reqs 0, flags 0x0, 0:0:82 00&lt;br /&gt;
( 1: 4): Total reqs 5065249, Pending reqs 1, flags 0x0, 0:0:82 00&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:Linux_Articles]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Apt-get</id>
		<title>Apt-get</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Apt-get"/>
				<updated>2011-10-02T01:25:43Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;{{DISPLAYTITLE:apt-get}}   Category:Linux_Commands&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:apt-get}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux_Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Managing_Users_on_Linux</id>
		<title>Managing Users on Linux</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Managing_Users_on_Linux"/>
				<updated>2011-09-22T16:59:30Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;     adduser(8) - Command used to add user accounts.     chage (1) - Used to change the time the user's password will expire.     chfn(1) - Change a user's finger information    ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
    adduser(8) - Command used to add user accounts.&lt;br /&gt;
    chage (1) - Used to change the time the user's password will expire.&lt;br /&gt;
    chfn(1) - Change a user's finger information&lt;br /&gt;
    chsh(1) - Change a user's shell.&lt;br /&gt;
    chgrp (1) - Changes the group ownership of files.&lt;br /&gt;
    chown (1) - Change the owner of file(s ) to another user.&lt;br /&gt;
    gpasswd (1) - Used to administer the /etc/group file.&lt;br /&gt;
    groupadd (8) - Create a new group.&lt;br /&gt;
    grpconv (8) - Creates /etc/gshadow from the file /etc/group which converts to shadow passwords.&lt;br /&gt;
    grpunconv (8)- Uses the files /etc/passwd and /etc/shadow to create /etc/passwd, then deletes /etc/shadow which converts from shadow passwords.&lt;br /&gt;
    groupdel (8) - Delete a group&lt;br /&gt;
    groupmod (8) - Modify a group&lt;br /&gt;
    groups (1) - print the groups a user is in&lt;br /&gt;
    grpck (8) - Verify the integrity of group files.&lt;br /&gt;
    id(1) - Print group or user ID numbers for the specified user.&lt;br /&gt;
    newgrp(1) - Allows a user to log in to a new group.&lt;br /&gt;
    newusers (8) - Update and create new users in batch form.&lt;br /&gt;
    nologin (5) - Prevent non-root users from logging onto the system.&lt;br /&gt;
    passwd (1) - Used to update a user's password. The command &amp;quot;passwd username&amp;quot; will set the password for the given user.&lt;br /&gt;
    pwconv (8) - Used to create the file /etc/shadow from the file /etc/passwd to convert to shadow passwords.&lt;br /&gt;
    pwunconv (8) - Uses the files /etc/passwd and /etc/shadow to create /etc/passwd, then deletes /etc/shadow to convert from shadow passwords.&lt;br /&gt;
    su (1) - run a shell with substitute user and group IDs&lt;br /&gt;
    useradd (8) - Create a new user or update default new user information&lt;br /&gt;
    userdel (8) - Delete a user account and their files from the system. The command &amp;quot;userdel -r newuser&amp;quot; will remove the user and deletes their home directory.&lt;br /&gt;
    usermod (8) - Modify a user account. &lt;br /&gt;
&lt;br /&gt;
[[Category:Linux_Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Ln</id>
		<title>Ln</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Ln"/>
				<updated>2011-09-22T16:06:49Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:ln}}&lt;br /&gt;
=Hard link=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
qais@debian60:~$ echo &amp;quot;This is a file&amp;quot; &amp;gt; basic.file&lt;br /&gt;
qais@debian60:~$ ln basic.file hardlink.file&lt;br /&gt;
qais@debian60:~$ ls -lai *.file&lt;br /&gt;
644658 -rw-r--r-- 2 qais qais 15 Sep 21 13:23 basic.file&lt;br /&gt;
644658 -rw-r--r-- 2 qais qais 15 Sep 21 13:23 hardlink.file&lt;br /&gt;
qais@debian60:~$ cat hardlink.file&lt;br /&gt;
This is a file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=Soft link=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
qais@debian60:~$ ln -s basic.file softlink.file&lt;br /&gt;
qais@debian60:~$ ls -lai *.file&lt;br /&gt;
644658 -rw-r--r-- 2 qais qais 15 Sep 21 13:23 basic.file&lt;br /&gt;
644658 -rw-r--r-- 2 qais qais 15 Sep 21 13:23 hardlink.file&lt;br /&gt;
644821 lrwxrwxrwx 1 qais qais 10 Sep 21 13:24 softlink.file -&amp;gt; basic.file&lt;br /&gt;
qais@debian60:~$ cat softlink.file &lt;br /&gt;
This is a file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Pstree</id>
		<title>Pstree</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Pstree"/>
				<updated>2011-09-19T02:22:01Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:pstree}}&lt;br /&gt;
pstree - display a tree of processes&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
root@debian60:~/junk# pstree&lt;br /&gt;
init─┬─NetworkManager─┬─dhclient&lt;br /&gt;
     │                └─{NetworkManager}&lt;br /&gt;
     ├─acpid&lt;br /&gt;
     ├─atd&lt;br /&gt;
     ├─avahi-daemon───avahi-daemon&lt;br /&gt;
     ├─bluetoothd&lt;br /&gt;
     ├─bonobo-activati───{bonobo-activat}&lt;br /&gt;
     ├─console-kit-dae───63*[{console-kit-da}]&lt;br /&gt;
     ├─cron&lt;br /&gt;
     ├─cupsd&lt;br /&gt;
     ├─2*[dbus-daemon]&lt;br /&gt;
     ├─exim4&lt;br /&gt;
     ├─gconfd-2&lt;br /&gt;
     ├─gdm3─┬─gdm-simple-slav─┬─Xorg&lt;br /&gt;
     │      │                 ├─gdm-session-wor&lt;br /&gt;
     │      │                 ├─gnome-session─┬─at-spi-registry&lt;br /&gt;
     │      │                 │               ├─gdm-simple-gree&lt;br /&gt;
     │      │                 │               ├─gnome-power-man&lt;br /&gt;
     │      │                 │               ├─metacity&lt;br /&gt;
     │      │                 │               ├─polkit-gnome-au&lt;br /&gt;
     │      │                 │               └─{gnome-session}&lt;br /&gt;
     │      │                 └─{gdm-simple-sla}&lt;br /&gt;
     │      └─{gdm3}&lt;br /&gt;
     ├─6*[getty]&lt;br /&gt;
     ├─gnome-settings-&lt;br /&gt;
     ├─gvfsd&lt;br /&gt;
     ├─kerneloops&lt;br /&gt;
     ├─modem-manager&lt;br /&gt;
     ├─polkitd&lt;br /&gt;
     ├─portmap&lt;br /&gt;
     ├─rpc.statd&lt;br /&gt;
     ├─rsyslogd───2*[{rsyslogd}]&lt;br /&gt;
     ├─sshd───sshd───sshd───bash───su───bash───pstree&lt;br /&gt;
     ├─udevd───2*[udevd]&lt;br /&gt;
     ├─upowerd&lt;br /&gt;
     └─wpa_supplicant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Flags=&lt;br /&gt;
OPTIONS&lt;br /&gt;
       -a     Show  command  line  arguments. If the command line of a process is swapped out, that&lt;br /&gt;
              process is shown in parentheses. -a implicitly disables compaction for processes  but&lt;br /&gt;
              not threads.&lt;br /&gt;
&lt;br /&gt;
       -A     Use ASCII characters to draw the tree.&lt;br /&gt;
&lt;br /&gt;
       -c     Disable compaction of identical subtrees. By default, subtrees are compacted whenever&lt;br /&gt;
              possible.&lt;br /&gt;
&lt;br /&gt;
       -G     Use VT100 line drawing characters.&lt;br /&gt;
&lt;br /&gt;
       -h     Highlight the current process and its ancestors. This is  a  no-op  if  the  terminal&lt;br /&gt;
              doesn't  support highlighting or if neither the current process nor any of its ances‐&lt;br /&gt;
              tors are in the subtree being shown.&lt;br /&gt;
&lt;br /&gt;
       -H     Like -h, but highlight the specified process instead. Unlike with  -h,  pstree  fails&lt;br /&gt;
              when using -H if highlighting is not available.&lt;br /&gt;
&lt;br /&gt;
       -l     Display  long  lines.  By default, lines are truncated to the display width or 132 if&lt;br /&gt;
              output is sent to a non-tty or if the display width is unknown.&lt;br /&gt;
&lt;br /&gt;
       -n     Sort processes with the same ancestor by PID instead of by name. (Numeric sort.)&lt;br /&gt;
&lt;br /&gt;
       -p     Show PIDs. PIDs are shown as decimal numbers in parentheses after each process  name.&lt;br /&gt;
              -p implicitly disables compaction.&lt;br /&gt;
&lt;br /&gt;
       -u     Show  uid transitions. Whenever the uid of a process differs from the uid of its par‐&lt;br /&gt;
              ent, the new uid is shown in parentheses after the process name.&lt;br /&gt;
&lt;br /&gt;
       -U     Use UTF-8 (Unicode) line drawing characters. Under Linux 1.1-54 and above, UTF-8 mode&lt;br /&gt;
              is entered on the console with echo -e '\033%8' and left with echo -e '\033%@'&lt;br /&gt;
&lt;br /&gt;
       -V     Display version information.&lt;br /&gt;
&lt;br /&gt;
       -Z     (SELinux)  Show security context for each process. This flag will only work if pstree&lt;br /&gt;
              is compilied with SELinux support.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Cal</id>
		<title>Cal</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Cal"/>
				<updated>2011-09-19T01:07:52Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:cal}}&lt;br /&gt;
&lt;br /&gt;
cal, ncal — displays a calendar and the date of Easter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
root@debian60:~# cal&lt;br /&gt;
   September 2011&lt;br /&gt;
Su Mo Tu We Th Fr Sa&lt;br /&gt;
             1  2  3&lt;br /&gt;
 4  5  6  7  8  9 10&lt;br /&gt;
11 12 13 14 15 16 17&lt;br /&gt;
18 19 20 21 22 23 24&lt;br /&gt;
25 26 27 28 29 30&lt;br /&gt;
&lt;br /&gt;
root@debian60:~# ncal&lt;br /&gt;
    September 2011&lt;br /&gt;
Su     4 11 18 25&lt;br /&gt;
Mo     5 12 19 26&lt;br /&gt;
Tu     6 13 20 27&lt;br /&gt;
We     7 14 21 28&lt;br /&gt;
Th  1  8 15 22 29&lt;br /&gt;
Fr  2  9 16 23 30&lt;br /&gt;
Sa  3 10 17 24      &lt;br /&gt;
&lt;br /&gt;
root@debian60:~# cal -y 0001&lt;br /&gt;
                               1&lt;br /&gt;
&lt;br /&gt;
      January               February               March&lt;br /&gt;
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa&lt;br /&gt;
                   1         1  2  3  4  5         1  2  3  4  5&lt;br /&gt;
 2  3  4  5  6  7  8   6  7  8  9 10 11 12   6  7  8  9 10 11 12&lt;br /&gt;
 9 10 11 12 13 14 15  13 14 15 16 17 18 19  13 14 15 16 17 18 19&lt;br /&gt;
16 17 18 19 20 21 22  20 21 22 23 24 25 26  20 21 22 23 24 25 26&lt;br /&gt;
23 24 25 26 27 28 29  27 28                 27 28 29 30 31&lt;br /&gt;
30 31                                       &lt;br /&gt;
       April                  May                   June&lt;br /&gt;
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa&lt;br /&gt;
                1  2   1  2  3  4  5  6  7            1  2  3  4&lt;br /&gt;
 3  4  5  6  7  8  9   8  9 10 11 12 13 14   5  6  7  8  9 10 11&lt;br /&gt;
10 11 12 13 14 15 16  15 16 17 18 19 20 21  12 13 14 15 16 17 18&lt;br /&gt;
17 18 19 20 21 22 23  22 23 24 25 26 27 28  19 20 21 22 23 24 25&lt;br /&gt;
24 25 26 27 28 29 30  29 30 31              26 27 28 29 30&lt;br /&gt;
                                            &lt;br /&gt;
        July                 August              September&lt;br /&gt;
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa&lt;br /&gt;
                1  2      1  2  3  4  5  6               1  2  3&lt;br /&gt;
 3  4  5  6  7  8  9   7  8  9 10 11 12 13   4  5  6  7  8  9 10&lt;br /&gt;
10 11 12 13 14 15 16  14 15 16 17 18 19 20  11 12 13 14 15 16 17&lt;br /&gt;
17 18 19 20 21 22 23  21 22 23 24 25 26 27  18 19 20 21 22 23 24&lt;br /&gt;
24 25 26 27 28 29 30  28 29 30 31           25 26 27 28 29 30&lt;br /&gt;
31                                          &lt;br /&gt;
      October               November              December&lt;br /&gt;
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa&lt;br /&gt;
                   1         1  2  3  4  5               1  2  3&lt;br /&gt;
 2  3  4  5  6  7  8   6  7  8  9 10 11 12   4  5  6  7  8  9 10&lt;br /&gt;
 9 10 11 12 13 14 15  13 14 15 16 17 18 19  11 12 13 14 15 16 17&lt;br /&gt;
16 17 18 19 20 21 22  20 21 22 23 24 25 26  18 19 20 21 22 23 24&lt;br /&gt;
23 24 25 26 27 28 29  27 28 29 30           25 26 27 28 29 30 31&lt;br /&gt;
30 31                                       &lt;br /&gt;
&lt;br /&gt;
root@debian60:~# cal -m 12&lt;br /&gt;
   December 2011&lt;br /&gt;
Su Mo Tu We Th Fr Sa&lt;br /&gt;
             1  2  3&lt;br /&gt;
 4  5  6  7  8  9 10&lt;br /&gt;
11 12 13 14 15 16 17&lt;br /&gt;
18 19 20 21 22 23 24&lt;br /&gt;
25 26 27 28 29 30 31&lt;br /&gt;
&lt;br /&gt;
root@debian60:~# cal | sed 's/2011/2000/' &lt;br /&gt;
   September 2000&lt;br /&gt;
Su Mo Tu We Th Fr Sa&lt;br /&gt;
             1  2  3&lt;br /&gt;
 4  5  6  7  8  9 10&lt;br /&gt;
11 12 13 14 15 16 17&lt;br /&gt;
18 19 20 21 22 23 24&lt;br /&gt;
25 26 27 28 29 30&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:Linux_Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Chage</id>
		<title>Chage</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Chage"/>
				<updated>2011-09-18T19:18:45Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: /* How to disable password aging for an user account */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:chage}}&lt;br /&gt;
&lt;br /&gt;
chage stands for “change age”. i.e chage command abbreviation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
[root@localhost profile.d]# chage --list a507394&lt;br /&gt;
Last password change					: Apr 10, 2011&lt;br /&gt;
Password expires					: never&lt;br /&gt;
Password inactive					: never&lt;br /&gt;
Account expires						: never&lt;br /&gt;
Minimum number of days between password change		: 0&lt;br /&gt;
Maximum number of days between password change		: 99999&lt;br /&gt;
Number of days of warning before password expires	: 7&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Password Expiry Date for an user using chage option -M=&lt;br /&gt;
Please note that option -M will update both “Password expires” and “Maximum number of days between password change” entries as shown below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
# chage -M 10 dhinesh&lt;br /&gt;
&lt;br /&gt;
# chage --list dhinesh&lt;br /&gt;
Last password change                                    : Apr 23, 2009&lt;br /&gt;
Password expires                                        : May 03, 2009&lt;br /&gt;
Password inactive                                       : never&lt;br /&gt;
Account expires                                         : never&lt;br /&gt;
Minimum number of days between password change          : 0&lt;br /&gt;
Maximum number of days between password change          : 10&lt;br /&gt;
Number of days of warning before password expires       : 7&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Account Expiry Date for an User=&lt;br /&gt;
You can also use chage command to set the account expiry date as shown below using option -E. The date given below is in “YYYY-MM-DD” format. This will update the “Account expires” value as shown below.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
# chage -E &amp;quot;2009-05-31&amp;quot; dhinesh&lt;br /&gt;
&lt;br /&gt;
# chage -l dhinesh&lt;br /&gt;
Last password change                                    : Apr 23, 2009&lt;br /&gt;
Password expires                                        : May 03, 2009&lt;br /&gt;
Password inactive                                       : never&lt;br /&gt;
Account expires                                         : May 31, 2009&lt;br /&gt;
Minimum number of days between password change          : 0&lt;br /&gt;
Maximum number of days between password change          : 10&lt;br /&gt;
Number of days of warning before password expires       : 7&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Force the user account to be locked after X number of inactivity days=&lt;br /&gt;
&lt;br /&gt;
Typically if the password is expired, users are forced to change it during their next login. You can also set an additional condition, where after the password is expired, if the user never tried to login for 10 days, you can automatically lock their account using option -I as shown below. In this example, the “Password inactive” date is set to 10 days from the “Password expires” value.&lt;br /&gt;
 &lt;br /&gt;
Once an account is locked, only system administrators will be able to unlock it.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
# chage -I 10 dhinesh&lt;br /&gt;
&lt;br /&gt;
# chage -l dhinesh&lt;br /&gt;
Last password change                                    : Apr 23, 2009&lt;br /&gt;
Password expires                                        : May 03, 2009&lt;br /&gt;
Password inactive                                       : May 13, 2009&lt;br /&gt;
Account expires                                         : May 31, 2009&lt;br /&gt;
Minimum number of days between password change          : 0&lt;br /&gt;
Maximum number of days between password change          : 10&lt;br /&gt;
Number of days of warning before password expires       : 7&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=How to disable password aging for an user account=&lt;br /&gt;
To turn off the password expiration for an user account, set the following:&lt;br /&gt;
&lt;br /&gt;
*    -m 0 will set the minimum number of days between password change to 0&lt;br /&gt;
*    -M 99999 will set the maximum number of days between password change to 99999&lt;br /&gt;
*    -I -1 (number minus one) will set the “Password inactive” to never&lt;br /&gt;
*    -E -1 (number minus one) will set “Account expires” to never.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
# chage -m 0 -M 99999 -I -1 -E -1 dhinesh&lt;br /&gt;
&lt;br /&gt;
# chage --list dhinesh&lt;br /&gt;
Last password change                                    : Apr 23, 2009&lt;br /&gt;
Password expires                                        : never&lt;br /&gt;
Password inactive                                       : never&lt;br /&gt;
Account expires                                         : never&lt;br /&gt;
Minimum number of days between password change          : 0&lt;br /&gt;
Maximum number of days between password change          : 99999&lt;br /&gt;
Number of days of warning before password expires       : 7&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Realtek_debian_squeeze_issue</id>
		<title>Realtek debian squeeze issue</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Realtek_debian_squeeze_issue"/>
				<updated>2011-09-18T00:11:06Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;Installing the new kernel package &amp;quot;linux-image-2.6.32-trunk-amd64&amp;quot; results in new warning messages like:     W: Possible missing firmware /lib/firmware/rtl8168d-2.fw for module r...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Installing the new kernel package &amp;quot;linux-image-2.6.32-trunk-amd64&amp;quot;&lt;br /&gt;
results in new warning messages like:&lt;br /&gt;
&lt;br /&gt;
   W: Possible missing firmware /lib/firmware/rtl8168d-2.fw for module r8169&lt;br /&gt;
&lt;br /&gt;
It looks like this firmware was removed from the kernel proper as part&lt;br /&gt;
of the non-free firmware removal process, which suggests that it should&lt;br /&gt;
be included in firmware-linux-nonfree instead.&lt;br /&gt;
&lt;br /&gt;
downloaded the firmware from&lt;br /&gt;
* http://packages.debian.org/squeeze/all/firmware-realtek/download&lt;br /&gt;
&lt;br /&gt;
firmware gets installed at&lt;br /&gt;
&lt;br /&gt;
root@lexiana:/lib/firmware/rtl_nic# pwd&lt;br /&gt;
&lt;br /&gt;
/lib/firmware/rtl_nic&lt;br /&gt;
&lt;br /&gt;
root@lexiana:/lib/firmware/rtl_nic# ls&lt;br /&gt;
&lt;br /&gt;
rtl8168d-1.fw  rtl8168d-2.fw&lt;br /&gt;
&lt;br /&gt;
ran update-initramfs -u. &lt;br /&gt;
&lt;br /&gt;
following a reboot kern.log had changed:&lt;br /&gt;
&lt;br /&gt;
WAS:&lt;br /&gt;
&lt;br /&gt;
Jan 17 23:26:00 gauss kernel: [ 1.001780] r8169 0000:02:00.0:firmware: requesting rtl8168d-2.fw&lt;br /&gt;
Jan 17 23:26:00 gauss kernel: [ 1.002981] eth0: unable to apply firmware patch&lt;br /&gt;
&lt;br /&gt;
IS:&lt;br /&gt;
&lt;br /&gt;
Jan 22 09:52:54 gauss kernel: [ 0.998226] r8169 0000:02:00.0:firmware: requesting rtl_nic/rtl8168d-2.fw&lt;br /&gt;
[[Category:Linux_Articles]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Chkconfig</id>
		<title>Chkconfig</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Chkconfig"/>
				<updated>2011-09-16T17:14:42Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:chkconfig}}&lt;br /&gt;
&lt;br /&gt;
=List the start scripts=&lt;br /&gt;
* chkconfig --list&lt;br /&gt;
* chkconfig --list | grep proxy-forward&lt;br /&gt;
&lt;br /&gt;
=Enable a start script=&lt;br /&gt;
* chkconfig --level 345 proxy-forward on&lt;br /&gt;
&lt;br /&gt;
=Writing a start script=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
#&lt;br /&gt;
# Apache proxy forward script&lt;br /&gt;
#&lt;br /&gt;
# Version 1.0 - Qais Chaudry 20110816&lt;br /&gt;
# qais.chaudry@atos.net&lt;br /&gt;
#&lt;br /&gt;
# chkconfig: 345 99 50&lt;br /&gt;
# description:	proxy-forward is used for forwarding all port 80 \&lt;br /&gt;
#		traffic to a loadbalancer at port 8080.&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
	start)&lt;br /&gt;
/opt/httpd-2.2.19/bin/apachectl start&lt;br /&gt;
	;;&lt;br /&gt;
&lt;br /&gt;
	stop)&lt;br /&gt;
		&lt;br /&gt;
		kill -9 `ps -ef|grep https|grep -v grep|awk '{print $2}'`&lt;br /&gt;
&lt;br /&gt;
	;;&lt;br /&gt;
&lt;br /&gt;
	*)&lt;br /&gt;
        echo $&amp;quot;Usage: $0 {start|stop}&amp;quot;&lt;br /&gt;
        exit 2&lt;br /&gt;
&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Enable your own start script=&lt;br /&gt;
$ /sbin/chkconfig llc2 on&lt;br /&gt;
&lt;br /&gt;
service llc2 does not support chkconfig&lt;br /&gt;
&lt;br /&gt;
it look like chkconfig looks for a line similar to the following in each run control script:&lt;br /&gt;
&lt;br /&gt;
# chkconfig: 345 99 50&lt;br /&gt;
&lt;br /&gt;
The values after the “chkconfig:” statement contain the runlevels to enable the script at, the value to use after the “S” in the start scripts, and the value to use after the “K” in the kill scripts. So 345 would cause the start script to be executed at run levels 3, 4 and 5, the start script would be named S99llc2, and the kill script would be named K50llc2.&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Diff</id>
		<title>Diff</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Diff"/>
				<updated>2011-09-11T02:24:13Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;{{DISPLAYTITLE:diff}}  use diff for ascii file and use '''cmp''' for binary files. Category:Bash Category:Linux Commands&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:diff}}&lt;br /&gt;
&lt;br /&gt;
use diff for ascii file and use '''cmp''' for binary files.&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Wall</id>
		<title>Wall</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Wall"/>
				<updated>2011-09-11T02:13:37Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:wall}}&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
root@initq:~# wall mount.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also type '''wall''' then your message and then CTRL-D to send the message.&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Write</id>
		<title>Write</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Write"/>
				<updated>2011-09-11T02:05:21Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:write}}&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
w&lt;br /&gt;
 21:04:42 up 5 days,  9:09,  3 users,  load average: 0.26, 0.16, 0.15&lt;br /&gt;
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT&lt;br /&gt;
lexiana  tty8     :0               Thu17    5days  2:46m  0.57s gnome-session --session=ubuntu&lt;br /&gt;
lexiana  pts/0    :0               Thu17    0.00s  1.32s 42.37s gnome-terminal&lt;br /&gt;
lexiana  pts/1    :0               Thu19   40.00s  0.74s  0.74s bash&lt;br /&gt;
root@initq:~# write lexiana tty8&lt;br /&gt;
write: write: you have write permission turned off.&lt;br /&gt;
&lt;br /&gt;
write: warning: write will appear from lexiana&lt;br /&gt;
hello&lt;br /&gt;
^Croot@initq:~#&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don't like to see message then do&lt;br /&gt;
* mesg n&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Who</id>
		<title>Who</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Who"/>
				<updated>2011-09-11T01:38:08Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:who}}&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
# who am i&lt;br /&gt;
lexiana  pts/0        2011-09-08 17:26 (:0)&lt;br /&gt;
&lt;br /&gt;
# whoami&lt;br /&gt;
root&lt;br /&gt;
&lt;br /&gt;
# who&lt;br /&gt;
lexiana  tty8         2011-09-08 17:26 (:0)&lt;br /&gt;
lexiana  pts/0        2011-09-08 17:26 (:0)&lt;br /&gt;
lexiana  pts/1        2011-09-08 19:03 (:0)&lt;br /&gt;
&lt;br /&gt;
# w&lt;br /&gt;
 20:51:19 up 5 days,  8:56,  3 users,  load average: 0.26, 0.21, 0.17&lt;br /&gt;
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT&lt;br /&gt;
lexiana  tty8     :0               Thu17    5days  2:45m  0.57s gnome-session -&lt;br /&gt;
lexiana  pts/0    :0               Thu17    0.00s  1.25s 40.38s gnome-terminal&lt;br /&gt;
lexiana  pts/1    :0               Thu19    3:49m  0.71s  0.71s bash&lt;br /&gt;
&lt;br /&gt;
# finger&lt;br /&gt;
Login     Name       Tty      Idle  Login Time   Office     Office Phone&lt;br /&gt;
lexiana   lexiana    tty8       5d  Sep  8 17:26 (:0)&lt;br /&gt;
lexiana   lexiana   *pts/0          Sep  8 17:26 (:0)&lt;br /&gt;
lexiana   lexiana    pts/1    3:49  Sep  8 19:03 (:0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Locate</id>
		<title>Locate</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Locate"/>
				<updated>2011-09-11T01:36:47Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;{{DISPLAYTITLE:locate}}    Category:Bash Category:Linux Commands&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:locate}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Apropos</id>
		<title>Apropos</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Apropos"/>
				<updated>2011-09-11T00:51:00Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:apropos}}&lt;br /&gt;
&lt;br /&gt;
man -k gives the same output.&lt;br /&gt;
&lt;br /&gt;
whatis&lt;br /&gt;
&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Which</id>
		<title>Which</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Which"/>
				<updated>2011-09-11T00:46:35Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;{{DISPLAYTITLE:which}} =which=  =whereis=   Category:Bash Category:Linux Commands&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:which}}&lt;br /&gt;
=which=&lt;br /&gt;
&lt;br /&gt;
=whereis=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/If_than_examples</id>
		<title>If than examples</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/If_than_examples"/>
				<updated>2011-09-10T21:37:43Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
set +&lt;br /&gt;
echo &amp;quot;Is it morning? Please answer yes or no&amp;quot;&lt;br /&gt;
read timeofday&lt;br /&gt;
&lt;br /&gt;
if [ $timeofday = yes ]&lt;br /&gt;
then&lt;br /&gt;
 echo &amp;quot;Good morning&amp;quot;&lt;br /&gt;
elif [ $timeofday = no ]&lt;br /&gt;
then&lt;br /&gt;
 echo &amp;quot;Good evening&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
 echo &amp;quot;Input in invalid&amp;quot;&lt;br /&gt;
 exit 1;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$ ./morning.sh &lt;br /&gt;
Is it morning? Please answer yes or no&lt;br /&gt;
yes&lt;br /&gt;
Good morning&lt;br /&gt;
$ ./morning.sh &lt;br /&gt;
Is it morning? Please answer yes or no&lt;br /&gt;
no&lt;br /&gt;
Good evening&lt;br /&gt;
$ ./morning.sh &lt;br /&gt;
Is it morning? Please answer yes or no&lt;br /&gt;
oh no&lt;br /&gt;
[: 15: oh: unexpected operator&lt;br /&gt;
[: 15: oh: unexpected operator&lt;br /&gt;
Input in invalid&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you do not enter yes or no and just hit enter then you will get&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
$ ./morning.sh &lt;br /&gt;
Is it morning? Please answer yes or no&lt;br /&gt;
&lt;br /&gt;
[: 15: =: unexpected operator&lt;br /&gt;
[: 15: =: unexpected operator&lt;br /&gt;
Input in invalid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To avoid this you have to put $timeofday in quotes. &amp;quot;$timeofday&amp;quot;&lt;br /&gt;
[[Category:Bash_Projects]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Test</id>
		<title>Test</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Test"/>
				<updated>2011-09-10T20:50:57Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;{{DISPLAYTITLE:test}} test Evaluate a conditional expression expr.  Syntax       test expr          [ expr  Options  Each operator and operand must be a separate argument. When t...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:test}}&lt;br /&gt;
test&lt;br /&gt;
Evaluate a conditional expression expr.&lt;br /&gt;
&lt;br /&gt;
Syntax&lt;br /&gt;
      test expr&lt;br /&gt;
         [ expr&lt;br /&gt;
&lt;br /&gt;
Options&lt;br /&gt;
&lt;br /&gt;
Each operator and operand must be a separate argument. When the [ form is used, the last argument to the command must be a ]. Expressions may be combined using the following operators, listed in decreasing order of precedence.&lt;br /&gt;
&lt;br /&gt;
    ! expr&lt;br /&gt;
&lt;br /&gt;
    True if expr is false.&lt;br /&gt;
&lt;br /&gt;
( expr )&lt;br /&gt;
&lt;br /&gt;
    Returns the value of expr. This may be used to override the&lt;br /&gt;
    normal precedence of operators. &lt;br /&gt;
&lt;br /&gt;
expr1 -a expr2&lt;br /&gt;
&lt;br /&gt;
    True if both expr1 and expr2 are true.&lt;br /&gt;
&lt;br /&gt;
expr1 -o expr2&lt;br /&gt;
&lt;br /&gt;
    True if either expr1 or expr2 is true.&lt;br /&gt;
&lt;br /&gt;
The test and [ builtins evaluate conditional expressions using a set of rules based on the number of arguments.&lt;br /&gt;
&lt;br /&gt;
    0 arguments&lt;br /&gt;
&lt;br /&gt;
        The expression is false.&lt;br /&gt;
    1 argument&lt;br /&gt;
&lt;br /&gt;
        The expression is true if and only if the argument is not null.&lt;br /&gt;
    2 arguments&lt;br /&gt;
&lt;br /&gt;
        If the first argument is `!', the expression is true if and only if the second argument is null. If the first argument is one of the unary conditional operators, the expression is true if the unary test is true. If the first argument is not a valid unary operator, the expression is false.&lt;br /&gt;
    3 arguments&lt;br /&gt;
&lt;br /&gt;
        If the second argument is one of the binary conditional operators, the result of the expression is the result of the binary test using the first and third arguments as operands. If the first argument is `!', the value is the negation of the two-argument test using the second and third arguments. If the first argument is exactly `(' and the third argument is exactly `)', the result is the one-argument test of the second argument. Otherwise, the expression is false. The `-a' and `-o' operators are considered binary operators in this case.&lt;br /&gt;
    4 arguments&lt;br /&gt;
&lt;br /&gt;
        If the first argument is `!', the result is the negation of the three-argument expression composed of the remaining arguments. Otherwise, the expression is parsed and evaluated according to precedence using the rules listed above.&lt;br /&gt;
    5 or more arguments&lt;br /&gt;
&lt;br /&gt;
        The expression is parsed and evaluated according to precedence using the rules listed above.&lt;br /&gt;
&lt;br /&gt;
The above applies to the BOURNE shell built-in, the BASH `test' command has the following additional options:&lt;br /&gt;
&lt;br /&gt;
File type tests&lt;br /&gt;
&lt;br /&gt;
These options test for particular types of files. All cases will only return True (0) if the file exists.&lt;br /&gt;
&lt;br /&gt;
`-b file'&lt;br /&gt;
     True if file is a Block special device.&lt;br /&gt;
&lt;br /&gt;
`-c file'&lt;br /&gt;
     True if file is a Character special device.&lt;br /&gt;
&lt;br /&gt;
`-d file'&lt;br /&gt;
     True if file is a Directory.&lt;br /&gt;
&lt;br /&gt;
`-e file'&lt;br /&gt;
     True if file Exists.&lt;br /&gt;
&lt;br /&gt;
`-f file'&lt;br /&gt;
     True if file is a regular File.&lt;br /&gt;
&lt;br /&gt;
`-g file'&lt;br /&gt;
     True if file has its set-group-id bit set.&lt;br /&gt;
&lt;br /&gt;
`-G file'&lt;br /&gt;
     True if file is owned by the current effective group id.&lt;br /&gt;
&lt;br /&gt;
`-k file'&lt;br /&gt;
     True if file has its &amp;quot;sticky&amp;quot; bit set.&lt;br /&gt;
&lt;br /&gt;
`-h file'&lt;br /&gt;
`-L file'&lt;br /&gt;
     True if file is a symbolic Link.&lt;br /&gt;
&lt;br /&gt;
`-O file'&lt;br /&gt;
     True if file is owned by the current effective user id.&lt;br /&gt;
&lt;br /&gt;
`-p file'&lt;br /&gt;
     True if file is a named Pipe.&lt;br /&gt;
&lt;br /&gt;
`-r file'&lt;br /&gt;
     True if file is readable.&lt;br /&gt;
&lt;br /&gt;
`-S file'&lt;br /&gt;
     True if file is a Socket.&lt;br /&gt;
&lt;br /&gt;
`-s file'&lt;br /&gt;
     True if file has a Size greater than zero.&lt;br /&gt;
&lt;br /&gt;
`-t [FD]'&lt;br /&gt;
     True if FD is opened on a terminal.  If FD is omitted, it defaults&lt;br /&gt;
     to 1 (standard output).&lt;br /&gt;
&lt;br /&gt;
`-u file'&lt;br /&gt;
     True if file has its set-user-id bit set.&lt;br /&gt;
&lt;br /&gt;
`-w file'&lt;br /&gt;
     True if file is writable.&lt;br /&gt;
&lt;br /&gt;
`-x file'&lt;br /&gt;
     True if file is executable.&lt;br /&gt;
&lt;br /&gt;
`file1 -ef file2'&lt;br /&gt;
     True if file1 and file2 have the same device and inode numbers,&lt;br /&gt;
     i.e., if they are hard links to each other.&lt;br /&gt;
&lt;br /&gt;
File Age&lt;br /&gt;
These options test the file modification date.&lt;br /&gt;
&lt;br /&gt;
`file1 -nt file2'&lt;br /&gt;
     True if file1 is newer than file2.&lt;br /&gt;
&lt;br /&gt;
`file1 -ot file2'&lt;br /&gt;
     True if file1 is older than file2.&lt;br /&gt;
&lt;br /&gt;
String tests&lt;br /&gt;
These options test string characteristics. Strings are not quoted for `test', though you may need to quote them to protect characters with special meaning to the shell, e.g., spaces.&lt;br /&gt;
&lt;br /&gt;
`-z String'&lt;br /&gt;
     True if the length of String is zero.&lt;br /&gt;
&lt;br /&gt;
`-n String'&lt;br /&gt;
`String'&lt;br /&gt;
     True if the length of String is nonzero.&lt;br /&gt;
&lt;br /&gt;
`String1 = String2'&lt;br /&gt;
     True if the strings are equal.&lt;br /&gt;
&lt;br /&gt;
`String1 != String2'&lt;br /&gt;
     True if the strings are not equal.&lt;br /&gt;
&lt;br /&gt;
Numeric tests&lt;br /&gt;
Numeric relationals. The arguments must be entirely numeric (possibly negative), or the special expression `-l STRING', which evaluates to the length of STRING.&lt;br /&gt;
&lt;br /&gt;
`ARG1 -eq ARG2'&lt;br /&gt;
`ARG1 -ne ARG2'&lt;br /&gt;
`ARG1 -lt ARG2'&lt;br /&gt;
`ARG1 -le ARG2'&lt;br /&gt;
`ARG1 -gt ARG2'&lt;br /&gt;
`ARG1 -ge ARG2'&lt;br /&gt;
     These arithmetic binary operators return true if ARG1 is equal,&lt;br /&gt;
     not-equal, less-than, less-than-or-equal, greater-than, or&lt;br /&gt;
     greater-than-or-equal than ARG2, respectively.&lt;br /&gt;
&lt;br /&gt;
   For example:&lt;br /&gt;
&lt;br /&gt;
     test -1 -gt -2 &amp;amp;&amp;amp; echo yes&lt;br /&gt;
     =&amp;gt; yes&lt;br /&gt;
     test -l abc -gt 1 &amp;amp;&amp;amp; echo yes&lt;br /&gt;
     =&amp;gt; yes&lt;br /&gt;
     test 0x100 -eq 1&lt;br /&gt;
     error--&amp;gt; test: integer expression expected before -eq&lt;br /&gt;
&lt;br /&gt;
Examples&lt;br /&gt;
&lt;br /&gt;
$ ls -al&lt;br /&gt;
total 67&lt;br /&gt;
&lt;br /&gt;
drwxr-xr-x  18 root    root   4096  Jun 9 21:12 ./&lt;br /&gt;
drwxr-xr-x  18 root    root   4096  Jun 9 21:12 ../&lt;br /&gt;
-rw-rw-rw-   1 simon	users  4096  Jun 9  07:30  london&lt;br /&gt;
-rwsrwsrwx   1 simon	users  4096  Jun 9  07:32  aberdeen&lt;br /&gt;
-rw-------   1 simon	users  4096  Jun 9  07:29  bristol&lt;br /&gt;
-rw-r--r--   1 simon   users  4096  Jun 9  07:29  bath&lt;br /&gt;
$&lt;br /&gt;
&lt;br /&gt;
$ test -r paris&lt;br /&gt;
$ echo $?&lt;br /&gt;
1&lt;br /&gt;
$&lt;br /&gt;
&lt;br /&gt;
Because the file `paris' is not Readable, the value returned is false (non zero)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$LOGNAME&amp;quot; = &amp;quot;scott&amp;quot; ]&lt;br /&gt;
then&lt;br /&gt;
    echo &amp;quot;Logged in as Scott&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
	 echo &amp;quot;incorrect user&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
If the logname variable = scott then the test returns TRUE (0)&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Environment_variables_script</id>
		<title>Environment variables script</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Environment_variables_script"/>
				<updated>2011-09-10T20:03:26Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this script we will also use [ or test to check if a file exists.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
if [ -f try_var.sh ]&lt;br /&gt;
then&lt;br /&gt;
salutation=&amp;quot;Hello&amp;quot;&lt;br /&gt;
echo $salutation&lt;br /&gt;
echo &amp;quot;The program $0 is now running&amp;quot;&lt;br /&gt;
echo &amp;quot;The second parameter is $2&amp;quot;&lt;br /&gt;
echo &amp;quot;The first parameter is $1&amp;quot;&lt;br /&gt;
echo &amp;quot;The parameter list was $*&amp;quot;&lt;br /&gt;
echo &amp;quot;The users home directory is $HOME&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Please enter a new greeting&amp;quot;&lt;br /&gt;
read salutation&lt;br /&gt;
&lt;br /&gt;
echo $salutation&lt;br /&gt;
echo &amp;quot;The script is now complete&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
exit 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$ ./try_var.sh bus khlas&lt;br /&gt;
Hello&lt;br /&gt;
The program ./try_var.sh is now running&lt;br /&gt;
The second parameter is khlas&lt;br /&gt;
The first parameter is bus&lt;br /&gt;
The parameter list was bus khlas&lt;br /&gt;
The users home directory is /home/lexiana&lt;br /&gt;
Please enter a new greeting&lt;br /&gt;
olaf&lt;br /&gt;
olaf&lt;br /&gt;
The script is now complete&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Bash_Projects]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Setting_up_NFS</id>
		<title>Setting up NFS</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Setting_up_NFS"/>
				<updated>2011-09-07T09:17:20Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Server=&lt;br /&gt;
* # apt-get install nfs-kernel-server &lt;br /&gt;
=Export=&lt;br /&gt;
File to edit is /etc/exports&lt;br /&gt;
&lt;br /&gt;
* /export       192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async)&lt;br /&gt;
=Client=&lt;br /&gt;
* # apt-get install nfs-common &lt;br /&gt;
[[Category:Linux Articles]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Language</id>
		<title>Language</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Language"/>
				<updated>2011-09-05T03:39:46Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;=Ding= * http://www-user.tu-chemnitz.de/~fri/ding/ German &amp;lt;--&amp;gt; English program. Can be used for a spell checker.   Category:Utilities&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Ding=&lt;br /&gt;
* http://www-user.tu-chemnitz.de/~fri/ding/&lt;br /&gt;
German &amp;lt;--&amp;gt; English program. Can be used for a spell checker. &lt;br /&gt;
&lt;br /&gt;
[[Category:Utilities]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Chmod</id>
		<title>Chmod</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Chmod"/>
				<updated>2011-09-05T00:41:23Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:chmod}}&lt;br /&gt;
=Change to 777=&lt;br /&gt;
* chmod u=+rwx,g=+rwx,o=+rwx setuid.txt&lt;br /&gt;
&lt;br /&gt;
=Change to 000=&lt;br /&gt;
* chmod u=-rwx,g=-rwx,o=-rwx setuid.txt&lt;br /&gt;
&lt;br /&gt;
=Sticky Bit=&lt;br /&gt;
As of SUID or SetUID bit, the executable which has the SUID set runs with the ownership of the program owner. That is, if you own an executable, and another person issues the executable, then it runs with your permission and not his. The default is that a program runs with the ownership of the person executing the binary.&lt;br /&gt;
&lt;br /&gt;
* chmod g+s /home/software&lt;br /&gt;
&lt;br /&gt;
=Permissions=&lt;br /&gt;
* r is 4&lt;br /&gt;
* w is 2&lt;br /&gt;
* x is 1&lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/For_and_if_example</id>
		<title>For and if example</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/For_and_if_example"/>
				<updated>2011-09-05T00:23:16Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* bash# for file in *; do if grep -q EMAIL $file; then echo $file; fi;done;&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
#This script gives the name of the matching word in all files.&lt;br /&gt;
&lt;br /&gt;
for file in *&lt;br /&gt;
do&lt;br /&gt;
 if grep -q EMAIL $file&lt;br /&gt;
 then&lt;br /&gt;
   echo $file&lt;br /&gt;
 fi&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output will be just file names because grep -q means quiet.&lt;br /&gt;
&lt;br /&gt;
=Check if Number is even or odd=&lt;br /&gt;
&lt;br /&gt;
Write a script that prints all odd or even numbers. mod % (returns the remainder of an integer division operation).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
for n in {1..100}&lt;br /&gt;
do&lt;br /&gt;
 out=$(( $n % 2 ))&lt;br /&gt;
  if [ $out -eq 0 ]&lt;br /&gt;
 then&lt;br /&gt;
   echo &amp;quot;$n is even number&amp;quot;&lt;br /&gt;
 else&lt;br /&gt;
   echo &amp;quot;$n is odd number&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
done;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=For example for fsck=&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
for i in `cat /etc/fstab | grep -i sda1 | awk '{print $1}'`; do fsck $i; done&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:Bash_Projects]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	<entry>
		<id>http://www.initq.com/index.php/Pgrep</id>
		<title>Pgrep</title>
		<link rel="alternate" type="text/html" href="http://www.initq.com/index.php/Pgrep"/>
				<updated>2011-09-04T23:28:10Z</updated>
		
		<summary type="html">&lt;p&gt;Qais: Created page with &amp;quot;{{DISPLAYTITLE:pgrepl}} pgrep looks through the currently running processes and lists the process IDs which matches the selection criteria to stdout. All the criteria have to mat...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:pgrepl}}&lt;br /&gt;
pgrep looks through the currently running processes and lists the process IDs which matches the selection criteria to stdout. All the criteria have to match. For example,&lt;br /&gt;
&lt;br /&gt;
pgrep -u root sshd&lt;br /&gt;
&lt;br /&gt;
will only list the processes called sshd AND owned by root. On the other hand,&lt;br /&gt;
&lt;br /&gt;
pgrep -u root,daemon&lt;br /&gt;
&lt;br /&gt;
will list the processes owned by root OR daemon. &lt;br /&gt;
[[Category:Bash]]&lt;br /&gt;
[[Category:Linux Commands]]&lt;br /&gt;
[[Category:LPI]]&lt;/div&gt;</summary>
		<author><name>Qais</name></author>	</entry>

	</feed>
