pdmode Command
Purpose
Invokes a command in the virtual or real partitioned, directory-access mode.
Syntax
pdmode [ [ -r ] command [ arg ... ] ]
Description
The pdmode command allows you to invoke a command that you specify using the command parameter in the virtual or real partitioned directory access mode. When invoked without any argument, the pdmode command returns the partitioned directory access mode of the process which invoked this command.
If you run the pdmode command followed by the command parameter without any flag, the command is run in the virtual mode. A user can run a command in the real partitioned directory access mode by using the -r flag.
Flags
Item | Description |
---|---|
-r command [ arg… ] | Sets the new process's partitioned directory access mode to
the real mode. In this mode, partitioned directories are not transparent,
and you must be aware of partitioned directories to navigate the subtree
at a partitioned directory.
To successfully run the command with this option, users need the aix.mls.pdir.mode authorization. |
Security
All users can run the pdmode command. To successfully perform specific functions, you need the following authorization:
Item | Description |
---|---|
aix.mls.pdir.mode | Required to use the pdmode command with the -r flag. |
Exit Status
The pdmode command returns the following exit values:
Item | Description |
---|---|
0 | Successful completion. |
>0 | An error occurred. |
Examples
- To get the partitioned directory access mode, enter:
pdmode
- To run the ls command in the virtual mode, enter:
pdmode ls -l
- To run the ls command in the real mode, enter:
pdmode –r ls -l
Files
Item | Description |
---|---|
/usr/sbin/pdmode | Contains the pdmode command. |