3 the oss shell, 4 oss commands and utilities – HP NonStop G-Series User Manual

Page 4

Advertising
background image

OSS Filesets...........................................................................................................................30
Specifying Names With Pattern-Matching Characters .................................................................30

3 The OSS Shell..........................................................................................31

OSS Shell Features.................................................................................................................31
Metacharacters .....................................................................................................................32
Shell Built-In Commands..........................................................................................................33
Command-Entry Aids..............................................................................................................35

Using Multiple Commands and Command Lists .....................................................................35

Running Commands in Sequence With a Semicolon (;) .....................................................35
Running Commands Conditionally With the || and && Operators .....................................35

Using Pipes and Filters .......................................................................................................36
Grouping Commands.........................................................................................................37

Using Parentheses ( ) .....................................................................................................37
Using Braces { } ...........................................................................................................37

Quoting............................................................................................................................38

Using the Backslash ( \ )................................................................................................38
Using Single Quotes (' ') ...............................................................................................38
Using Double Quotes ( " " )............................................................................................38

Filename Completion..............................................................................................................38
Aliases..................................................................................................................................39

Exporting Aliases...............................................................................................................40
Aliases and the .profile File.................................................................................................40
Reexecuting the .profile File.................................................................................................40
Displaying Aliases.............................................................................................................40

Command History...................................................................................................................40
Command-Line Editing.............................................................................................................41

Displaying Command Lines in the Command History Buffer.....................................................42
Editing and Executing Command Lines .................................................................................43
Replacing and Reexecuting Command Lines .........................................................................43

The Shell Environment.............................................................................................................43
Environment Variables.............................................................................................................45

Setting Environment Variables..............................................................................................46

Setting Variables on the Command Line...........................................................................47
Setting Variables in Your .profile File................................................................................47

Displaying the Values of Variables.......................................................................................48
Clearing the Values of Variables..........................................................................................48

Example .profile File...............................................................................................................48
How the Shell Finds Commands...............................................................................................50
Shell Procedures.....................................................................................................................51

Writing and Running Shell Procedures..................................................................................51

4 OSS Commands and Utilities.....................................................................53

Command Usage ..................................................................................................................53
Online Reference Pages...........................................................................................................53

The man Command............................................................................................................54
The whatis Command.........................................................................................................54
The apropos Command......................................................................................................54

Command Syntax...................................................................................................................55
OSS User Commands and Utilities............................................................................................55
Commands and Utilities by User Function..................................................................................60

Application Development ...................................................................................................60
Archiving..........................................................................................................................61
Displaying Files ................................................................................................................61
Files and Directories ..........................................................................................................61
Commands Providing Interoperability....................................................................................62

4

Contents

Advertising
This manual is related to the following products: