Unix features, posix and single unix specification

13
Unix Features, POSIX and Single UNIX specification, Understanding the man configuration SudhaRani.S Computer Science & Engineering

Transcript of Unix features, posix and single unix specification

Page 1: Unix features, posix and single unix specification

Unix Features, POSIX and Single UNIX specification, Understanding the man

configuration

SudhaRani.SComputer Science & Engineering

Page 2: Unix features, posix and single unix specification

Features of UNIX

Multiuser capability and background processing

Multitasking capabilityCommunicationSecurity, SimplePortability

Page 3: Unix features, posix and single unix specification

Features of UNIXTime sharingCommand interpreterHierarchical file systemSimple command structureBuilding-Block approachUNIX toolkitPattern Matching

Page 4: Unix features, posix and single unix specification

Features of UNIX

File security and protectionDOS-UNIX interfaceSystem administration and job accounting

Tools and utilitiesShell and shell programming

Page 5: Unix features, posix and single unix specification

Features of UNIXOnline documentationAvailability of 4GL and RDBMSLibrary of application packagesText processingGraphicsOperational units

Page 6: Unix features, posix and single unix specification

POSIX and Single UNIX Specification

POSIX (Portable Operating System Interface for computer Environments) refers to operating system based on UNIX.

Developed at IEEE.Refers to Operating System based on UNIX.POSIX.1 - C application programming interface,

the system calls

Page 7: Unix features, posix and single unix specification

POSIX and Single UNIX Specification

POSIX.2 - deals with the Shell and Utilities.POSIX 4 - thread management. Unification of two standards (POSIX.1 & POSIX.2)

known as Single UNIX Specification(SUSV3). “Write once, adopt everywhere” once the software has been developed on any POSIX, it can be easily ported to another POSIX UNIX machine with lesser modifications.

Page 8: Unix features, posix and single unix specification

Understanding the man configuration

The UNIX man pages (man is short for manual ) cover every command available.

To search for a man page, enter man followed by the name of the command to find .

For exampleman ls

Man searches the manuals starting from section 1. Depending on the UNIX flavour we need to use the prefix –s option to the section number

man 4 passwd //passwd alos occurs in section 4man –s4 passwd // solaris uses the –s option

Page 9: Unix features, posix and single unix specification

Understanding the man configurationThis displays the documentation for a

configuration file named /etc/passwd from section 4.

There’s also an entry for passwd in section 1 using man passwd (without the section number)

man passwd

Page 10: Unix features, posix and single unix specification

Understanding the man page

A man page is divided into a number of compulsory and optional sections. It holds NAME,SYNOPSIS,DESCRIPTION.

NAME – one line introduction to the commandWc – displays a count of lines, words and characters in a file

Page 11: Unix features, posix and single unix specification

Understanding the man page

SYNOPSIS – syntax used by the commandWc [-c | -m| -C ] [-lw] [file ….]Where - c is count bytes-m and –C is count characters-l count lines-w count words

DESCRIPTION – provides a detailed descriptionDescription about wc in detail

Page 12: Unix features, posix and single unix specification

Using man to Understand man

man man is used to view its own documentation. Viewing man pages with man

The variable PAGER controls the pager man uses and if you set it to less then man will use less as its pager. PAGER = less; export PAGERMan wc

To evaluate the value of PAGER, use the command echo $PAGER. This valid only for the current session.

Page 13: Unix features, posix and single unix specification

Further help with man

The POSIX specification requires man to support only one option –k

It searches a summary database and prints a one line description of the command.

To know what awk does, use man command$ man –k awk