Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
ls(1) OSS Shell and Utilities Reference Manual
There are three main ways to format the output:
• List entries in multiple columns by specifying either the -C or -x flag. -1 is the default
format, when output is sent to a terminal.
• List one entry per line.
• List entries in a comma-separated series by specifying the
-m flag.
The ls command attempts to determine the number of byte positions in the output line. If ls can-
not get this information, it uses a default value of 80. Note that columns may not be smaller than
20 bytes or larger than 400 bytes.
Access Control Lists (ACLs)
If a file has optional ACL entries: |
• The file group permission bits displayed by the ls command are the class ACL entry per- |
mission bits instead of the file group ACL entry permission bits.
• The output of the command when the -l, -n, -g,or-o flags are used displays a plus (+) |
sign after the permissions of the file. However, if the ls command is executed remotely |
from a system that does not support OSS ACLs, the plus (+) sign will not be displayed |
for a file that has optional ACL entries.
To list the contents of an ACL, use the getacl command. |
For more information about ACLs, see the acl(5) reference page. |
Environment Variables
The following environment variables affect the execution of the ls command:
LC_COLLATE
Determines the collating sequence.
LC_TIME Controls the format of the date and time.
UTILSGE Specifies that HP extensions to the root directory should be omitted when the ini-
tial directory is root and a recursive operation occurs in an OSS shell command.
Application programs that test this variable might also honor its settings.
The UTILSGE value can be any of the following:
NOE Omit the /E directory.
NOG Omit the /G directory.
NOG:NOE Omit both the /G and /E directories.
The effect of assigning a value to the UTILSGE environment variable is the
same as specifying the -W NOG or -W NOE flag in the command.
5−80 Hewlett-Packard Company 527188-007