This book is Volume 2 of the six-volume AIX Version 4.3 Commands Reference, SBOF-1877, which contains reference information on Advanced Interactive Executive (AIX) Operating System commands. It describes the tasks each command performs, how commands can be modified, how they handle input and output, who can run them and provides a master index for all six volumes.
For a quick reference list of commands arranged in functional groups, see Volume 6.
This book is intended for users of AIX commands.
A command is a request to perform an operation or run a program. You use commands to tell the AIX Operating System what task you want it to perform. When commands are entered, they are deciphered by a command interpreter (also known as a shell) and that task is processed.
Some commands can be entered simply by typing one word. It is also possible to combine commands so that the output from one command becomes the input for another command. This is known as pipelining.
Flags further define the actions of commands. A flag is a modifier used with the command name on the command line, usually preceded by a dash.
Commands can also be grouped together and stored in a file. These are known as shell procedures or shell scripts. Instead of executing the commands individually, you execute the file that contains the commands.
Some commands can be constructed using Web-based System Manager applications or the System Management Interface Tool (SMIT).
The following highlighting conventions are used in this book:
Each command may include any of the following sections:
To list the installable software package (fileset) of an individual command use the lslpp command with the -w flag. For example, to list the fileset that owns the installp command, enter:
lslpp -w /usr/sbin/installp
Output similar to the following displays:
File Fileset Type ----------------------------------------------------------------- /usr/sbin/installp bos.rte.install File
To list the fileset that owns all file names that contain installp, enter:
lslpp -w "*installp*"
Output similar to the following displays:
File Fileset Type ----------------------------------------------------------------- /usr/sbin/installp bos.rte.install File /usr/clvm/sbin/linstallpv prpq.clvm File /usr/lpp/bos.sysmgt/nim/methods/c_installp bos.sysmgt.nim.client File
AIX command syntax is represented by syntax diagrams and usage statements.
Syntax diagrams are designed to provide information about how to enter the command on the command line. A syntax diagram can tell you:
AIX commands use the following conventions in their syntax diagrams:
The Sample Syntax Diagram illustrates the conventions used in syntax diagrams. Each part of the diagram is labeled. An explanation of the labels follows the diagram.
You interpret the example diagram as follows.
If you are going to run a command that takes a long time to process, you can specify that the command run in the background. Background processing is a useful way to run programs that process slowly. To run a command in the background, you use the & (ampersand) operator at the end of the command:
Command&
Once the process is running in the background, you can continue to work and enter other commands on your system.
At times, you might want to run a command at a specified time or on a specific date. Using the cron daemon, you can schedule commands to run automatically. Or, using the at and batch commands, you can run commands at a later time or when the system load level permits.
When you work with AIX, you typically enter commands following the shell prompt on the command line. The shell prompt can vary. In the following examples, $ is the prompt.
To display a list of the contents of your current directory, you would type ls and press the Enter key:
$ ls
When you enter a command and it is running, the operating system does not display the shell prompt. When the command completes its action, the system displays the prompt again. This indicates that you can enter another command.
The general format for entering AIX commands is:
Command Flag(s) Parameter
The flag alters the way a command works. Many commands have several flags. For example, if you type the -l (long) flag following the ls command, the system provides additional information about the contents of the current directory. The following example shows how to use the -l flag with the ls command:
$ ls -l
A parameter consists of a string of characters that follows a command or a flag. It specifies data, such as the name of a file or directory, or values. In the following example, the directory named /usr/bin is a parameter:
$ ls -l /usr/bin
When entering commands in AIX, it is important to remember the following:
$ cat /usr/ust/mydir/mydata > \ /usr/usts/yourdir/yourdata
When certain commands are entered, the shell prompt changes. Because some commands are actually programs (such as the telnet command), the prompt changes when you are operating within the command. Any command that you issue within a program is known as a subcommand. When you exit the program, the prompt returns to your shell prompt.
AIX can operate with different shells (for example, Bourne, C, or Korn) and the commands that you enter are interpreted by the shell. Therefore, you must know what shell you are using so that you can enter the commands in the correct format.
If you enter a command and then decide to stop that command from running, you can halt the command from processing any further. To stop a command from processing, press the Interrupt key sequence (usually Ctrl-C or Alt-Pause). When the process is stopped, your shell prompt returns and you can then enter another command.
ISO 9000 registered quality systems were used in the development and manufacturing of this product.
Beginning with AIX Version 4.2, the operating system is designed to support the X/Open UNIX95 Specification for portability of UNIX-based operating systems. Many new interfaces, and some current ones, have been added or enhanced to meet this specification. Beginning with Version 4.2, AIX is even more open and portable for applications.
At the same time, compatibility with previous AIX releases is preserved. This is accomplished by the creation of a new environment variable, which can be used to set the system environment on a per-system, per-user, or per-process basis.
To determine the proper way to develop a UNIX95-portable application, you may need to refer to the X/Open UNIX95 Specification, which can be obtained on a CD-ROM by ordering the printed copy of AIX Version 4.3 Commands Reference, order number SBOF-1877, or by ordering Go Solo: How to Implement and Go Solo with the Single Unix Specification, order number SR28-5705, a book which includes the X/Open UNIX95 Specification on a CD-ROM.
Beginning with AIX Version 4.3, the operating system is designed to support the X/Open UNIX98 Specification for portability of UNIX-based operating systems. Many new interfaces, and some current ones, have been added or enhanced to meet this specification. Making AIX Version 4.3 even more open and portable for applications.
At the same time, compatibility with previous AIX releases is preserved. This is accomplished by the creation of a new environment variable, which can be used to set the system environment on a per-system, per-user, or per-process basis.
To determine the proper way to develop a UNIX98-portable application, you may need to refer to the X/Open UNIX98 Specification, which can be obtained on a CD-ROM by ordering the printed copy of AIX Version 4.3 Commands Reference, order number SBOF-1877, or by ordering Go Solo: How to Implement and Go Solo with the Single Unix Specification, order number SR28-5705, a book which includes the X/Open UNIX98 Specification on a CD-ROM.
The following books contain information about or related to commands:
The following books also may be helpful:
You can order publications from your sales representative or from your point of sale.
To order additional copies of this book, use order number SC23-4116.
To order additional copies of all six volumes of AIX Version 4.3 Commands Reference, use Order Number SBOF-1877.
Use AIX and Related Products Documentation Overview for information on related publications and how to obtain them.