SQL/MX 2.x Reference Manual (H06.04+)

MXCI Commands
HP NonStop SQL/MX Reference Manual540440-003
4-36
LS Command
LS Command
Considerations for LS
Examples of LS
LS lists file statistics.
You can use LS only within an MXCI session.
-abcCdfFgilmnopqrRstux1
indicates some of the standard flags available to you through your platforms shell
ls command, as follows:
LS [-abcCdfFgilmnopqrRstux1] [file | directory]...
-a Lists all entries in directory, including those beginning with dot (.)
-b Displays nonprintable characters in octal notation.
-c Uses the time of last property change, mode change, and so on, for sorting
(when used with -t option) or for displaying (when used with -l, -g, -n, -o, or -u
options).
-C Sorts output vertically in a multicolumn format, the default.
-d Displays only the information for the directory that is named, rather than for its
contents. This option is useful with the -l option to get the status of a directory.
-f This option turns off the -l, -t, -s, and -r options and turns on the -a option; the
option uses the order in which entries appear in the directory.
-F Puts a / (slash) after each file name if the file is a directory and an * (asterisk)
after each file name if the file can be executed.
-g Displays the same information as the -l option, except for the owner, which is
not displayed.
-i Displays the inode number in the first column of the report for each file.
-l Displays the mode, number of links, owner, group, size, time of last
modification for each file, and file name.
-m Uses stream output format (a comma-separated series).
-n Displays the same information as the -l option, except that it displays user and
group IDs instead of user and group names.
-o Displays the same information as the -l option, except for the group, which is
not displayed. The -n option overrides the -o option.
-p Puts a slash after each file name if that file is a directory.
-q Displays nonprintable characters in file names as a ? (question mark)
character if output is sent to the monitor (the default destination).
-r Reverses the order of the sort, giving reverse collation, or the oldest first, as
appropriate.