Module 5 Getting Help.

Slides:



Advertisements
Similar presentations
CS 497C – Introduction to UNIX Lecture 5: Understanding the UNIX Command Chin-Chih Chang
Advertisements

RH030 Linux Computing Essentials
Appendix A. Man Pages man whatis whatis(1) Typical Man Page Sections SectionContents User commands System calls C library functions.
Chapter 4 Getting Help. Using CDE Help Help Manager – primary help tool SunSolve Online – Web-based online help from Sun Solaris Support – Web-based Sun.
Linux+ Guide to Linux Certification, Second Edition
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
Introduction to Linux Operating System Tutorial 1
Manage Directories and Files in Linux
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Agenda Chapter 1: Linux (Unix) Features Commands (Chapters 2 & 3) Command Structure / Command line editing man, passwd, cal, date, whereis, which Working.
Adding New Users User as an entity - username(UID), GID. UID - typically a number for system to identify the user. GID – a number that recognizes a set.
Linux+ Guide to Linux Certification, Third Edition
Introduction to Linux ( I ) Sidney Fong 4 th Feb 2006.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
UNIX and Shell Programming (06CS36) Unit 1 Continued… Shrinivas R. Mangalwede Department of Computer Science and Engineering K.L.S. Gogte Institute of.
Guide to Linux Installation and Administration, 2e1 Chapter 7 The Role of the System Administrator.
Week 3 Exploring Linux Filesystems. Objectives  Understand and navigate the Linux directory structure using relative and absolute pathnames  Describe.
Linux+ Guide to Linux Certification, Third Edition
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Agenda Getting Started: Using Unix Unix Structure / Features Elements of the Unix Philosophy Unix Command Structure Command Line Editing Online Unix Command.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Λειτουργικά Συστήματα - Lab1 Γιάννης Πετράκης. The Operating System  Unix is a layered operating system  The innermost layer is the hardware that provides.
Manage Directories and Files in Linux Part 2. 2 Identify File Types in the Linux System The file types in Linux referred to as normal files and directories.
Slide: 1 UNIX FILE SYSTEM By:Qing Yang ID: Operating System Research Topic December, 2000.
Module 1 - Introduction to Linux. Users must log-in Linux is case sensitive File and Directories naming conventions (No spaces!) Files and Directories.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
Announcements Assignment 1 due Wednesday at 11:59PM Quiz 1 on Thursday 1.
BIF713 Introduction to Linux. Agenda Getting Started: Using Linux Unix and Linux - Structure / Features Elements of the Linux Philosophy Linux Command.
EMT 2390L Lecture 3 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
Papeete, French Polynesia
Lesson 11 Exploring Microsoft Office 2007
2.2 Internet Basics.
Lesson 5-Exploring Utilities
Microsoft Word Illustrated
Department of Computer Engineering
Installing and Learning Software
Chapter 1: An Introduction to Visual Basic 2015
Agenda Bash Shell Scripting – Part II Logic statements Loop statements
Creating a Word Document – Part 1
Single Sample Registration
Some Linux Commands.
C151 Multi-User Operating Systems
The Command Prompt Commands are the way to “do things” in Unix
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands:
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
Unix Operating System (Week Two)
EXCEL Introduction.
Microsoft Word 2003 Illustrated Complete
Agenda Control Flow Statements Purpose test statement
Windows Internet Explorer 7-Illustrated Essentials
Exploring the UNIX File System and File Security
Database Applications – Microsoft Access
Benchmark Series Microsoft Word 2016 Level 2
Shells, Help, and Paths.
Lecture 5 Additional useful commands COP 3353 Introduction to UNIX 1.
Creating a Word Document – Part 1
Training Presentation for Supply Chain Platform: BAE Systems
Tutorial 7 – Integrating Access With the Web and With Other Programs
SUSE Linux Enterprise Desktop Administration
Week 1 – Lesson 2: Creating Shell Scripts, Linux Commands
UNIX and Shell Programming (06CS36)
Welcome 1 This is a document to explains the chosen concept to the animator. This will take you through a 5 section process to provide the necessary details.
UNIX and Shell Programming (06CS36)
Lecture 5 Additional useful commands COP 3353 Introduction to UNIX 1.
Correct document structure Easy for authors and accessible to readers
The Linux Command Line Chapter 5
Module 06 Getting Help.
Presentation transcript:

Module 5 Getting Help

Exam Objective 2.2 Using the Command Line to Get Help Objective Summary Utilizing the man and info commands for finding more information

Introduction to the man command

Practice makes perfect! man pages Man pages are usually available for commands, functions or files Man pages are available on the local system Practice makes perfect! Just as you practice executing Linux commands, you should practice reading man pages to become a more capable user

Viewing man pages To vew a man page, first access a terminal or console and type man command or man file.

Controlling the man page display The man page will be displayed by a pager program, either less or more (less is usually used). Both pagers use h to view help, spacebar to move forward, / to start a search and q to quit. Less movement commands: Command Function Return (or Enter) Go down one line 1G Go to beginning Space Go down one page G Go to end /term Search for term h Display help n Find next search item q Quit man page

Man page sections The word sections has two important meanings for man pages. Each man page is broken down under different section headings like NAME, SYNOPSIS and DESCRIPTION. Every man page is categorized into a particular section like user commands, file formats, or system administration.

Common sections of a man page Section name Purpose NAME Provides the name of the command and a very brief description. SYNOPSIS Provides examples of how the command is executed. See below for more information. DESCRIPTION Provides a more detailed description of the command. OPTIONS Lists the options for the command as well as a description of how they are used. Often this information will be found in the DESCRIPTION section and not in a separate OPTIONS section. FILES Lists the file that are associated with the command as well as a description of how they are used. AUTHOR The name of the person who created the man page and (sometimes) how to contact the person. REPORTING BUGS Provides details on how to report problems with the command. COPYRIGHT Provides basic copyright information. SEE ALSO Provides you with an idea of where you can find additional information. This also will often include other commands that are related to this command.

Man pages SYNOPSIS One of the most important sections on a man page is the SYNOPSIS. The SYNOPSIS provides a concise description of the way the command can be used. The square brackets, [ and ], are used to indicate optional items. The vertical bar (|) indicates an exclusive or. The ellipses (…) indicates one or more.

Searching within a man page To initiate a search type / Follow with the keyword to locate Press Enter to view first match Press n to view the next match Press N to view the previous match

Sections and Sections

Man page sections Man pages are placed into sections. There are nine standard sections: Executable programs or shell commands System calls (functions provided by the kernel) Library calls (functions within program libraries) Special files (usually found in /dev) File formats and conventions, e.g. /etc/passwd Games Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7) System administration commands (usually only for root) Kernel routines [Non standard]

Determining which section The section number of manual is enclosed in parentheses when viewing a man page.

Searching the sections To match man pages that have names that match a term, you can use the man command with the -f option. The command whatis term is equivalent to the man -f term.

Searching man pages by keyword The man command has an option, -k, which takes a keyword as an argument. Executing man -k keyword, will search all the man pages descriptions for the keyword. The apropos command is equivalent to using the man command with the -k option.

Specifying a section If the command or file exists in more than one section of the manual, then it may be necessary to specify a manual section in order to view the correct man page. For example, passwd is found in both sections 1 and 5. To view both passwd man pages, the following commands could be executed: man 1 passwd man 5 passwd

Using the info command

The info command The info command provides documentation of commands and files similar to the man command The info documentation is organized into different levels, each of which may contain one or more of the smallest units of organization: the node. The info command will display a man page, as a fallback, in the absence of info documentation.

Displaying info documentation for a command Press h to get help on using info:

Moving around while viewing an info document The following table describes more commonly used keys to move within an info document: Command Function Down arrow Go down one line TAB Skip to next hyperlink Space Go down one page HOME Go to beginning s Search for term END Go to end [ Go to previous node h Display help ] Go to next node L Quit help page u Go up one level q Quit info command

Exploring info documentation Unlike man pages that are sometimes not very easy to read, the info pages are designed to be readable by regular people. Consider executing simply info to begin reading the available info documentation. You may also want to try using pinfo, a more colorful and easier to use version of info.

Getting Additional Help

Additional sources of help The standard GNU option for documentation is --help. Use this to display basic command usage, which is similar to a man page. Software often comes packaged with additional documentation that may be found under the /usr/doc or /usr/share/doc directory. These sub-directories often contain README files and other additional documentation.

Finding commands and documentation The whereis command will display the location of a command executable, as well as its source and documentation, if available.

Find any file or directory The locate command is able to find any file as long as the user has permission to access the containing directory by searching a database of filenames on the system. The updatedb command is typically scheduled to update the locate database daily, but the root user can execute updatedb to immediately update the locate database.

The locate command The locate command will match any part of a filename, so locate readme could match a file named abcreadme123 The -b option for locate allows for a basename search, e.g.: locate -b readme The -c option provides a count of the number of matching files: locate -c readme