Warning: session_start() [function.session-start]: open(/tmp/sess_ac7e3f0a8c2efe14c04fa460e014e1c8, O_RDWR) failed: Permission denied (13) in /home/wwwab/public_html/startup_nodb.php on line 13
How to Get Help in Linux
Remember Me
forgot your password?

How to Get Help in Linux

Copyright (c) 2008 Don R. Crawley

Sometimes, especially for Windows and Macintosh administrators, a move to the Linux operating system can seem a bit intimidating, especially because of the more traditional approach to administration through the Command Line Interface (CLI). The good news is that Linux includes ample, built-in help including "man" pages, "info", "help", and "apropos". In this article, I'll explain your options and give you some practice using each of them. The information in this article should be applicable in any flavor of Linux.

Using "man"

"man" formats and displays the online manual pages. There are manual pages for nearly every command imaginable. Unfortunately, many of the man pages assume a fairly extensive background in UNIX, therefore they often require research beyond the initial man page.

The man pages are divided into sections. Many man entries appear in only one section, but some might appear in multiple sections such as when a command and a library function have the same name. The sections that are most likely to be of interest to system and network administrators are sections 1, 5, and 8.

Section 1: user commands
Section 2: system calls
Section 3: library functions
Section 4: special files
Section 5: file formats
Section 6: games (introduction)
Section 7: conventions and miscellany
Section 8: administration and privileged commands Section L: math library functions
Section N: tcl fuctions (Tool command language, a dynamic programming language)

You can view a man page as follows (the "#" or "$" is part of the prompt): #man chown

The above command will display the man page for the "chown" command.

You can specify a particular section as follows:: #man 1 chmod

The above command would display only section 1 (the user commands section) of the manual for the chmod command. chmod is also a system call, so if you wanted to see the man page for the system call "chmod", you would need to enter the following command: #man 2 chmod

Using "info"

"info" is an on-line manual reader used by the GNU Project to document utilities. It's similar to man (and often produces identical documents), but offers a standardized set of commands for viewing the documentation. The info utility does not assume as great a depth of UNIX knowledge as man.

Basic usage is similar to man: #info chown

The above command will display the info page for the chown command.

Info divides its help into nodes instead of sections. A node, like a section in man, describes a specific topic at a specific level of detail. In a moment, I'll show you where to find a tutorial on using info.

Using "help"

The "help" option is included with most GNU utilities. It displays command options and other information about the utility in question, for example: #ls --help

The above command would show options and other information about the ls command.

Using "apropos"

"apropos" looks in the description sections of man pages for text strings. When executed, apropos will return every man page whose description contains the specified text string: #apropos edit

The above command will display a list of every man page whose description contains the text string "edit".

apropos is helpful when you know what you want to do, but you're not certain of the appropriate utility or command to accomplish it.

Practice Getting Help

The following exercises will familiarize you with the various commands available for getting help including man, info, apropos, and --help.

Practice working with man
1. In a terminal window, enter the following command: $man ls
2. Press Enter. Notice that one additional line of text is displayed.
3. Now press the space bar. Notice that an additional page of text is displayed.
4. Use the arrow keys to move up and down through the page. When you're finished, touch "q" to quit.
5. Enter the following command: $man 1 chmod
What do you see in the upper left-hand corner of the screen?
6. Touch "q" to quit.
7. Enter the following command ("$" is part of the prompt): $man 2 chmod
Notice in both the upper left and right-hand corners of the screen that the section number is displayed.
8. Touch "q" to quit the man page.

Practice working with the apropos utility

1. Start by entering the following command to see the man page for chmod: $man chmod
2. Read the description and notice that it includes the word "permissions".
3. Now, enter the following command: $apropos permissions
4. Notice in the output that chmod is listed, along with every other command whose description includes the word "permissions".

Practice Working with info

Next, you'll use the info utility to view help for commands and learn how to navigate info pages by working through the first part of an "info" tutorial.

1. Enter the following command to see the info page for chmod: $info chmod
The info page for chmod opens.
2. Touch the "h" key to start a brief tutorial for info.
3. Touch the "q" key when you're finished.

Working with --help

This exercise will show you how to use --help with GNU utilities.

1. Enter the following command: $chmod --help
Notice that the help screen, albeit abbreviated, shows you the proper syntax for using the chmod command.
2. Enter the following command: $ls --help
Notice that the help screen fills more than one screen. Use the key combination of Shift-PageUp and Shift-PageDown to move up and down through the Terminal window.

As you can see from the preceeding exercises, in spite of the somewhat daunting nature of a CLI, Linux provides ample help for your use in mastering the operating system.
Don R. Crawley

Don R. Crawley, Linux+ and CCNA-certified, is president and chief technologist at soundtraining.net, the Seattle training firm specializing in business skills and technical training for IT professionals. He works with IT pros to enhance their work, lives, and careers. For more information about soundtraining.net's accelerated Cisco and Linux training, visit here.

Rate this Article: 0 / 5 stars - 0 vote(s)
Print Email Re-Publish

Add new Comment



Captcha

  • Latest Computers Articles
  • More from Don R. Crawley

Increase your Windows XP Color Depth and Quality

By: Sarah Jones19 | 18/12/2009
You can now increase your Windows XP color depth and quality via remote desktop or terminal services connection. With some easy steps you can explore the vibrant colors from your pictures.

Kindle 2 Buyer Info-What is a Kindle 2 Digital Reader

By: Leon Rosa | 18/12/2009
Are you interested in a small compact lightweight device that can store over 1500 books and enables you to purchase new books that are then downloaded directly? Are you book shelves full to the brim? Can't decide what books to take with you when you go away on business or on holiday? Do...

Elite Proxies - What Are The Dangers of Renting Proxy IPs?

By: Creztor Tessel | 18/12/2009
The integrity of a proxy or elite proxy server is very important and when you rent from someone else you are increasing the chances of your elite proxy not being elite. What does this mean? It means that setting up your own elite proxy server is often the better thing to do because you have complete control over it and can ensure that it really is anonymous.

Search for really stylish Wii skins of your choice on internet

By: BhratBrij | 18/12/2009
Are you looking for really stylish Wii skins on the Internet? You can get them along with made-to-measure IPod skins; iPod Nano skins and Amazon kindle 2 skins.

Are you looking for reliable Videogame Skins?

By: BhratBrij | 18/12/2009
So are you waiting for go on to the Internet right now and look for the amazing sizes and varieties of Videogame skins available there. And then when you are at it you might want to browse through what you can get in DSI skins and DS Lite skins for your Nintendo DS.

On What Points Website Designing India is Best?

By: Chandan Chaturvedi | 18/12/2009
The best Website Design India offers you high quality Website Designing, Website development, Website promotion (SEO), Software Development Services and Ecommerce Solutions

Windows System Suite May Sound Secure, But Beware!

By: Carl Haugen | 18/12/2009
Windows System Suite sounds like a name you should trust, but this application is actually a rogue security program. Through aggressive and misleading security warnings, this malicious program attempts to convince you that infections and parasites reside on your PC. This is simply an effort to frighten you, so that in the end you purchase their product as a solution.

The Tech Sector Appears to be Inflation-Proof

By: Gregg Housh | 18/12/2009
In a world that is laden with baffling monetary phenomena, it can be hard to afford particular items in volatile economic conditions. The price of gasoline can swing dramatically overnight. With the world in a economic death spiral, a system upgrade seems like a strange idea. Nevertheless, technological advance powers onward...

Configuring a Site-to-site Vpn Between Two Cisco Routers

By: Don R. Crawley | 10/12/2008 | Computers
Learn the steps for configuring a secure site-to-site Virtual Private Network (VPN) with Cisco routers.

How to Configure Ssh (secure Shell) for Remote Login on a Cisco Router

By: Don R. Crawley | 02/12/2008 | Computers
Learn how to configure SSH for secure remote login on a Cisco router in this soundtraining.net "how-to" guide. SSH replaces the notoriously non-secure Telnet protocol for remote login.

Understanding the Fundamentals of Ethernet

By: Don R. Crawley | 06/09/2008 | Computers
In this brief article, you'll learn the basics of how Ethernet works in modern computer networks and cabling options for your network.

How to Get Help in Linux

By: Don R. Crawley | 04/09/2008 | Computers
The Linux operating system includes substantial built-in help systems. In this article, veteran I.T. guy Don R. Crawley explains how to find and use Linux help systems.

The Three Secrets to Profitable Email Marketing

By: Don R. Crawley | 21/05/2008 | Business
Legitimate email marketing is a very powerful tool for your business...if you use it correctly. In this concise article, you'll learn the three keys for profitable email marketing and how you can use it successfully in your business.

How to Create and Manage Access-control Lists on Cisco Asa and Pix Firewalls

By: Don R. Crawley | 30/04/2008 | Computers
Learn the fundamentals of building and managing access-control lists on a Cisco ASA or PIX firewall in this soundtraining.net "How-to" guide.

How to Create and Exchange Digital Documents

By: Don R. Crawley | 27/04/2008 | Business
Digital documents are safer, more secure, easier to search, easier to send, and infinitely easier to store. In this article, you'll learn about the benefits of using digital documents and gain some practical ideas about how to start using digital documents in your business.

Automating Appointment Scheduling

By: Don R. Crawley | 24/04/2008 | Business
Learn how to let your customers and clients manage their own appointments by automating the appointment scheduling process with free or low cost online tools. In this brief article, automation evangelist Don R. Crawley show you how to automate appointment scheduling with another way to go digital without going postal.

Submit Your Articles Free: Signup
Article Categories




Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2008 Free Articles by ArticlesBase.com, All rights reserved. (0.41, 6, w2)