<?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-2345155343894730528</id><updated>2011-04-21T20:08:41.693-05:00</updated><category term='command line'/><title type='text'>Linux/Unix Tips, Tricks, and Tools</title><subtitle type='html'>New to Linux?  This is the knowledge you need to tame the command line.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nixtricks.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2345155343894730528/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nixtricks.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Christopher Cashell</name><uri>http://www.blogger.com/profile/17212804857619277232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2345155343894730528.post-7406835055852530950</id><published>2008-02-17T00:14:00.006-06:00</published><updated>2008-02-17T01:21:16.860-06:00</updated><title type='text'>Reading the manual</title><content type='html'>It amazes me that &lt;span style="font-family: courier new;"&gt;man&lt;/span&gt; isn't introduced sooner in most Linux and Unix tutorials and how-to's.  It's one of the most important tools to know when learning Linux and Unix.  Hopefully if you're reading this and using Linux, you're familiar with it, but if you're not, now is the time.&lt;br /&gt;&lt;br /&gt;Practically every command in the Unix world has some documentation called a man page, short for manual page.  This is easily accessible online reference documentation.  It's not always the most user friendly, but it's the quickest way to see what the typical options for a command are.  In order to use the &lt;span style="font-family:courier new;"&gt;man&lt;/span&gt; command, just type man followed by the name of the command you want information on.&lt;br /&gt;&lt;br /&gt;Example: &lt;pre&gt;$ man man&lt;/pre&gt;This will display the man page for the man command.  It will first show you a one line description, followed by the synopsis, which is a sample of the command with it's available options.  After that will be various sections that can include a longer description, usage examples, in depth descriptions of the options available, and other information about the command.&lt;br /&gt;&lt;br /&gt;You may also see articles or references that show something like &lt;span style="font-family: courier new;"&gt;man(1)&lt;/span&gt; or &lt;span style="font-family: courier new;"&gt;passwd(5)&lt;/span&gt;.  Placing a parenthesized number after a command name is a Unix idiom for referring to a man page.  The number refers to the "section" of the man pages (for example, section 1 is for executable commands, while section 5 is for file formats).   This is important because there are some things that have more than one function.  &lt;span style="font-style: italic;"&gt;passwd&lt;/span&gt; is a good example.  There is both a &lt;span style="font-family: courier new;"&gt;passwd&lt;/span&gt; command, used to change a user's password, and there's a file, &lt;span style="font-family: courier new;"&gt;/etc/passwd&lt;/span&gt;, that is used to store user login information.  &lt;span style="font-family: courier new;"&gt;passwd(1)&lt;/span&gt; comtains information on the passwd command, while &lt;span style="font-family: courier new;"&gt;passwd(5)&lt;/span&gt; comtains information on the format of the /etc/passwd file.  If you enter just &lt;span style="font-family: courier new;"&gt;man passwd&lt;/span&gt;, and there are multiple entries for a command, then man will try to make a best guess for which one you want.  Alternately, you can specify a specific section like:  &lt;span style="font-family: courier new;"&gt;man 5 passwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you are ever referred to a command, or hear mention of an unfamiliar command, the man page is the first place you should go to find out more information about it.  Don't worry if they seem a little hard to read and understand at first, the more you use the man pages, the more useful they'll become.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2345155343894730528-7406835055852530950?l=nixtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nixtricks.blogspot.com/feeds/7406835055852530950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2345155343894730528&amp;postID=7406835055852530950' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2345155343894730528/posts/default/7406835055852530950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2345155343894730528/posts/default/7406835055852530950'/><link rel='alternate' type='text/html' href='http://nixtricks.blogspot.com/2008/02/reading-manual.html' title='Reading the manual'/><author><name>Christopher Cashell</name><uri>http://www.blogger.com/profile/17212804857619277232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2345155343894730528.post-2997934889087693127</id><published>2008-02-13T21:57:00.007-06:00</published><updated>2008-02-20T12:08:44.601-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='command line'/><title type='text'>Finding the command you need</title><content type='html'>Often times you'll know what you want to do, and you may even know that there's a command out there to do what you want.  But maybe you don't know, or can't remember, what the command is.  This is where &lt;span style="font-family:courier new;"&gt;apropos&lt;/span&gt; (or &lt;span style="font-family:courier new;"&gt;man -k&lt;/span&gt;) comes in.  apropos is a tool for searching through the names and descriptions of the man pages installed on a system.&lt;br /&gt;&lt;br /&gt;Let's say that you're working on a system, and you need to edit a text file.  You're pretty sure that vi is installed, because it's the text editor that is installed on almost every single Unix box there is, but it's not the easiest text editor to use for newbies.  So, you figure that if you search the man pages for 'editor', maybe you can find some alternatives.  You might end up with something like the following:&lt;br /&gt;&lt;pre&gt;$ apropos editor&lt;br /&gt;bvedit (1)           - visual editor for binary files&lt;br /&gt;bvi (1)              - visual editor for binary files&lt;br /&gt;bview (1)            - visual editor for binary files&lt;br /&gt;cle (1)              - Command Line Editor&lt;br /&gt;ed (1)               - text editor&lt;br /&gt;ex (1)               - Vi IMproved, a programmers text editor&lt;br /&gt;nano (1)             - Nano's ANOther editor, an enhanced free Pico clone&lt;br /&gt;sed (1)              - stream editor for filtering and transforming text&lt;br /&gt;vi (1)               - Vi IMproved, a programmers text editor&lt;br /&gt;view (1)             - Vi IMproved, a programmers text editor&lt;br /&gt;vim (1)              - Vi IMproved, a programmers text editor&lt;/pre&gt;&lt;br /&gt;From this list, I see &lt;span style="font-family:courier new;"&gt;nano&lt;/span&gt; showed up, which is one of the easiest to use editors frequently found on Linux machines.  I can now make use of that to edit my file.&lt;br /&gt;&lt;br /&gt;Any time you need to do something, but don't know whether there's a command that might help, give apropos a shot.  Try running it on a few words related to what you're trying to do, and see if something comes up.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Note:  &lt;span style="font-family:courier new;"&gt;man -k&lt;/span&gt; is generally an equivalent to the &lt;span style="font-family:courier new;"&gt;apropos&lt;/span&gt; command.  Both will do the same thing, and return the same information.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2345155343894730528-2997934889087693127?l=nixtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nixtricks.blogspot.com/feeds/2997934889087693127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2345155343894730528&amp;postID=2997934889087693127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2345155343894730528/posts/default/2997934889087693127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2345155343894730528/posts/default/2997934889087693127'/><link rel='alternate' type='text/html' href='http://nixtricks.blogspot.com/2008/02/finding-command-you-need.html' title='Finding the command you need'/><author><name>Christopher Cashell</name><uri>http://www.blogger.com/profile/17212804857619277232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2345155343894730528.post-2883149946897994495</id><published>2008-02-13T19:39:00.002-06:00</published><updated>2008-02-13T20:15:02.957-06:00</updated><title type='text'>Welcome to Linux/Unix Tips, Tricks, and Tools.</title><content type='html'>Welcome.&lt;br /&gt;&lt;br /&gt;More and more people are installing and using Linux at home, many of them for the first time.  Although a modern Linux installation can be used entirely from the GUI, there are some  things which are much easier or more convenient from a command line. There are also a great many useful tools that new users don't even know are available to them.&lt;br /&gt;&lt;br /&gt;This blog will consist of a series of relatively short entries, each of which contains a tip, trick, or tool that many people using Linux and Unix for the first time may not be familiar with.  If you are new to Linux or Unix, then this will be a great way to gradually build up your skills and learn some of the secrets of the Unix gurus.&lt;br /&gt;&lt;br /&gt;If there is a particular command or tool that you've heard mention of, but you're not sure what it is, how it's used, or why it's used, feel free to let me know.  I'll try to work it into the queue to post about.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2345155343894730528-2883149946897994495?l=nixtricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nixtricks.blogspot.com/feeds/2883149946897994495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2345155343894730528&amp;postID=2883149946897994495' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2345155343894730528/posts/default/2883149946897994495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2345155343894730528/posts/default/2883149946897994495'/><link rel='alternate' type='text/html' href='http://nixtricks.blogspot.com/2008/02/welcome-to-linuxunix-tips-tricks-and.html' title='Welcome to Linux/Unix Tips, Tricks, and Tools.'/><author><name>Christopher Cashell</name><uri>http://www.blogger.com/profile/17212804857619277232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
