Auto Transport
Unix Ls Options

Categories

Home -> Options -> Unix Ls Options

Unix Ls Options Article


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, 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.

Article Source: ArticlesBase.com

Next page: World Currency Options


Unix Ls Options News


GLOBAL MARKETS: European Stocks Set To Open Higher; US Late Surge Helps - Wall Street Journal


Christian Science Monitor

GLOBAL MARKETS: European Stocks Set To Open Higher; US Late Surge Helps
Wall Street Journal
By Ishaq Siddiqi Of DOW JONES NEWSWIRES LONDON (Dow Jones)--European stock markets are expected to start higher Thursday, supported by a late surge on Wall Street overnight, although heightened fears over a potential Greek exit from the euro zone ...
US STOCKS-Wall St finishes flat in late reversalReuters
Stocks rally to erase steep lossesChristian Science Monitor
U.S. Stocks Erase Loss Amid Optimism Europe Will Contain CrisisSan Francisco Chronicle
Fox Business -CNN -BusinessWeek
all 1,415 news articles »

Read more...


World Stocks Waver as Europe Holds Another Summit - ABC News


ABC News

World Stocks Waver as Europe Holds Another Summit
ABC News
World stock markets wavered Thursday as the lack of a breakthrough in Europe's attempts to shake off its debt crisis kept sentiment gloomy. Worries over Greece intensified after European leaders adjourned a summit without taking concrete measures to ...
World stocks down as worries over Greece growBusinessWeek
US Stocks Reverse Dramatic Losses To Finish Roughly FlatWall Street Journal

all 6,149 news articles »

Read more...


India Stock Futures Gain as Recent Slump Judged Excessive - Bloomberg


Firstpost

India Stock Futures Gain as Recent Slump Judged Excessive
Bloomberg
Indian stocks advanced for the first time in three days after the first increase in gasoline prices in almost seven months eased reduced concern on the shortfall in the government's finances. Oil & Natural Gas Corp. (ONGC) the country's largest ...
MARKET EYE-Indian stocks gain on fuel hike hopesReuters India
Sensex ends below 16000; telecom stocks hitFirstpost
Banking stocks drive Sensex above 16k, HDFC soarsNDTV

all 468 news articles »

Read more...


Asian Stocks Retreat on China Factory Report; Oil, Copper Climb - San Francisco Chronicle


Asian Stocks Retreat on China Factory Report; Oil, Copper Climb
San Francisco Chronicle
May 24 (Bloomberg) -- Asian stocks fell for a second day after a survey showed China's manufacturing may shrink for a seventh month in May. Commodities rebounded from the biggest drop in two weeks, while the euro traded near the weakest level since ...

and more »

Read more...


STOCKS NEWS SINGAPORE-Shares pare gains at midday - Reuters


STOCKS NEWS SINGAPORE-Shares pare gains at midday
Reuters
For related story click 1245 (0445 GMT) (Reporting by Charmian Kok in Singapore; charmian.kok@thomsonreuters.com) ************************************************************ 12:34 STOCKS NEWS SINGAPORE-Maybank cuts Sarin target price Maybank Kim Eng ...
STOCKS NEWS SINGAPORE-CIMB cuts Bukit Sembawang target priceReuters UK

all 22 news articles »

Read more...


Vietnamese stocks end mixed as rate cut talk swirls - Reuters


Vietnamese stocks end mixed as rate cut talk swirls
Reuters
HANOI May 24 (Reuters) - Vietnamese stocks closed mixed on Thursday in lower volume as speculation of an interest rate cut prompted some traders to hunt for bargains. Foreigners sold 166.91 billion dong ($8.02 million) worth of stocks and bought shares ...

and more »

Read more...


STOCKS NEWS THAILAND-Banks rise on positive loan data - Reuters


STOCKS NEWS THAILAND-Banks rise on positive loan data
Reuters
Banking stocks rose nearly 2 percent after the sector reported strong loan growth in April, with market leader Bangkok Bank Pcl gaining 2 percent and Kasikornbank climbing 2.8 percent. Nine commercial banks posted a 15 percent increase in loans in ...
STOCKS NEWS THAILAND-Miner Banpu advances on sales projectionReuters UK

all 5 news articles »

Read more...


Permalink: Unix Ls Options | Copyright © 2012 stocktraderpros.com All Rights Reserved