<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3407788516620073431</id><updated>2012-01-26T15:56:45.897+05:30</updated><title type='text'>Linux Shell Scripts</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-1725829307599486279</id><published>2007-04-02T19:46:00.000+05:30</published><updated>2007-04-02T19:57:40.219+05:30</updated><title type='text'>Shell Scripts - Part 09</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-family: georgia; color: rgb(204, 102, 204); font-size: 180%;"&gt;Shell Scripts - Part 09&lt;span style="font-size: 100%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:130%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(0, 153, 0);font-size:130%;" &gt;&lt;a href="http://www.esnips.com/nsdoc/fb7d69de-c1bc-48d6-9c77-434896a038c5"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;091-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;contactus.cgi&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To process the contact us form data, email it to the designated recipient, and return a succinct thank you message.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/2953ad5b-ad60-4fae-99f2-71a750fb52bc"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;092-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;contactus.html&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;A html helper file for script #91, contactus.cgi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/b24ec4d7-0021-438b-abd2-dfad6042a942"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;093-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;photoalbum.cgi&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;A dynamic web photo album utility.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/73b2c3f6-3dc3-4f2c-96bd-cf540e090a04"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;094-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;guestbook.cgi&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To display the current guestbook entries, append a simple form for visitors to add their own comments, and accept and process new guest entries. Works with a separate data file that actually contains the guest data.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/5b9e6f3d-f8d4-4359-abef-282d02d9efb9"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;095-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;guestbook.txt&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;Data file for script #94, guestbook.cgi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/b7f90356-517c-4341-b3e7-0a87f7e1f628"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;096-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;counter.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;A simple text-based page counter, with appropriate locking&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/cb2cd4d8-f306-4ec8-91c3-68e69a4b5805"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;097-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;page-with-counter.html&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;Html helper file for script #96, counter&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/71ff7232-8cd1-4c20-81bd-e349c46026af"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;098-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;streamfile.cgi&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;An output an HTML file, replacing the sequence ---countervalue--- with the current counter value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/9ac2fe99-a118-4f7b-a93b-88ae609227d4"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;099-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;updatecounter.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;A tiny script that updates the counter file to the value specified. Assumes that locking is done elsewhere. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:130%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="color: rgb(0, 153, 0);" class="chapname"&gt;&lt;a href="http://www.esnips.com/nsdoc/3c06be2f-66ac-465f-b5e7-7e9cad186433"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;0100-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;randomquote.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 153, 0);" class="intro"&gt;&lt;span style="font-size:130%;"&gt;Given a one-line-per-entry datafile, this  script will randomly pick one and display it. Best used as an SSI call within a Web page.&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-1725829307599486279?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/1725829307599486279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=1725829307599486279&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/1725829307599486279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/1725829307599486279'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/04/shell-scripts-part-09.html' title='Shell Scripts - Part 09'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-2472789198230723029</id><published>2007-04-02T19:30:00.000+05:30</published><updated>2007-04-02T19:46:09.631+05:30</updated><title type='text'>Shell Scripts - Part 08</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-family: georgia; color: rgb(204, 102, 204); font-size: 180%;"&gt;Shell Scripts - Part 08&lt;span style="font-size: 100%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia; color: rgb(204, 102, 204); font-size: 180%;"&gt;&lt;span style="font-size: 100%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/232b4389-7067-4a64-aba9-473f018c992d"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;081-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;exchangerate.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Given a currency amount, convert it into other major currencies and show the equivalent amounts in each.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/66c44985-7ea6-4cef-a07c-a671a2b59235"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;082-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;getexchrate.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;To scrape the current currency exchange rates from CNN's money and finance Web site.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/f3cf8db1-f5bd-4440-9d6a-ec7abb095a1b"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;083-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;getstock.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;given a stock ticker symbol, return its current value from the Lycos web site&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/3e9664db-6359-48ef-861d-fd0874030e49"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;084-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;portfolio.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;To calculate the value of each stock in your holdings, then calculate the value of your overall portfolio, based on the latest stock market position.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/eb444abb-1bad-4f68-90cd-e5ad98c6bcd5"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;085-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;changetrack.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;To track a given URL, and if it's changed since the last visit, email the new page to the specified address.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/baee9302-6c49-46e8-afe9-d5dc981b7020"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;086-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;showcgienv.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;To display the CGI runtime environment, as given to any CGI script on this system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/5caa7f50-43d0-46d6-a02f-45275aedb83f"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;087-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;logsearch.cgi&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;To given a search request, log the pattern, then feed the entire sequence to the real Yahoo search system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/5ba7fb61-a16f-4ab5-905c-bfb500eeba2a"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;088-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;yahoo-search.html&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;html helper file for script #70, logsearch.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/7b1a329f-0327-47e9-b4ee-0d8124929a75"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;089-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;getdope.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;To grab the latest column of 'The Straight Dope' and mail it to the specified recipient&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/87f2dbbc-c5e8-4991-9bdd-54aae41fa6af"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;090-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;kevin-and-kell.cgi&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Build a Web page on-the-fly to display the latest strip from the cartoon strip Kevin and Kell, by Bill Holbrook (Strip referenced with permission of the cartoonist)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-2472789198230723029?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/2472789198230723029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=2472789198230723029&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/2472789198230723029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/2472789198230723029'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/04/shell-scripts-part-08.html' title='Shell Scripts - Part 08'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-7981756712752351848</id><published>2007-04-02T19:19:00.001+05:30</published><updated>2007-04-02T19:30:02.895+05:30</updated><title type='text'>Shell Scripts - Part 07</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-family: georgia; color: rgb(204, 102, 204); font-size: 180%;"&gt;Shell Scripts - Part 07&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);font-size:130%;" &gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/aa3acd02-6f74-4e67-ab54-b74c436329dc"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;071-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;backup.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To create either a full or incremental backup of a set of defined directories on the system. By default, the output file is saved in /tmp with a timestamped filename, compressed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/5baa79eb-53fb-49df-9388-648a772e1137"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;072-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;archivedir.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To create a compressed archive of the specified directory.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/682fe29c-e06e-4d3e-9f46-a796ed995a16"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;073-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;connecttime.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;Reports cumulative connection time for month/year entries found in the system log file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/b159558c-6f96-4e05-a82f-3ad0c057d463"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;074-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;ftpget.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;given an ftp: style URL, unwrap it, and try to obtain the file using anonymous ftp.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/5fbb9c2f-87c0-460f-bd73-1747fe73132d"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;075-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;bbcnews.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To report the top stories of the BBC World Service.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/1d43839b-64b7-4e25-ac29-fc30137b35fe"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;076-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;getlinks.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;given a URL, return all of its internal and external links.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/679deed4-35aa-4872-a2b2-879577aee4ef"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;077-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;define.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;given a word, return its definition from dictionary.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/a99ace50-899e-47f9-bcec-d36efbec887e"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;078-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;weather.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;report weather forecast, including lat/long, for zip&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/933915fb-5823-4935-a33b-2003c5183e88"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;079-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;checklibrary.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;log in to the Boulder Public Library computer system and show the due date of everything checked out for the specified user. A demonstration of how to work with the method="post" form with lynx.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/1ec878fe-ea1a-493a-8425-552ab71b8c9d"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;080-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;moviedata.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;given a movie title, return a list of matches, if there's more than one, or a synopsis of the movie if there's just one. Uses the Internet Movie Database (imdb.com)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-7981756712752351848?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/7981756712752351848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=7981756712752351848&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/7981756712752351848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/7981756712752351848'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/04/shell-scripts-part-07.html' title='Shell Scripts - Part 07'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-2451540838794063354</id><published>2007-04-02T19:10:00.000+05:30</published><updated>2007-04-02T19:19:47.745+05:30</updated><title type='text'>Shell Scripts - Part 06</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-family: georgia; color: rgb(204, 102, 204); font-size: 180%;"&gt;Shell Scripts - Part 06&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/c02ac90f-7507-4fdb-9907-61d6ee0ba6ff"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;061-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;timein.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;To show the current time in the specified timezone or geographic zone. Without any argument, show UTC/GMT. Use the word "list" to see a list of known geographic regions Note that it's possible to match a zone directory (a region) but that only timezone files are valid specifications.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.esnips.com/nsdoc/ffba4de6-fde5-45f0-a4ea-be1ec5a58cb6"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;062-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;remember.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;An easy command-line based memory pad. Search the results with 'remindme'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.esnips.com/nsdoc/24675d60-2752-4d23-8828-fdf75561d488"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;063-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;remindme.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;To search a datafile for matching lines, or show the contents of the datafile if no arg is specified&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.esnips.com/nsdoc/1a91fa73-b3a8-4efb-b186-3bc3fea097b2"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;064-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;calc.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;A command-line calculator that acts as a front-end to bc&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.esnips.com/nsdoc/0ce6ba96-2658-435a-b860-05e55150cf8e"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;065-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;checkspelling.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;To check the spelling of a word&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.esnips.com/nsdoc/4f4fd790-400f-46ec-8385-f5497c9173c2"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;066-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;enabled.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;To show what services are enabled with inetd and xinetd, if they're available on the system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.esnips.com/nsdoc/883e1a8b-4057-46ac-b7ef-5cab7243f52b"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;067-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;killall.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;To send the specified signal to all processes that match a specific process name.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.esnips.com/nsdoc/c484806b-18eb-4b1c-988e-834cc9cb03a0"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;068-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;verifycron.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;script checks a crontab file to ensure that it's formatted properly. Expects standard cron notation where min is 0-59, hr 0-23, dom is 1-31, mon is 1-12 (or names) and dow is 0-7 (or names). Fields can have ranges (a-e), lists separated by commas (a,c,z), or an asterisk. Note that the step value notation of Vixie cron is not supported (e.g., 2-6/2).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.esnips.com/nsdoc/e085a509-0ccf-4ea1-93df-5a8b8238869b"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;069-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;docron.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;A simple script to run the daily, weekly and monthly system cron jobs on a system where it's likely that it'll be shut down at the usual time of day when this would occur.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.esnips.com/nsdoc/7e7bbebe-ff3a-4b65-a5bc-23aa2305a322"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;070-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;rotatelogs.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;roll logfiles in /var/log for archival purposes. uses a config file to allow customization of how frequently each log should be rolled. &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-2451540838794063354?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/2451540838794063354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=2451540838794063354&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/2451540838794063354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/2451540838794063354'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/04/shell-scripts-part-06.html' title='Shell Scripts - Part 06'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-6872242165185255655</id><published>2007-04-02T18:36:00.000+05:30</published><updated>2007-04-02T19:07:28.739+05:30</updated><title type='text'>Shell Scripts - Part 05</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-family: georgia; color: rgb(204, 102, 204); font-size: 180%;"&gt;Shell Scripts - Part 05&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center; color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:130%;"&gt;&lt;a href="http://www.esnips.com/nsdoc/3164c5ee-8c6d-4128-b93b-b718b52eb60b"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;041-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;hilow.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;A simple number guessing game&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/2d7ea349-c08f-4a0b-8609-13e05fe1a4e9"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;042-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;nfmt.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;A version of fmt, using nroff. Adds two useful flags: -w X for line width and -h to enable hyphenation for better fills.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/7cdaf873-6a16-4fc4-b776-9ee73fb2e456"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;043-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;newrm.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;A replacement for the existing rm command that allows a rudimentary unremove capability through utilizing a newly created directory in the user's home directory. It can handle directories of content as well as individual files, and if the user specifies the -f flag, files are NOT archived, but removed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/bc2f7d60-26d5-451e-b6db-9061c5bc0f0c"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;044-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;unrm.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To search the deleted files archive for the specified file. If there is more than one match, show a list ordered by timestamp, and let the user specify which they want restored.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/fae784c4-3f24-4fe5-836b-c17afa84563d"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;045-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;logrm.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To log all file deletion requests unless "-s" flag is used&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/2058a09b-9da4-4b50-a38a-ece0323e1ce4"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;046-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;formatdir.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To output a directory listing in a friendly and useful format.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/39cb83cc-4d8b-411d-9c10-248abe829cf0"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;047-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;locate.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To search the locate database for the specified pattern.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/ee11d74b-1afa-464b-bcbe-cde55c0bffdd"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;048-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;mklocatedb.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To build the locate database using find .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/fc95c320-4286-4cc3-941b-46ae5d7e7ad4"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;049-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;DIR.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To pretend we're the DIR command in DOS and display the contents of the specified file, accepting some of the standard DIR flags&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/b7d5e3a4-3246-4474-9bf0-77399a1c6c45"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;050-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;findman.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;Given a pattern and a man section, show all the matches for that pattern from within all relevant man pages.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-6872242165185255655?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/6872242165185255655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=6872242165185255655&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/6872242165185255655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/6872242165185255655'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/04/shell-scripts-part-05.html' title='Shell Scripts - Part 05'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-2395177896671171302</id><published>2007-04-02T18:07:00.000+05:30</published><updated>2007-04-02T18:32:19.384+05:30</updated><title type='text'>Shell Scripts - Part 04</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-family: georgia; color: rgb(204, 102, 204); font-size: 180%;"&gt;Shell Scripts - Part 04&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia; color: rgb(204, 102, 204); font-size: 180%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia; color: rgb(204, 102, 204); font-size: 180%;"&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 102, 255);" href="http://www.esnips.com/nsdoc/9eb57b4d-a11a-431e-a83c-6663ca31507f"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;031-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;validint.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;To validate integer input including negative integers.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/2ca14f58-dc3e-4ffe-b0e3-fae9eeadd703"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;032-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;validfloat.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;To test whether a number is a valid floating point value. Note that this cannot accept scientific (1.304e5) notation.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/ca7f2b26-0b14-40e4-9fc2-3fae83f9da04"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;033-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;valid-date.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;To validate date including leap year rules.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/19071307-a2cb-4d78-aded-c83e4d6dfbe0"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;034-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;echon.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;To emulate the -n flag functionality with 'echo' for Unix systems that don't have it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/319ca60a-5040-4df3-9841-946ef6bb2c26"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;035-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;scriptbc.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;A wrapper for 'bc' that returns the value of a formula.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/23142170-df74-4b5d-aca5-3b2f63d082dc"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;036-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;filelock.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;A flexible file locking mechanism.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/6f6299e9-8eff-4225-a7be-9a0c77a847f3"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;037-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;colors.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Use these variables to easily have different color and format output. Make sure to output the reset sequence after colors (f = foreground, b = background), and use the 'off' feature for anything you turn on.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/9d6c539a-abb8-42d0-98a2-6e32ec933c31"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;038-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;library-test.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Script to demonstrate use of the shell function library&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/e56d9822-577f-4f12-bd5f-21b5310ca911"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;039-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;library.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;a collection of shell library utilities&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/fb9114ec-1558-4417-b42e-536e7ecbf07b"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;040-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;guessword.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;a simple word guessing game a la hangman &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-2395177896671171302?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/2395177896671171302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=2395177896671171302&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/2395177896671171302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/2395177896671171302'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/04/shell-scripts-part-04.html' title='Shell Scripts - Part 04'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-465415121157718262</id><published>2007-03-27T12:52:00.000+05:30</published><updated>2007-03-27T13:10:27.882+05:30</updated><title type='text'>Shell Scripts - Part 03</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-family: georgia; color: rgb(204, 102, 204);font-size:180%;" &gt;Shell Scripts - Part 03&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center; color: rgb(0, 102, 0);"&gt;&lt;a href="http://www.esnips.com/nsdoc/fb957132-9e29-47ff-9a60-e77fac27dca8"&gt;021-&lt;span style="color: rgb(255, 0, 0);"&gt;suspenduser.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Suspend a user account for the indefinite future&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/0b2ba91d-91cf-4883-bf55-38003755566f"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;022&lt;/span&gt;-&lt;span style="color: rgb(255, 0, 0);"&gt;deleteuser.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Delete a user account without a trace... Not for use with Mac OS X&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/edd9f7b3-c5e9-4c84-b771-6168fcf61939"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;023-&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;validator.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Checks to ensure that all environment variables are valid. Looks at SHELL, HOME, PATH, EDITOR, MAIL, and PAGER&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.esnips.com/nsdoc/56ed3f0a-ef1b-4b39-80b4-4af6b6d89e71"&gt;024-&lt;span style="color: rgb(255, 0, 0);"&gt;fixguest.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Clean up the guest account during the logout process&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/07e2c352-2d73-43dc-8e6c-5c5f1e269c57"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;025-&lt;span style="color: rgb(255, 0, 0);"&gt;findsuid.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Find all SUID files or programs on the system other than those that live in /bin and /usr/bin, and output the matches in a friendly and useful format.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.esnips.com/nsdoc/364decff-1585-41cd-87a0-3f8c373757cc"&gt;026-&lt;span style="color: rgb(255, 0, 0);"&gt;set-date.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Friendly front-end to the date command&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/b27dba69-518d-4b18-bc0b-434aecd612d4"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;027-&lt;span style="color: rgb(255, 0, 0);"&gt;inpath.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Verify that a specified program is either valid as-is, or can be found in the PATH directory list.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/775e2018-e2f5-43e9-b7a3-c5fb40475b1e"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;028-&lt;span style="color: rgb(255, 0, 0);"&gt;validalnum.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Ensures that input only consists of alphabetical and numeric characters.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/b21b5956-809a-4446-a8ad-120699f5db3f"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;029-&lt;span style="color: rgb(255, 0, 0);"&gt;normdate.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Normalizes month field in date specification to three letters, first letter capitalized. A helper function for hack #7, validdate. Exits w/ zero if no error.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/6dd9b0ad-8c8a-4d6a-b528-2c78d807a97e"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;030-&lt;span style="color: rgb(255, 0, 0);"&gt;nicenumber.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Given a number, show it with comma separated values expects DD and TD to be instantiated. instantiates nicenum or, if a second arg is specified, the output is echoed to stdout&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-465415121157718262?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/465415121157718262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=465415121157718262&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/465415121157718262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/465415121157718262'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/03/shell-scripts-part-03.html' title='Shell Scripts - Part 03'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-434920030357792450</id><published>2007-03-27T12:39:00.000+05:30</published><updated>2007-03-27T12:52:15.133+05:30</updated><title type='text'>Shell Scripts - Part 02</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(204, 102, 204);font-family:georgia;font-size:180%;"  &gt;Shell Scripts - Part 02&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/64fab8b0-ab58-414a-80e7-163bd928b6c6"&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;011-&lt;span style="color: rgb(255, 0, 0);"&gt;cgrep.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;grep with context display and highlighted pattern matches&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/bb987ac5-242e-49bc-9794-4832c66d6c7d"&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;012-&lt;span style="color: rgb(255, 0, 0);"&gt;zcat.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;This script should be either symbolically linked or hard linked to all three names - it allows users to work with compressed files transparently.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/dcfe7f13-2322-41e9-8a44-55935c2364d0"&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;013-&lt;span style="color: rgb(255, 0, 0);"&gt;bestcompress.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;Given a file, try compressing it with all the available compression tools and keep the compressed file that's smallest, reporting the result to the user. If '-a' isn't specified, it skips compressed files in the input stream.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/32e5b37f-91e6-47b8-aad2-8be406288a4d"&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;014-&lt;span style="color: rgb(255, 0, 0);"&gt;fquota.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;Disk quota analysis tool for Unix.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/945e692c-bb86-4bba-8f01-72b4d4bb8726"&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;015-&lt;span style="color: rgb(255, 0, 0);"&gt;diskhogs.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;Disk quota analysis tool for Unix, assumes all user accounts are &gt;= UID 100. Emails message to each violating user and reports a summary to the screen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/eedfc638-42a5-41c3-8103-46162580dfa4"&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;016-&lt;span style="color: rgb(255, 0, 0);"&gt;diskspace.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;Summarize available disk space and present in a logical and readable fashion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/702b6e12-eb04-4491-88b9-ba7ddcb714b2"&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;017-&lt;span style="color: rgb(255, 0, 0);"&gt;newdf.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;A friendlier version of df&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/3b79649f-4dd7-4f86-989d-e5aabbe2eeef"&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;018-&lt;span style="color: rgb(255, 0, 0);"&gt;mkslocate.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;Build the central, public locate database as user nobody, and simultaneously step through each home directory to find those that contain a .slocatedb file. If found, an additional, private version of the locate database will be created for that user.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/32f4ef93-dda8-45fb-98b0-2e78479b3c2a"&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;019-&lt;span style="color: rgb(255, 0, 0);"&gt;slocate.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;Try to search the user's secure locate database for the specified pattern. If none exists, output a warning and create one. If secure locate db is empty, use system one instead.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.esnips.com/nsdoc/f52ad806-f524-4ad0-9ff9-585500bf7d72"&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;020-&lt;span style="color: rgb(255, 0, 0);"&gt;adduser.sh&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: rgb(102, 102, 204);"&gt;Add a new user to the system, including building their home directory, copying in default config data, etc. For a standard Unix/Linux system, not Mac OS X&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-434920030357792450?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/434920030357792450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=434920030357792450&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/434920030357792450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/434920030357792450'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/03/shell-scripts-part-02.html' title='Shell Scripts - Part 02'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-5980455419401531841</id><published>2007-03-27T12:22:00.000+05:30</published><updated>2007-03-27T12:38:41.502+05:30</updated><title type='text'>Shell Scripts - Part 01</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(204, 102, 204);font-family:georgia;font-size:180%;"  &gt;Shell Scripts - Part 01&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/f414acf5-7e97-4538-a958-b8ceaaa5354f"&gt;001-shpell.sh&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;An interactive spell checking program that lets you step through all known spelling errors in a document, indicate which ones you'd like to fix (and the correction), then applies them all to the file. The original version of the file is saved with a .shp suffix and the new version replaces the old.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/4a817c72-2124-4cfb-b8db-f5faae8ad513"&gt;002-spelldict.sh&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Use the 'aspell' feature and some filtering to allow easy command-line spell checking of a given input (file)&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/5a04e5ac-23c5-4925-8da2-b48a9b8e4d8b"&gt;003-convertatemp.sh&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Temperature conversion script that lets the user enter a temperature in any of Fahrenheit, Celsius or Kelvin and receive the equivalent temperature in the other two units as the output.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/3f31f88d-bd10-468e-80ba-0cc969d46bd9"&gt;004-loancalc.sh&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Given a principal loan amount, interest rate, and duration of loan (years), calculate the per-payment amount.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/7c9edccb-4634-48bd-ae4d-43683d77f880"&gt;005-addagenda.sh&lt;/a&gt;&lt;br /&gt;Prompt the user to add a new event for the Agenda script&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/7400ad01-14e1-4dd4-888f-a6d8624e4434"&gt;006-agenda.sh&lt;/a&gt;&lt;br /&gt;Scan through the user's .agenda file to see if there are any matches for the current or next day&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/99d43fbc-ffcd-49d1-b76b-0a3935f07b55"&gt;&lt;br /&gt;007-numberlines.sh&lt;/a&gt;&lt;br /&gt;A simple alternative to cat -n, etc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/eed95947-e350-4052-a231-dc783e5ec9f8"&gt;008-showfile.sh&lt;/a&gt;&lt;br /&gt;Show the contents of a file, including additional useful info&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/90644471-bd58-4a36-9e75-dd1cc5bd8028"&gt;009-toolong.sh&lt;/a&gt;&lt;br /&gt;Only feed the fmt command those lines in the input stream that are longer than the specified length&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esnips.com/nsdoc/f58d9738-9bd2-4143-bd26-597026913812"&gt;010-quota.sh&lt;/a&gt;&lt;br /&gt;A front-end to quota that works with fullword flags a la GNU&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-5980455419401531841?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/5980455419401531841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=5980455419401531841&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/5980455419401531841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/5980455419401531841'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/03/shell-scripts-part-01.html' title='Shell Scripts - Part 01'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-7955935584088204034</id><published>2007-03-24T08:50:00.000+05:30</published><updated>2007-03-24T08:51:03.567+05:30</updated><title type='text'>Editors available in Linux</title><content type='html'>&lt;ul&gt;&lt;li&gt; cooledit - a pretty powerful GUI text editor    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; emacs - powerful text editor that includes modules for reading and   sending mail and postings to newsgroups, and a browser module. For editing   T&lt;sub&gt;E&lt;/sub&gt;X and L&lt;sup&gt;A&lt;/sup&gt;T&lt;sub&gt;E&lt;/sub&gt;X files, the AucT&lt;sub&gt;E&lt;/sub&gt;X addon package is invaluable, and   makes emacs pretty hard to beat as an editor with L&lt;sup&gt;A&lt;/sup&gt;T&lt;sub&gt;E&lt;/sub&gt;X.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; jed - has pretty good emacs emulation (it can even read mail like   emacs!). It does simple syntax highlighting for TeX files, including giving   positioning of parentheses. It would seem to be pretty configurable and   takes up much less disk space than emacs, although more than joe and   muemacs. It works well in console mode, and still manages to use colors for   menu bars and syntax highlighting. The program xjed which comes with some   versions starts up its own X terminal when invoked.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; joe - "Joe's Own Editor", a fairly powerful editor with a compact   binary and an ability to emulate Wordstar, Emacs, Pico, and a few other   editors.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; jove - "Joe's Own Version of Emacs". I tried this out a couple of times   and managed to crash it when making some minor errors in command syntax.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; microemacs (JASSPA) - spinoff of muemacs. Pretty powerful and   configurable, while not taking up too much disk space or memory.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; muemacs - a fairly powerful emacs clone whose binary is actually   smaller than that of the Joe editor.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; nedit - an X Window based text editor. Of all text editors for Linux   that I've seen, it has commands which are closest to Windows text editors,   for cursor movement, highlighting, marking text, etc. It has very good   syntax highlighting for both L&lt;sup&gt;A&lt;/sup&gt;T&lt;sub&gt;E&lt;/sub&gt;X and HTML.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pico - simple text editor. It often comes packaged with the Pine mail   user agent.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; vi - included with most Linux distributions. If you're not used to the   syntax, it can be pretty hard to understand.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; vim - improved version of vi  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xedit - simple text editor included with many Linux distributions&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-7955935584088204034?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/7955935584088204034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=7955935584088204034&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/7955935584088204034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/7955935584088204034'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/03/editors-available-in-linux.html' title='Editors available in Linux'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-855204932356359837</id><published>2007-03-24T08:49:00.000+05:30</published><updated>2007-03-24T08:50:19.064+05:30</updated><title type='text'>Useful &amp; Important Directories in Linux</title><content type='html'>&lt;p&gt; Different distributions have different directory structures, despite attempts at standardization such as the the Linux Filesystem Hierarchy Standard (FHS) organization.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; /bin - essential UNIX commands such as ls, etc. Should contain all   binaries needed to boot the system or run it in single-user mode    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /boot - files used during booting and possibly the kernel itself are   stored here  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /dev - contains device files for various devices on system    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc - files used by subsystems such as networking, NFS, and mail.   Includes tables of disks to mount, processes to run on startup, etc.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/profile.d - contains scripts that are run by /etc/profile upon   login.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/rc.d - contains a number of shell scripts that are run on bootup   at different run levels. There is also typically an rc.inet1 script to set   up networking (in Slackwar), an rc.modules script to load modular device   drivers, and an rc.local script that can be edited to run commands desired   by the administrator, along the lines of autoexec.bat in DOS.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/rc.d/init.d - contains most of the initialization scripts   themselves on an rpm-based system.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/rc.d/rc*.d - where ``*'' is a number corresponding to the default   run level. Contains files for services to be started and stopped at that run   level. On rpm-based systems, these files are symbolic links to the   initialization scripts themselves, which are in /etc/rc.d/init.d.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/skel - directory containing several example or skeleton   initialization shells. Often contains subdirectories and files used to   populate a new user's home directory.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/X11 - configuration files for the X Window system  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /home - home directories of individual users  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /lib - standard shared library files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /lib/modules - modular device driver files, most with .o extensions    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /mnt - typical mount point for many user-mountable devices such as   floppy drives, cd-rom readers, etc. Each device is mounted on a subdirectory   of /mnt.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /proc - virtual file system that provides a number of system statistics  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /root - home directory for root  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /sbin - location of binaries used for system administration,   configuration, and monitoring  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /tmp - directory specifically designed for programs and users to store   temporary files.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr - directory containing a number of subdirectory with programs,   libraries, documentation, etc.     &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/bin - contains most user commands. Should not contain binaries   necessary for booting the system, which go in /bin. The /bin directory is   generally located on the same disk partition as /, which is mounted in   read-only mode during the boot process. Other filesystems are only mounted   at a later stage during startup, so putting binaries essential for boot here   is not a good idea.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/bin/X11 - most often a symbolic link to /usr/X11R6/bin, which   contains executable binaries related to the X Window system  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/doc - location of miscellaneous documentation, and the main   location of program documentation files under Slackware    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/include - standard location of include files used in C programs   such as stdio.h  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/info - primary location of the GNU info system files    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/lib - standard library files such as libc.a. Searched by the   linker when programs are compiled.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/lib/X11 - X Window system distribution  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/local/bin - yet another place to look for comon executables  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/man - location of manual page files    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/sbin - other commands used by superuser for system administration  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/share - contains subdirectories where many installed programs have   configuration, setup and auxiliary files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/share/doc - location of program documentation files under Mandrake   and Red Hat    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/src - location of source programs used to build system. Source   code for programs of all types are often unpacked in this directory.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /usr/src/linux - often a symbolic link to a subdirectory whose name   corresponds to the exact version of the Linux kernel that is   running. Contains the kernel sources.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /var - administrative files such as log files, used by various   utilities    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /var/log/packages - contains files, each of which has detailed   information on an installed package in Slackware. The same file can also be   found at /var/adm/packages, since the adm subdirectory is a symbolic link to   log. Each package file contains a short description plus a list of all   installed files.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /var/log/scripts - package installation scripts in Slackware are stored   here. You can inspect these scripts to see what special features are   included in individual packages.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /var/spool - temporary storage for files being printed, mail that has   not yet been picked up, etc.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-855204932356359837?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/855204932356359837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=855204932356359837&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/855204932356359837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/855204932356359837'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/03/useful-important-directories-in-linux.html' title='Useful &amp; Important Directories in Linux'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-1596104793617329503</id><published>2007-03-24T08:48:00.001+05:30</published><updated>2007-03-24T08:48:54.774+05:30</updated><title type='text'>Useful files in Linux</title><content type='html'>&lt;p&gt;  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; /boot/vmlinuz - the typical location and name of the Linux kernel. In   the Slackware distribution, the kernel is located at /vmlinuz.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /dev/fd0 - first floppy disk drive    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /dev/fd0H1440 - driver for the first floppy drive in high density mode.   Generally, this is invoked when formatting a floppy drive for a particular   density. Slackware comes with drivers that allow for formatting a 3.5"   diskette with up to 1.7MB of space. Red Hat and Mandrake do not contain   these device driver files by default.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /dev/fd1 - second floppy disk drive  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /dev/hda - first IDE hard drive  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /dev/hdc - on many machines, the IDE cdrom drive. Most often, there is   a symbolic link called /dev/cdrom which is just a link to the true cdrom   driver file.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /dev/null - used when you want to send output into oblivion    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/aliases - file containing aliases used by sendmail and other MTAs   (mail transport agents). After updating this file, it is necessary to run   the newaliases utility for the changes to be passed to sendmail.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/bashrc - system-wide default functions and aliases for the bash   shell  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/conf.modules - aliases and options for configurable modules  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/crontab - shell script to run different commands periodically   (hourly, daily, weekly, monthly, etc.)    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/DIR_COLORS - used to store colors for different file types when   using ls command. The dircolors command uses this file when there is not a   .dir_colors file in the user's home directory. Used in conjunction with the   eval command (see below).  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/exports - specifies hosts to which file systems can be exported   using NFS. Man exports contains information on how to set up this file for   remote users.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/fstab - contains information on partitions and filesystems used by   system to mount different partitions and devices on the directory tree  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/HOSTNAME - stores the name of the host computer  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/hosts - contains a list of host names and absolute IP addresses.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/hosts.allow - hosts allowed (by the tcpd daemon) to access   Internet services    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/hosts.deny - hosts forbidden (by the tcpd daemon) to access   Internet services  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/group - similar to /etc/passwd but for groups    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/inetd.conf - configures the inetd daemon to tell it what TCP/IP   services to provide (which daemons to load at boot time). A good start to   securing a Linux box is to turn off these services unless they are   necessary.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/inittab - runs different programs and processes on startup. This   is typically the program which is responsible for, among other things,   setting the default runlevel, running the rc.sysinit script contained in   /etc/rc.d, setting up virtual login terminals, bringing down the system in   an orderly fashion in response to &lt;tt&gt;[Ctrl][Alt][Del]&lt;/tt&gt;, running the rc   script in /etc/rc.d, and running xdm for a graphical login prompt (only if   the default runlevel is set for a graphical login).    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/issue - pre-login message. This is often overwitten by the   /etc/rc.d/rc.S script (in Slackware) or by the /etc/rc.d/rc.local script (in   Mandrake and Red Hat, and perhaps other rpm-based distributions). The   relevant lines should be commented out (or changed) in these scripts if a   custom pre-login message is desired.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/lilo.conf - configuration file for lilo boot loader    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/motd - message of the day file, printed immediately after login.   This is often overwritten by /etc/rc.d/rc.S (Slackware) or   /etc/rc.d/rc.local (Mandrake/Red Hat) on startup. See the remarks in   connection with /etc/issue.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/mtab - shows currently mounted devices and partitions and their   status    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/passwd - contains passwords and other information concerning users   who are registered to use the system. For obvious security reasons, this is   readable only by root. It can be modified by root directly, but it is   preferable to use a configuration utility such as passwd to make the   changes. A corrupt /etc/passwd file can easily render a Linux box unusable.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/printcap - shows the setup of printers    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/profile - sets system-wide defaults for bash shell. It is this   file in Slackware that sets up the DIR_COLORS environment variable for the   color ls command. Also sets up other system-wide environment variables.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/resolv.conf - contains a list of domain name servers used by the   local machine  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/securetty - contains a list of terminals on which root can   login. For security reasons, this should not include dialup terminals.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/termcap - ASCII database defining the capabilities and   characteristics of different consoles, terminals, and printers  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /etc/X11/XF86Config - X configuration file. The location in Slackware   is /etc/XF86Config.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /proc/cpuinfo - cpu information  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /proc/filesystems - prints filesystems currently in use  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /proc/interrupts - prints interrupts currently in use    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /proc/ioports - contains a list of the i/o addresses used by various   devices connected to the computer    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /proc/kcore - The command ls -l /proc/kcore will give the amount of RAM   on the computer. It's also possible to use the free command to get the same   information (and more).  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /proc/version - prints Linux version and other info    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /var/log/messages - used by syslog daemon to store kernel boot-time   messages  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /var/log/lastlog - used by system to store information about last boot  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; /var/log/wtmp - contains binary data indicating login times and duration for each user on system&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-1596104793617329503?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/1596104793617329503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=1596104793617329503&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/1596104793617329503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/1596104793617329503'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/03/useful-files-in-linux.html' title='Useful files in Linux'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-206702560668059249</id><published>2007-03-24T08:47:00.002+05:30</published><updated>2007-03-24T08:48:19.650+05:30</updated><title type='text'>Typical DOT files in LINUX ( Hidden Files )</title><content type='html'>&lt;p&gt; There is some redundancy across these programs. For example, the look and behavior of emacs can be customized by usinng the .emacs file, but also by adding the appropriate modifications to the .Xdefaults file. Default versions of these files are often installed in users' home directories when the software packages that use them are installed. If a program doesn't find its configuration file in the user's home directory, it will often fall back on a sytem-wide default configuration file installed in one of the subdirectories that the package lives in.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; .bash_logout - file executed by bash shell on logout    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .bash_profile - initialization of bash shell run only on login. Bash   looks first for a .bash_profile file when started as a login shell or with   the -login option. If it does not find .bash_profile, it looks for   .bash_login. If it doesn't find that, it looks for .profile. System-wide   functions and aliases go in /etc/bashrc and default environment variables go   in /etc/profile.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .bashrc - initialization command run when bash shell starts up as a   non-login shell    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .cshrc - initialization commands that are run automatically (like   autoexec.bat) when C shell is initiated  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .emacs - configuration file for emacs editor  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .fvwmrc - configuration file for fvwm window manager  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .fvwm2rc - configuration file for fvwm2 window manager  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .jedrc - configuration file for the jed text editor    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .lessrc - typically contains key bindings for cursor movement with the   less command  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .login - initialization file when user logs in  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .logout - commands run when user logs out    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .wm_style - gives choice of default window manager if one is not   specified in startx    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .Xdefaults - sets up X resources for individual user. The behavior of   many different application programs can be changed by modifying this file.    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .xinitrc - initialization file when running startx. Can be used to   activate applications, run a given window manager, and modify the appearance   of the root window.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; .xsession - configuration file for xdm&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-206702560668059249?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/206702560668059249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=206702560668059249&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/206702560668059249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/206702560668059249'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/03/typical-dot-files-in-linux-hidden-files.html' title='Typical DOT files in LINUX ( Hidden Files )'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-4821107741055795510</id><published>2007-03-24T08:47:00.001+05:30</published><updated>2007-03-24T08:47:30.577+05:30</updated><title type='text'>Shorthand at Command prompt</title><content type='html'>&lt;p&gt;  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; / - root directory  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ./ - current directory  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ./command_name - run a command in the current directory when the current directory is not on the path  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ../ - parent directory  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;~&lt;/tt&gt; - home directory  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; $ - typical prompt when logged in as ordinary user  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; # - typical prompt when logged in as root or superuser  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ! - repeat specified command  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; !! - repeat previous command  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;^^&lt;/tt&gt; - repeat previous command with substitution  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &amp;amp; - run a program in background mode    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Tab][Tab]&lt;/tt&gt; - prints a list of all available commands. This is   just an example of autocomplete with no restriction on the first letter.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; x[Tab][Tab] - prints a list of all available completions for a command,   where the beginning is ``x''  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Alt][Ctrl][F1]&lt;/tt&gt; - switch to the first virtual text console    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Alt][Ctrl][Fn]&lt;/tt&gt; - switch to the n&lt;sup&gt;th&lt;/sup&gt; virtual text console.   Typically, there are six on a Linux PC system.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Alt][Ctrl][F7]&lt;/tt&gt; - switch to the first GUI console, if there is   one running. If the graphical console freezes, one can switch to a   nongraphical console, kill the process that is giving problems, and switch   back to the graphical console using this shortcut.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[ArrowUp]&lt;/tt&gt; - scroll through the command history (in bash)    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Shift][PageUp]&lt;/tt&gt; - scroll terminal output up. This also works at   the login prompt, so you can scroll through your boot messages.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Shift][PageDown]&lt;/tt&gt; - scroll terminal output down    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Ctrl][Alt][+]&lt;/tt&gt; - switch to next X server resolution (if the   server is set up for more than one resolution)  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Ctrl][Alt][-]&lt;/tt&gt; - change to previous X server resolution    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Ctrl][Alt][BkSpc]&lt;/tt&gt; - kill the current X server. Used when normal   exit is not possible.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Ctrl][Alt][Del]&lt;/tt&gt; - shut down the system and reboot  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Ctrl]c&lt;/tt&gt; - kill the current process  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Ctrl]d&lt;/tt&gt; - logout from the current terminal  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Ctrl]s&lt;/tt&gt; - stop transfer to current terminal  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Ctrl]q&lt;/tt&gt; - resume transfer to current terminal. This should be tried if the terminal stops responding.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;[Ctrl]z&lt;/tt&gt; - send current process to the background  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; reset - restore a terminal to its default settings  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;tt&gt;[Leftmousebutton]&lt;/tt&gt; - Hold down left mouse button and drag to highlight text. Releasing the button copies the region to the text buffer under X and (if gpm is installed) in console mode.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;tt&gt;[Middlemousebutton]&lt;/tt&gt; - Copies text from the text buffer and inserts it at the cursor location. With a two-button mouse, click on both buttons simultaneously. It is necessary for three-button emulation to be enabled, either under gpm or in XF86Config.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-4821107741055795510?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/4821107741055795510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=4821107741055795510&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/4821107741055795510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/4821107741055795510'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/03/shorthand-at-command-prompt.html' title='Shorthand at Command prompt'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-2080810262355321519</id><published>2007-03-24T08:46:00.001+05:30</published><updated>2007-03-24T08:46:57.758+05:30</updated><title type='text'>Basic Linux Commands</title><content type='html'>In the following command list, the distinction between upper case and lower case letters &lt;em&gt;is&lt;/em&gt; important. Most of the commands are utilities that are run by invoking their own executable files. In some cases, they are commands which are internal to a shell such as bash (shell builtins). The shell builtins are indicated. There are now many utilities that are included with either the Gnome or the KDE desktop environments, so many that it would be difficult to include them all here. In many cases, they duplicate the functionality of one or more of the programs listed below. I would suggest consulting the online documentation for these packages.&lt;br /&gt;&lt;br /&gt;&lt;p&gt; On rpm-based systems, to find out which package owns the command &lt;tt&gt;foo&lt;/tt&gt; (where &lt;tt&gt;foo&lt;/tt&gt; is a standalone executable), use the command &lt;tt&gt;rpm   -q -f foo&lt;/tt&gt;.  &lt;/p&gt; &lt;p&gt;  &lt;/p&gt; &lt;ul&gt;&lt;li&gt; a2p - translation utility from awk to Perl  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; a2ps - translation utility from ``any'' to Postscript  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ac - print statistics concerning user connect time  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; access - determine whether a file can be accessed  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; acroread - Adobe utility for viewing pdf files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; adduser - used by root to add user to system  &lt;ul&gt;&lt;li&gt; usage: adduser &lt;em&gt;userid&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; afio - utility to copy or restore files to an archive file. This utility is not part of the basic internal and external programs under Red Hat Linux. It is available as an rpm on the rpmfind.net site.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; agetty - enables login on terminals. See getty, mgetty, and uugetty.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ali - list mail aliases  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; alias - assign name to specified command list. This is actually a shell builtin. On my Red Hat system, I have global alias commands in my /etc/bashrc file and in my  /.bashrc file. On my Slackware box, I have made the rm command a little bit safer with  &lt;ul&gt;&lt;li&gt; alias rm='rm -i' &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; so that you can't recursively delete your /dev directory without telling the system you're sure you want to do it.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; alien - utility to convert to and from different Linux package formats.   Can handle Debian (deb), Stampede (stp), Red Hat (rpm) and Slackware (tgz)   packages.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; apropos - display command names based on keyword search  &lt;ul&gt;&lt;li&gt; usage: apropos &lt;em&gt;keyword&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; apsfilter - printer filter called by lpd to deal with printing different types of files. This is a fairly sophisticated print filter. It is not set up by default in Slackware. It used to be available on the second cd of a Slackware distribution. Since 4.0, it is available as one of the main packages in the ap set. Read the mail that the installation program sends to the root user. I believe that Red Hat uses its own printer filters.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ar - create, modify and extract from archives  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; arch - print machine architecture type  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; as - the portable GNU assembler  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; asapm - AfterStep laptop advanced power management utility  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ash - a shell, a very simple shell program sometimes used on boot   diskettes since it takes up much less space than bash, tcsh, zsh, etc.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; asload - AfterStep cpu load monitor  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; asmail - AfterStep mail checking utility  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; asmodem - AfterStep utility to monitor modem status  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; aspell - a spell checking program along the lines of ispell  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; aspostit - X Window postit note utility  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; at - executes a shell script at specified time. Use atq to show pending jobs, and atrm to remove jobs from the queue.  &lt;ul&gt;&lt;li&gt; usage: at &lt;em&gt;time&lt;/em&gt;  &lt;/li&gt;&lt;li&gt; or: at -f file &lt;em&gt;time&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; atq - shows pending jobs queued by at. If run by root, shows everybody's pending jobs.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; atrm - removes pending jobs queued by at. Use atq to determine the identities of various jobs.  &lt;ul&gt;&lt;li&gt; usage: atrm &lt;em&gt;job&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; awk - searches for and process patterns in a file  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; banner - print banner to standard output. Syntax is  &lt;ul&gt;&lt;li&gt; banner [option] [characters] &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; bash - Bourne again shell. This is the default shell in the Red Hat installation.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; batch - queue, examine, or delete jobs for later execution. See at.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; bc - a language (compiler) similar to C, with unlimited precision arithmetic  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; bg PID - send process with pid ``PID'' to the background. This is the same as executing &lt;tt&gt;[Ctrl]z&lt;/tt&gt; while interacting with the running process. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; bh - puts a job in the background. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; biff - mail notification utility. Notifies user of mail arrival and sender's name.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; bind - displays or redefines key bindings. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; bison - parser generator similar to yacc    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; bru - a powerful backup utility program. Commercial. Demonstration   versions are often included with Linux distributions such as Red Hat.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; bsh - equivalent to ash  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; bunzip2 - used to uncompress files compressed with bzip2  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; byacc - parser generator  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; bzip2 - compresses with algorithm different from gzip  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; bzless - view bzipped files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; c++ - invokes GNU C and C++ compiler  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cal - displays a 12-month calendar for the given year or a one-month calendar of the given month  &lt;ul&gt;&lt;li&gt; usage: cal &lt;em&gt;month year&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cat - combine, copy standard input to standard output. Used to join or display files.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cd - change working directory. This is a shell builtin in bash, tcsh and zsh.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cdplay - command line utility for playing audio cds  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cfdisk - similar to fdisk, but menu-driven  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; chat - used to interact with a modem via a chat script  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; chgrp - changes group associated with file. Can be used to change the group associated with subdirectories and files of a directory.  &lt;ul&gt;&lt;li&gt; usage: chgrp &lt;em&gt;group files&lt;/em&gt;  &lt;/li&gt;&lt;li&gt; or: chgrp -R &lt;em&gt;group files&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; chkconfig - Query or update system services/daemons for different  runlevels. Manipulates the various symbolic links in /etc/rc.d. This utility  is included with many rpm-based distributions such as RedHat and Mandrake. It is designed to work with System V initialization scripts. Graphical tools for configuring system services include ntsysv, tksysv and ksysv (the latter is a KDE utility).  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; chmod - set permissions (modes) of files or directories. A value of 4 is used for read permission. A value of 2 is used for write permission. A value of 1 is used for execute permission. See umask for default file permissions upon file creation. Chmod can also be used to change the suid bit on files. The syntax for the symbolic version is  &lt;ul&gt;&lt;li&gt; chmod [options] who operation permission file-list &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; The syntax for the absolute version is  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; chmod [options] mode file-list &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; To set the uid to the owner's permissions, use  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; chmod u +s file-name &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; To set the uid to the group's permissions, use  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; chmod g +s file-name &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; There are lots of security issues related to allowing a program to have root's permissions when run by an ordinary user. I don't pretend to understand all of these issues.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; chown - changes ownership of a file. Can be used recursively.  &lt;ul&gt;&lt;li&gt; usage: chown &lt;em&gt;userid files&lt;/em&gt;  &lt;/li&gt;&lt;li&gt; or: chown -R &lt;em&gt;userid files&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; chsh - change default shell  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ci - creates or records changes in an RCS file  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; clear - clear screen command  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cmp - compares two files for differences  &lt;ul&gt;&lt;li&gt; usage: cmp &lt;em&gt;file1 file2&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; co - retrieves an unencoded version of an RCS file  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; comm - compares sorted files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; configure - automatically configures software source code  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; color-xterm - color xterm program. Under Red Hat, this is just a link to xterm-color.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; control-panel - graphical system configuration tool under Red Hat.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cp - copies on or more files. Recursive copying is one simple way of archiving part of a directory structure. Use the command as follows:  &lt;ul&gt;&lt;li&gt; cp -r /sourcedirectory /targetdirectory &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cpio - direct copy of files to an output device. Allows creation of archive file spanning multiple diskettes. Allows one directory structure to be mirrored elsewhere on the partition or on another partition. In order to back up an entire directory structure on diskettes, cd to the directory and use the following command:  &lt;ul&gt;&lt;li&gt; find . -depth -print &lt;span style="font-family:symbol;"&gt;|&lt;/span&gt; cpio -ov  &gt;  /dev/fd0 &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; To restore from diskettes, use:  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; cpio -iv  &lt;  /dev/fd0 &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; The cpio command will prompt the user to insert more diskettes as they are needed. The command for mirroring a directory structure is the following:  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; find . -depth -print &lt;span style="font-family:symbol;"&gt;|&lt;/span&gt; cpio -pv /destinationdirectory &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; This copies the working directory and its contents, including subdirectories, into /destinationdirectory. In order to copy an individual file which is larger than a floppy, use:  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; find . -name nameoffile -print &lt;span style="font-family:symbol;"&gt;|&lt;/span&gt; cpio -iv  &gt;  /dev/fd0 &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cpkgtool - Slackware tool to install, uninstall and query packages. Front end to installpkg, removepkg, makepkg. This is the graphical version that uses ncurses.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cpp - GNU C-compatible compiler preprocessor  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; crontab - schedules command to run at regularly specified time  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; csh - run C shell  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; csplit - separate files into sections. See also split.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cvs - manages concurrent acces to files in a hierarchy. Stands for concurrent version system. Is built on RCS. It stores successive revisions of files efficiently and ensures that access to files by multiple developers is done in a controlled manner. Useful when many developers are working on the same project.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; cut - selects characters or TAB-separated fields from lines of input and writes them to standard output  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; date - displays or sets date and time  &lt;ul&gt;&lt;li&gt; usage: date  &lt;/li&gt;&lt;li&gt; or: date &lt;em&gt;date&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; dd - direct copy of file from one device to another. Can be used to make copies of boot or root diskettes for installing Linux. It can be used, for example, to make and exact copy of a floppy disk, as follows. First, place the diskette to be copied in the floppy drive. Then,  &lt;ul&gt;&lt;li&gt; dd if=/dev/fd0 ibs=512  &gt;  floppy.copy  &lt;/li&gt;&lt;li&gt; Replace the diskette with a fresh diskette.  &lt;/li&gt;&lt;li&gt; dd if=floppy.copy bs=512 of=/dev/fd0 &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; The ibs and bs options specify the block sizes for input and for both input and output. A boot disk image can be directly copied to a floppy using the second of the two dd commands above.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; declare - declares attributes for a variable (same as typeset). This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; df - displays capacity and free capacity on different physical devices such as hard drive partitions and floppy drives that are mounted on the file system. Gives free space in blocks. With the (undocumented) option -h, the program gives free space in Mb or Gb. This is useful for those accustomed to thinking of the capacity of a high-density 3.5 inch diskette as 1440k.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; diff - displays differences between two files  &lt;ul&gt;&lt;li&gt; usage: diff &lt;em&gt;file1 file2&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; diff3 - compares three files and reports on differences  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; dip - used to set up a SLIP or PPP connection. It can be used to set up an outgoing SLIP connection or an incoming connection.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; diplogin - used for setting up incoming dip connections. See the man page for dip.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; dir - a variation of the GNU ls command that defaults to printing file names in columns  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; dircolors - set colors for GNU ls command. In Slackware, this command is run by the /etc/profile script. Then, whenever xterm is run with the -ls (login shell) option, ls displays different colors for different types of files. Typical usage is eval `dircolors -b`. In Red Hat and Mandrake, I get color directories by aliasing the ls command (see below).  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; display - set display for output of programms under X Windows. Can be used to run a program on a remote machine while displaying the output on a local machine. The remote machine must have permission to send output to the local machine. This is actually an environment variable. See the more detailed discussion in connection with the xhost command below.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; dmesg - displays messages from /var/log relative to the most recent boot  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; dos - invoke the DOSEMU DOS emulator  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; du - displays information on disk usage. The command  &lt;ul&gt;&lt;li&gt; du / -bh | less &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; will display detailed disk usage for each subdirectory starting at root, giving files sizes in bytes.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; dumpkeys - print information about the keyboard driver's translation tables to standard output  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; dvilj - send a dvi file to a Laserjet printer. There are specialized versions for individual models of Laserjet printer.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; dvilj2p - specialized version of dvilj for the IIp series of printers. See above.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; dvips - send a dvi file to a Postscript printer, to a Postscript capable Laserjet printer, or to a file (with the -o option). There is a switch to print only a subset of the pages, and another switch to print in landscape mode. Use -t landscape, which is one of the arguments to the paper type switch. If you have one page of a document that is a wide table, and you wish to print this in landscape mode, use  &lt;ul&gt;&lt;li&gt; dvips &lt;em&gt;filename -pp pagenumber -t landscape&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; e2fsck - check an ext2 filesystem. The syntax is  &lt;ul&gt;&lt;li&gt; e2fsck &lt;em&gt;/dev/devicename&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; where the filesystem is on /dev/devicename. The device should not be mounted, and this program must be run as root.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; echo - write arguments to standard output. One use is to print out information about environment variables, as in  &lt;ul&gt;&lt;li&gt; echo $PATH - list paths to search  &lt;/li&gt;&lt;li&gt; echo $HOME or echo &lt;tt&gt;~&lt;/tt&gt; - list name of home directory &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; This is a shell builtin.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; editres - a dynamic resource editor for X Toolkit applications. Allows the user to change X resources for individual applications.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; efax - fax program  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; efix - convert between fax, text, bit-map and gray-scale formats  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; egrep - search files for lines that match regular expressions. Runs faster than grep and fgrep.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; elm - an interactive mail system  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; elvis - a version of the vi text editor  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; emacs - screen oriented text editor  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; env - desplay the current environment or set a variable equal to a new value  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; eval - scans and evaluates the command line. See dircolors command. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ex - interactive command-based editor. The man page lists it as being the same as vim, an improved version of vi.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; exec - system call which creates a subshell to execute a binary or a script. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; execve - a variation of the exec command.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; exit - exit a shell. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; expand - convert tabs in files to spaces and write to standard output  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; expect -  a program that ``talks'' to other interactive programs according to a script. Following the script, Expect knows what can be  expected from a program and what the correct response should be. An interpreted language provides branching and high-level control  structures to direct the dialogue. In addition, the user can take  control and interact directly when desired, afterward returning control to the script.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; export - place the value of a variable in the calling environment (makes it global). This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; expr - utility evaluates an expression and displays the result  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; f2c - FORTRAN to C translator  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; f77 - FORTRAN 77 compiler  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; false - null command that returns an unsuccessful exit status  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fax - simple user interface to efax and efix programs  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fc - views, edits, and executes commands for the history list. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fdformat - low level format of a floppy device  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fetchmail - retrieve mail from a remote mail server and pass it to local SMTP agents on the local machine  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fdisk - used to partition hard drives  &lt;ul&gt;&lt;li&gt; usage: fdisk &lt;em&gt;device&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fg PID - bring a background or stopped process with pid ``PID'' to the foreground. This is a shell builtin. If only one process is running in background mode, fg with no argument is sufficient to bring it to the foreground  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fgrep - search for patterns in files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; file - displays classification of a file or files according to the type of data they contain  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; find - find files according to a large variety of search criteria. The find command that I use the most is  &lt;ul&gt;&lt;li&gt; find . -name filename -print &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; in order to find files matching a particular name on the working directory and all subdirectories. Find can be incredibly powerful, but it is incredibly obscure.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; finger - display information about a specified userid or userids  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fmt - simple text formatting utility. Tries to make all nonblank lines nearly the same length.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fold - break lines of specified files so they are no wider than a specified lengths  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fortune - available in the bsdgames package in Slackware and other distributions. Put a call to fortune in /etc/profile and get something inspirational or amusing every time you fire up an xterm as a login shell.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; free - gives used and free memory on system along with other useful information  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fromdos - takes a DOS text file from stdin and sends a UNIX file to stdout.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; fsck - file system check and repair  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ftp - file transfer over network  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; g++ - C++ compiler  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; g77 - GNU Fortran 77 compiler  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; gawk - GNU awk, mostly for processing delimited text files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; gcc - invoke C, C++ compiler  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; getipts - parses arguments to a shell script. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; getkeycodes - print kernel's scancode-to-keycode mapping table  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ghostscript - set of printing utilities. It seems to be obligatory to have this if a T&lt;sub&gt;E&lt;/sub&gt;X installation such as teT&lt;sub&gt;E&lt;/sub&gt;X is installed. How they communicate with one another is somewhat obscure.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ghostview - Aladdin ghostscript interpreter/previewer  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; gimp - image manipulation and paint program  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; glint - Red Hat graphical front end for the rpm package installer and manager.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; grep - used to find a string within a file. The -i option returns matches without regard to case. The -n option means that each line of output is preceded by file name and line number. The -v option causes non-matched lines to be printed.  &lt;ul&gt;&lt;li&gt; usage: grep &lt;em&gt;pattern files&lt;/em&gt;  &lt;/li&gt;&lt;li&gt; or: grep -i &lt;em&gt;pattern files&lt;/em&gt;  &lt;/li&gt;&lt;li&gt; or: grep -n &lt;em&gt;pattern files&lt;/em&gt;  &lt;/li&gt;&lt;li&gt; or: grep -v &lt;em&gt;pattern files&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; groupadd - create a new group on the system  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; groups - shows which groups you are in    &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; grub - Gnu grand unified bootloader. Can be used instead of lilo to   boot multiple operating systems. I encountered a couple of snafus trying to   install grub on my home machine after installing Mandrake 8.0 and choosing   the lilo bootloader during the initial install. The Mandrake installation   program set up /boot/vmlinuz as a symlink to the actual kernel,   vmlinuz-2.4.3-20mdk. It took me a while to figure out that grub doesn't   understand symbolic links. The documentation suggests installing grub on a   diskette using the ``dd'' command. This refused to work, but    &lt;ul&gt;&lt;li&gt; grub-install '(fd0)'   &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;   did work. The single quotes are necessary. The files necessary to run grub   are normally located in /boot/grub. Once the file menu.lst has been edited   and appropriated entries added to boot the different operating systems on   one's hard disk(s), the following sequence of commands can be used to   install grub in the master boot record (MBR) sector of the hard disk:    &lt;/p&gt;&lt;ul&gt;&lt;li&gt; root (hd0,&lt;em&gt;x&lt;/em&gt;)    &lt;/li&gt;&lt;li&gt; setup (hd0)   &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;   Here, the &lt;em&gt;x&lt;/em&gt; should be replaced by the partition where the /boot/grub   directory is located, which is probably the root partition of the Linux   system. Note that grub has its own conventions for naming devices and   numbering partitions, so that for example a partition which is called hda6   under Linux will be called (hd0,5) by grub.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; grub-install - command to install grub on the hard drive (or floppy   drive).  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; gunzip - used to uncompress files compressed with gzip  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; gv - PostScript and PDF previewer, based on ghostview  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; gvim - see vi  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; gzexe - compresses executables  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; gzip - used to compress or decompress files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; halt - shut down system as root, without reboot, immediately  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; hash - remembers the location of commands in the search path. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; head - displays first part of a file  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; history - command for viewing and manipulating the shell command history list  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; host - look up host names using domain server  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; hostname - used to get or set hostname. Typically, the host name is stored in the file /etc/HOSTNAME.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; hwclock - used to query and set the hardware clock  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; hylafax - commercial fax program  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; id - display userid and groupid  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; inetd - daemon which starts up other daemons on demand. Configured in /etc/inetd.conf.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ifconfig - display (as root) information on network interfaces that are currently active. First ethernet interface should be listed as eth0, second as eth1, etc. First modem ppp connection should be listed as ppp0, etc. The ``lo'' connection is ``loopback'' only.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ifdown - shut down the network interface  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ifup [interface_name] - start up the interface  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; info - display system information. This is the GNU hypertext reader.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; init - the mother of all processes, run at bootup, executes commands in /etc/inittab. Can be used (with root privileges) to change the system run level.  &lt;ul&gt;&lt;li&gt; usage: init &lt;em&gt;run_level&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; insmod - used (by root) to install modular device drivers  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; installpkg - Slackware command to install one of the packages from the program sets  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; intr - interrupt key, usually [Ctrl-C]  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ispell - checks files for spelling errors  &lt;ul&gt;&lt;li&gt; usage: ispell &lt;em&gt;files&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; jed - programmer's file editor. Behaves like emacs. Has modes for T&lt;sub&gt;E&lt;/sub&gt;X, FORTRAN, C, etc.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; jobs - displays list of current jobs in the background. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; joe - simple WordStar-like text editor. It can be invoked in emacs emulation mode with jemacs and in WordStar emulation mode with jstar.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; jove - Joseph's Own Version of Emacs. A simple emacs clone.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; kbd_mode - print current keyboard mode  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; kernelcfg - GUI to add/remove kernel modules (as root in X terminal).  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; kerneld - kernel daemon, a process that stays in memory and does all sorts of useful stuff, like automatic loading of device driver modules  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; kikbd - a utility program that comes with KDE that allows users to switch on the fly among different international keyboards. It can be used under different window managers than kfm.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; kill - sends a signal to (especially to terminate) a job or process. This is a shell builtin in bash, tcsh and zsh.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; killall - kill processes by name. Kill all processes which are instances of the speciffied program. Also used to send signals to processes  or restart them.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; killall5 - kill all processes except the ones on which it depends  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; last - generate a listing of user logins  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; lastlog - prints the last login times of all users  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; latex - compile a L&lt;sup&gt;A&lt;/sup&gt;T&lt;sub&gt;E&lt;/sub&gt;X file  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ldconfig - creates the necessary links and cache (for use by the run-time linker, ld.so) to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/usr/lib and /lib). Ldconfig checks the header and file names of the libraries it encounters when determining which versions should have their links updated. Ldconfig ignores symbolic links when scanning for libraries.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ldd - list the shared libraries on which a given executable depends, and where they are located  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; leave - display reminder at specified time  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; less - Linux alternative to ``more'' command. Displays text files, one screenful at a time. When less pauses, there is a large number of available commands to tell it what to do next. One can scroll both forwards and backwards.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; let - evaluates a numeric expression. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; lilo - installs boot loader on the boot sector of a hard drive, of a diskette, or in another location. My 486 has a hard drive that is too large for the machine's BIOS, so I have to boot from a floppy. To create a boot diskette, I do the following (as root):  &lt;ul&gt;&lt;li&gt; /sbin/fdformat /dev/fd0H1440  &lt;/li&gt;&lt;li&gt; /sbin/mkfs.ext2 /dev/fd0  &lt;/li&gt;&lt;li&gt; mount -t ext2 /dev/fd0 /mnt/floppy  &lt;/li&gt;&lt;li&gt; cp -dp /boot/* /mnt/floppy  &lt;/li&gt;&lt;li&gt; /sbin/lilo -C /etc/lilo.flop &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; The -C option to lilo has lilo use the lilo.flop file instead of the default lilo.conf.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; linuxconf - interactive tool for configuring Linux system. Uses X if loaded. This is a Gnome tool. It comes with my Red Hat distribution, and is not included with Slackware. It would seem to be the easiest way to configure Linux under Slackware. Version 1.15 is available for Slackware. There is a pretty good introduction to the use of linuxconf in the Red Hat 5.2 installation manual, which is available online at their web site.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ln - creates a link to a file. Used to create hard links and, with the -s option, symbolic links which can link files on different disk partitions. The syntax is  &lt;ul&gt;&lt;li&gt; ln [options] source [dest] &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; locate filename - find the file name which contains the string ``filename''. The syntax is easier than the find command.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; lock - temporarily lock terminal  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; lockfile - create semaphore file(s), used to limit access to a file  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; - log in to system  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; logname - consult /etc/utmp for user's login name  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; logout - execute logout as individual user and bring up login: prompt  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; look - look for strings in files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; lpq - show print jobs that are waiting  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; lpr - send file to be printed  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; lprm - cancel a job from print queue  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ls - list directory contents. To get colored directory listings under Red Hat, Mandrake, etc., use  &lt;ul&gt;&lt;li&gt; ls -color &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; To get this all the time, add  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; alias ls='ls -color=auto' &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; to .bashrc. The following command  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; alias ls='ls -Fskb -color=auto' &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; will give directory listings in color, with file sizes in kilobytes, and append a character to the file to indicate its type.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; lsattr - list attributes of files in ext2 file system  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; lsmod - used (by root) to show kernel modules currently loaded  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; lspci - utility to display information on pci buses and hardware  devices attached to them. Part of the pciutils package that comes with many  Linux distributions.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; lspnp - utility to display information about pnp devices. Part of the  pcmcia or kernel-pcmcia package, depending on the distribution.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; m4 - an implementation of the traditional UNIX macro processor. It can be used with the sendmail configuration package in Red Hat (and Slackware) to generate a sendmail.conf configuration file without having to edit the configuration file directly.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; magicfilter - general purpose printer filter. See apsfilter above. apsfilter is the printer filter that comes with the Red Hat and Slackware distributions.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; mail - sends or reads electronic mail  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; make - keeps a set of programs current. This is a utility that helps when developing a set of programs. It works by executing a script called makefile, Makefile or GNUmakefile in the working directory. It is very often used in combination with configure when compiling and installing noncompiled software packages.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; makebootdisk - command in Slackware to do just what the name says  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; MAKEDEV - executable script to make device files on /dev  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; makeswap - configures swap space  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; man - displays information from online Unix reference manual  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; manpath - attempt to determine path to manual pages  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; mc - Midnight Commander file manager and visual shell  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; mesg - enables/disables reception of messages  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; minicom - terminal program  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; mkdir - create a directory  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; mkfs - create a file system (format) on a device or partition. Should be invoked after lowlevel formatting of the disk using fdformat. It has several versions which are all links to the basic program, such as mkfs.ext2 and mkfs.msdos.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; mkswap - creates a Linux swap space on the specified hard disk parition (root privileges neede)  &lt;ul&gt;&lt;li&gt; usage: mkswap &lt;em&gt;device&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; more - list file contents, stopping after each full screen  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; mount -t [fstype] [device] [mountpoint] - mount device using filesystem of type [fstype] with device name [device] at the location [mountpoint] in the filesystem directory tree  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; mount -a - mount all filesystems according to the specifications in /etc/fstab  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; mouseconfig - mouse configuration utility under Red Hat. Located in /usr/sbin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; mpage - print multiple pages per sheet on a Postscript printer. Can also be used to print a page in landscape mode.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; Mtools - package of MS-DOS utilities. Includes the following commands.  &lt;ul&gt;&lt;li&gt; mcd - changes working directory on DOS disk  &lt;/li&gt;&lt;li&gt; mcopy - copies DOS files from one directory to another  &lt;/li&gt;&lt;li&gt; mdel - deletes DOS files  &lt;/li&gt;&lt;li&gt; mdir - lists contents of DOS directories  &lt;/li&gt;&lt;li&gt; mformat - adds DOS formatting information to a disk  &lt;/li&gt;&lt;li&gt; mtype - displays contents of a DOS file &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; The default device for execution of these commands is /dev/fd0 and can be referred to as ``a:''.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; mv - moves (renames) files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; netconf - used (as root) to set up network  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; newaliases - rebuilds the /etc/aliases database used by sendmail. Must be rerun every time /etc/aliases is modified for the changes to take effect.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; newgrp - similar to login. Changes user's identification  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; nice program_name - sets the priority of the program ``program_name''.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; nm - lists the symbols from object files objfile. If no object files are given as arguments, nm assumes `a.out'.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; nohup - runs a command that keeps running after logout. The command is in principle immune to hangups, and must have output to a non tty. According to &lt;em&gt;Linux in a Nutshell&lt;/em&gt;, this is necessary only in the Bourne shell, since modern shells preserve background processes by default.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ntsysv - run level editor under Red Hat. This is the equivalent of tksysv, but does not require a graphical interface.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; nxterm - color xterm program. The man page for nxterm under Red Hat brings up the same page as xterm.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; od - dumps contents of a file  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; passwd - change login password  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; paste - joins corresponding lines from files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; patch - updates source code. Attempts to update a file from a file of change information, or pathces, created by diff.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pathchk - determine validity and portability of filenames  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pdflatex - part of the pdftex program suite. Produces pdf output from a L&lt;sup&gt;A&lt;/sup&gt;T&lt;sub&gt;E&lt;/sub&gt;X file.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pdftex - produces pdf output from a TeX file. See also pdflatex. This program is part of the tetex 0.9 distribution that is included with Red Hat 5.2 and above, and with Slackware 4.0 and above. It is also available as a separate program.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; perl - practical extraction and report language  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pg - display data one screenful at a time  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pico - simple screen oriented text editor. It is included as part of the Pine program.   &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ping - check if Internet computer is responding. Can also measure the time it takes the queried computer to respond.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pkgtool - Slackware tool to install, uninstall and query packages. Front end to installpkg, removepkg, makepkg. The cpkgtool is the ncurses graphical version of this program.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; popclient - retrieve mail via the Post Office Protocol. Supports POP2 and POP3.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; popd - pops the top directory of the directory stack and uses cd to change to that directory. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pr - paginates files for printing  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; printenv - display list of environment variables  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; printtool - run (as root) in an X terminal to configure your printer(s)  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ps - displays status of processes. Use the -a option for processes for all users. Use the -x option to include processes not attached to a terminal.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pstree - display processes in the form of a tree structure. Killing a   parent process will also kill all the children and their descendants.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pushd - pushes the argument onto the top of the directory stack and uses cd to change to that directory. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pwd - print absolute path of working directory. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pwchk - checks the integrity of password and shadow files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pwconv - converts passwords to the shadow password format  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; pwunconv - unconverts passwords from the shadow password   format. Generates a standard Unix password file.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; python - interpreted, interactive, object-oriented programming language  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rcp - copy one or more files to or from remote computer. The syntax is poorly explained in the documentation that I have, including the man pages. Usage is:  &lt;ul&gt;&lt;li&gt; rcp filename username@remotehost:path &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; The user's home directory on the remote system must contain the file .rhosts with a list of users (preceded by the full domain name or exact IP address of their machine) with access privileges.  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; localhostname username &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rcs - creates or changes the attributes of an RCS file. Stands for Revision Control System.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rdev - query/set image root device, swap device, RAM disk size, or video mode in kernel  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; read - reads line from standard input. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; readonly - declares a variable to be read only. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; reboot - in Slackware, reboots the system. Seems to be equivalent to shutdown -r now in generic Linux.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; renice program_name - resets the priority of process ``program_name''.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; reset - used to reset the screen characteristics. This is useful if the screen gets messed up from, for example, trying to display a binary file in an xterm.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; return - exits from a function. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rlog - prints a summary of the history of an RCS file  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rlogin - log in to remote computer. The general syntax is as follows, using the UQAM Nobel machine as an example:  &lt;ul&gt;&lt;li&gt; rlogin -l userid nobel.si.uqam.ca &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; The remote computer must recognize the local user and the local machine. See the rcp command for how to set up the .rhosts file on the remote machine.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rm - remove files or directories. With the -r (recursive) option (very dangerous!), can be used to remove the contents of a specified directory including all subdirectories.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rmail - interpret and handle remote mail received via uucp  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rmdir - remove empty directories  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rmmod - used to remove modular device drivers  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; route -n - show routing table. The n option returns numerical addresses rather than names.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rpm - invokes the Red Hat package manager in command line mode. I often use this command in query mode to query packages about what files they contain and to find out which package owns a particular file. Examples are  &lt;ul&gt;&lt;li&gt; rpm -qil foo. Gives package information and a file list for the package foo.  &lt;/li&gt;&lt;li&gt; rpm -qfil foo. Gives package information and a file list for the package that owns the file foo. Foo must be in the working directory, or the full path to foo must be specified. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; We need to find out about installing the rpm package on a Slackware box. It's probably better to use a package converter such as alien.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rpm2tgz - an extremely useful utility on Slackware systems that converts rpm packages to tgz format. They can then be installed using the installpkg command (or pkgtool).  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rsh - execute shell command on a remote computer. See rcp and rlogin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rstat - summarize host's status: uptime, load averages, and current time  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ruptime - show host status of local machines  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rusers - list who is logged on local machines  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rwall - write to all users over a network  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rwho - show who is logged in on a LAN. The rwho service must be enabled for this command to run. If it isn't, run ``setup'' as root. I don't understand this last remark, which comes from ``Linux Newbie Administrator Guide''.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; rxvt - a terminal program similar to xterm, but which has less features and uses less memory  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; sed - edits a file (not interactively). Also a tool for processing text files.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; set - set or display value of shell variables. This is a shell builtin. The command  &lt;ul&gt;&lt;li&gt; set | less &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; prints the current user environment, giving the values of currently defined variables.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; setenv - set or display value of environment variables  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; setserial - used by root to configure a serial port  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; setterm - set terminal attributes for a virtual console  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; setuid - set the id of a program when it is run. Used, for example, to give root privileges to a program run by an ordinary user. This is actually done by running the chmod program as root. See the chmod command for the syntax.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; setup - Slackware program to set up program sets and configure system. Setup devices and file systems, mount root file system  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; sh - standard UNIX shell. On Linux, just another name for bash.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; shift - promotes each command-line argument. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; showmount - show information about an nfs server  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; shutdown - reboot or shut down system as root, after specified amount of time. With the -r option, reboot. With the -h option, halt the system.  &lt;ul&gt;&lt;li&gt; usage: shutdown -r &lt;em&gt;minutes&lt;/em&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; sleep - creates process that sleeps for specified interval  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; sliplogin - attaches a SLIP interface to standard input. Used to allow dialin SLIP connections.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; sort - sorts and/or merge files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; split - split file into specified number of segments  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ssh - secure shell. Apparently has many of the same functionalities as rlogin, telnet, ftp, rsh, etc., with better security and encryption features. We may want to learn how to set this up and use it.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; startx - front end to xinit in Linux. This is a script which starts up X clients and shuts down the X server on exit from the window manager.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; startx &lt;tt&gt;--&lt;/tt&gt; :1 - start the next X window session on the display 1 (the default is opened on display 0). One can switch between different graphical displays using &lt;tt&gt;[Ctrl][Alt][F7]&lt;/tt&gt;, &lt;tt&gt;[Ctrl][Alt][F8]&lt;/tt&gt;, etc.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; stty - sets or displays operating options for terminal  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; su - log in as another user, including root  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; sudo - allows individual users to have root permission to perform specified tasks  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; swapoff - disables swap disk  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; swapon - enables swap disk  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; symlinks - provide list of and information about symbolic links  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; sync - writes memory buffers to physical devices  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; systat - query host for system information  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tac - print file in reverse  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tail - displays the last part of a file  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; talk - visual communication program that copies lines from one terminal to that of another user  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tar - file compression and archiving utility. I find the syntax of this command to be frustratingly opaque. The following works for me.  To use this command to unzip gzipped tarballs in verbose mode, use  &lt;ul&gt;&lt;li&gt; tar -xvzf filename.tgz &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; To create a tarball from files in a given directory and its subdirectories, use  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; tar -cvzf filename.tgz sourcename &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; Sourcename can be the name of a single file, a wildcard such as *, or the name of a subdirectory. There seem to be two different conventions concerning gzipped tarballs. One often encounters .tar.gz. The other popular choice is .tgz. Slackware packages use the latter convention. The command can also be used to archive a file, a group of files, or a directory (with its subdirectories) on tape or onto floppies. If the material to be archived exceeds the capacity of the backup medium, the program will prompt the user to insert a new tape or diskette. Use the following command to back up to floppies:  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; tar -cvf /dev/fd0 filename(s) or directoryname(s) &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; The backup can be restored with  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; tar -xvf /dev/fd0 &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; Tar can be used for other things. To mirror all the files and subdirectories in from-stuff to to-stuff, use the commands  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; cd from-stuff  &lt;/li&gt;&lt;li&gt; tar cf - . | (cd ../to-stuff; tar xvf -) &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; No tar file is ever written to disk. The data is sent by pipe from one tar process to another. This example is taken from &lt;em&gt;Running Linux&lt;/em&gt;, p.177. To list the table of contents of a tar archive, use  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; tar tvf tarfile &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; To extract individual files from a tar archive, use  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; tar xvf tarfile files &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; where files is the list of files to extract. When extracting files, tar creates missing subdirectories underneath the current directory in which the cammand is invoked.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tcl - scripting language  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tcsh - extended version of the C shell  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tee - copy standard input to standard output and one or more files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; telinit - used to change run level. Exact run level that corresponds to single-user, multi-user, and X levels depends on distribution.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; telnet - remote login over network  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; test - evaluates an expression or compares arguments. This is a shell builtin in bash, tcsh and zsh.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tftp - user interface to TFTP protocol  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; time - displays times for the current shell and its children. This is a shell builtin. Strange, because there is also a /usr/bin/time program on my Red Hat system.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tin - Netnews reader  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tkdesk - graphical desktop file manager for X  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tksysv - graphical runlevel editor under Red Hat. Allows root to configure the services that are started at each run level.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tload - display system load average in graph format  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; top - dynamically displays process status  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; touch - update access and modification times of a file. If the file does not exist on disk, an empty file is created.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tr - translation utility that can be used, for example, to replace specified characters in a text file  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; trap - traps a signal. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; true - null command that returns a successful exit status  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tset - initializes terminal  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; tty - shows special file that represents your terminal. Displays the terminal pathname.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; type - displays how each argument would be interpreted as a command. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; typeset - declares attributes for a variaable (same as declare). This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ul - translate underscores to underlining  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; umask - establishes the file-creation permissions mask. Usage is  &lt;ul&gt;&lt;li&gt; umask xyz &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; The system subtracts x, y and z from the owner, group and other file permissions that it would otherwise assign to new files. This is a shell builtin.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; umount [device] - finish writing to the device and remove it from the active filesystem. The command umount -a will (re)mount all file systems listed in /etc/fstab.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; unalias - remove name previously defined by alias. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; uname - displays information about the system. With no arguments, it displays the name of the operating system. With the -a option, it displays information about the operating system, the host name, and hardware.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; uniq - displays lines of a file that are unique  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; unset - removes a variable or function. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; unzip - uncompress files compressed with the zip utility, compatible with DOS PKzip  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; updatedb - update file database used by locate command  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; uptime - shows the time, how long the system has been up, the number of users, and average load.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; useradd - same as adduser  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; userdel - remove an account (as root). The user's home directory and undelivered mail must be dealt with separately.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; users - prints list of users on the system  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; vdir - variant of the GNU version of the ls command. Defaults to printing out the long version of directory entries.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; vi - standard screen oriented Unix editor  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; view - vi in read-only mode  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; vim - improved vi editor  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; vrfy - query remote host to verify the accuracy of an email address  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; w - display info about userids and active processes  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; wait - waits for a background process to terminate. This is a shell builtin.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; wc - displays number of lines, characters and words in a file  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; Wharf - the AfterStep application dock module  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; whatis - display one-line summary of specified command  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; whereis - use to find utilities in standard locations  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; which - used to find utilities in search path. Will return the absolute directory path of the named utility program.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; who - display information about currently logged in userids  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; whoami - display information about userid that is currently logged in  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; wish - front end to tk, an X window extension of tcl  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; workbone - console based cd player  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; workman - graphical cd player program  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; write - send messages to another local user  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; X - starts up the X server. Can be invoked with  &lt;ul&gt;&lt;li&gt; X -quiet -query remotemachineaddress &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; in order to get a graphical login screen on the remote machine. See the discussion in connection with xdm below.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xadm - display advanced power management BIOS information  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xargs - converts standard output of one command into arguments for another. This is one of those powerful but obscure commands. Xargs reads arguments from the standard input, delimited by blanks (which can be protected with double or single quotes or a backslash) or newlines, and executes the command (default is /bin/echo) one or more times with any initial-arguments followed by arguments read from standard input. Blank lines on the standard input are ignored.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xbiff - graphical mail delivery notification utility  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xcalc - simple calculator program  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xclipboard - name says it all  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; Xconfigurator - Red Hat utility for configuring settings for X  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xdm - used to start an X login session. This can be used to start a login session on a remote system. See the discussion on the following site:  &lt;ul&gt;&lt;li&gt; &lt;a href="http://www.menet.umn.edu/%7Ekaszeta/unix/xterminal/index.html"&gt;&lt;tt&gt;http://www.menet.umn.edu/~kaszeta/unix/xterminal/index.html&lt;/tt&gt;&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; See the man pages for X, xdm, and Xserver. As usual, the man pages are pretty obscure. The best single source seems to be the Xserver man pages. After X is configured, X needs to be started at bootup with the command (in /etc/rc.d/init.d/xterm):  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; X -quiet -query remotemachineaddress &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; If the address of a nameserver is not configured, then the numeric address of the remote machine rather than its name should be entered. If the machines are connected through ethernet cards and the net, then obviously basic networking has to be set up. Gnome and KDE come with their own versions of X display/login managers, called respectively gdm and kdm.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xdvi - view a dvi file compiled under L&lt;sup&gt;A&lt;/sup&gt;T&lt;sub&gt;E&lt;/sub&gt;X  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xedit - a simple text editor for X  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xf86config - graphical configuration tool for X  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; XF86Setup - graphical configuration tool for X  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xfd - display an available font in X. Creates a grid in an x-term with one character per rectangle.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xfig - utility for interactive generation of figures  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xfm - graphical file manager for X  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xhost - tell X server that remote computer has access to your machine and that you will use the remote computer. This can be used to set up remote X sessions. To set up a remote X session on the UQAM Nobel machine, run the following command on the local machine (one doesn't have to be root to do this)  &lt;ul&gt;&lt;li&gt; xhost +nobel.si.uqam.ca &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; Then, log onto the remote machine using rlogin (see above) or telnet. Once logged in, use the following command to get the remote X server to open an X terminal on the local machine:  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; setenv DISPLAY localhostname:0 ; xterm &amp; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; This is valid for csh, which is the default login shell on Nobel. For ksh, (and I think bash) replace with  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; DISPLAY=localhostname:0  &lt;/li&gt;&lt;li&gt; export DISPLAY ; xterm &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; Other X-based programs such as Netscape or Gauss (graphical version) can also be run on a remote machine with display on the local machine with little trouble. The local X server is the program that has all of the information concerning the properties of the graphics card and terminal, so it must be necessary to have X running on the local machine. The following should also work. After using xhost to give permission to the remote machine to display on the local machine, use  &lt;/p&gt;&lt;ul&gt;&lt;li&gt; netscape -display localhostname:0.0 &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; Question: can one start the X session on the local machine and then run a remote copy of a window manager?  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xinit - start X Window. The command startx is a front end to xinit in Linux, including Slackware.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xload - displays a graphic of the system load  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xlpq - graphical interface to print manager. This is included on one of the XFCE menus, but does not seem to be a part of the base Red Hat distribution.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xlsfonts - list fonts available under the X Window system.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xman - browsable command reference. Displays manual pages under X.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xmh - graphical front end under X to the nmh mail handling system. This program is part of the XFree86 package in Red Hat.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xmodmap - utility for modifying keymaps and pointer button mappings in X. Can be used to install a French Canadian keyboard. Download the Xmodmap.cf file from www.linux-quebec.org, and insert the command  &lt;ul&gt;&lt;li&gt; xmodmap /etc/X11/Xmodmap.cf &amp;amp; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt; into the .xession (with xdm) or the .xinitrc (with startx) file.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xosview - displays bar graphs of system load, load average, memory usage, and swap usage  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xpaint - simple paint program for X  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xpdf - GPL'd utility for previewing dvi files. Doesn't seem to work too well on texts with a lot of math.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xplaycd - X Window audio cd player utility  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xsetroot - utility to configure root window of an X terminal  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xsysinfo - graphical display of load and memory usage  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xterm - start an X Window terminal session  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xterm-color - color version of xterm  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xv - utility for viewing and manipulating many types of image files. This is a shareware program.  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; xvidtune - utility for fine tuning of monitor settings under X  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; yacc - parser generator  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; ytalk - multi-user program similar to talk  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; zcat - read one or more files that have been compressed with gzip or compress and write to standard output  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; zcmp - read compressed files and pass them to cmp  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; zdiff - read compressed files and pass them to diff  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; zgrep - read compressed files and pass them to grep  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; Zharf - AfterStep button panel module  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; zip - zip utility compatible with DOS PKzip  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; zless - view zipped files  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; zmore - print contents of compressed files one screen at a time  &lt;p&gt;  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; znew - uncompress Z files and recompress in .gz format  &lt;p&gt; &lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; Eventually, we want to be able to distinguish between commands that are an intrinsic part of the kernel, commands that are executable binaries that come with every distribution of Linux, executable binaries that are not provided with all distributiions of Linux, and executable shell scripts. We also want to point out the typical location of these commands on different Linux distributions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-2080810262355321519?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/2080810262355321519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=2080810262355321519&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/2080810262355321519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/2080810262355321519'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/03/basic-linux-commands.html' title='Basic Linux Commands'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-4940883713173456581</id><published>2007-03-24T08:39:00.000+05:30</published><updated>2007-03-24T08:46:24.043+05:30</updated><title type='text'>How to Use Shell ?</title><content type='html'>To use shell (You start to use your shell as soon as you log into your system) you have to simply type commands. Following is the list of common commands.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(0, 153, 0);font-size:180%;" &gt;&lt;span style="font-weight: bold;"&gt;Linux Common Commands&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;NOTE that following commands are for New users or for Beginners only. The purpose is if you use this command you will be more familiar with your shell and secondly, you need some of these command in your Shell script. If you want to get more information or help for this command try following commands For e.g. To see help or options related with date command try&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$ date --help&lt;/span&gt;&lt;br /&gt;or To see help or options related with ls command (Here you will screen by screen help, since help of ls command is quite big that can't fit on single screen )&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$ ls --help | more&lt;/span&gt;&lt;br /&gt;Syntax: command-name --help&lt;br /&gt;Syntax: man command-name&lt;br /&gt;Syntax: info command-name&lt;br /&gt;&lt;br /&gt;See what happened when you type following&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$ man ls&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$ info bash&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE: In MS-DOS, you get help by using /? clue or by typing help command as&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;C:\&gt; dir /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;C:\&gt; date /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;C:\&gt; help time&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;C:\&gt; help date&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;C:\&gt; help&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-4940883713173456581?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/4940883713173456581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=4940883713173456581&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/4940883713173456581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/4940883713173456581'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/03/how-to-use-shell.html' title='How to Use Shell ?'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3407788516620073431.post-7740916298438026350</id><published>2007-03-24T08:30:00.000+05:30</published><updated>2008-11-13T19:30:56.763+05:30</updated><title type='text'>Introduction to Shell</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(102, 0, 204);font-size:130%;" &gt;What's Kernel&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);font-size:130%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;Kernel is hart of Linux O/S. It manages resource of Linux O/S. Resources means facilities available in Linux. For eg. Facility to store data, print data on printer, memory, file management etc . Kernel decides who will use this resource, for how long and when. It runs your programs (or set up to execute binary files) It's Memory resident portion of Linux. It performance following task :-&lt;br /&gt;&lt;ul&gt;&lt;li&gt; I/O management&lt;/li&gt;&lt;li&gt;Process management&lt;/li&gt;&lt;li&gt;Device management&lt;/li&gt;&lt;li&gt;File management&lt;/li&gt;&lt;li&gt;Memory management&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(102, 51, 255);font-size:130%;" &gt;What's Linux Shell&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;Computer understand the language of 0's and 1's called binary language, In early days of computing, instruction are provided using binary language, which is difficult for all of us, to read and write. So in O/s there is special program called Shell. Shell accepts your instruction or commands in English and translate it into computers native binary language.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center; color: rgb(102, 0, 204);"&gt;&lt;span style="font-size:130%;"&gt;This is what Shell Does for US&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_gV5Uxtigafo/RgSVRcUzuTI/AAAAAAAAACs/rkqw9KExEOU/s1600-h/01_intro.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_gV5Uxtigafo/RgSVRcUzuTI/AAAAAAAAACs/rkqw9KExEOU/s400/01_intro.JPG" alt="" id="BLOGGER_PHOTO_ID_5045321609455581490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;You type Your command and shell convert it a&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_gV5Uxtigafo/RgSVV8UzuUI/AAAAAAAAAC0/OYX8ait5nM4/s1600-h/02_intro.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_gV5Uxtigafo/RgSVV8UzuUI/AAAAAAAAAC0/OYX8ait5nM4/s400/02_intro.JPG" alt="" id="BLOGGER_PHOTO_ID_5045321686764992834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;It's environment provided for user interaction. Shell is an command language interpreter that executes commands read from the standard input device &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;(keyboard) or from a file.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;Any of the Linux shell reads command from user (via Keyboard or Mouse) and tells Linux O/s what users want. If we are giving commands from keyboard it is called command line interface ( Usually in-front of $ prompt, This prompt is depend upon your shell and Environment that you set or by your System Administrator, therefore you may get different prompt ).&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;NOTE: To find your shell type following command&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 102, 204); font-weight: bold;"&gt;$ echo $SHELL&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3407788516620073431-7740916298438026350?l=shell-scripts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shell-scripts.blogspot.com/feeds/7740916298438026350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3407788516620073431&amp;postID=7740916298438026350&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/7740916298438026350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3407788516620073431/posts/default/7740916298438026350'/><link rel='alternate' type='text/html' href='http://shell-scripts.blogspot.com/2007/03/introduction-to-shell.html' title='Introduction to Shell'/><author><name>Ashish Jain</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-IMdPHu-0lX8/AAAAAAAAAAI/AAAAAAAAESw/1ITqXGACgj4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_gV5Uxtigafo/RgSVRcUzuTI/AAAAAAAAACs/rkqw9KExEOU/s72-c/01_intro.JPG' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
