SQL/MX 2.x Reference Manual (G06.24+, H06.03+)
MXCI Commands
HP NonStop SQL/MX Reference Manual—523725-004
4-37
Considerations for LS
To display all the command-line arguments that your shell supports, at the MXCI
prompt, type:
sh man ls;
A reference page of the LS command explains the command-line arguments that
your shell supports. At the end of the reference page, the MXCI prompt
automatically appears.
Considerations for LS
Output
The LS command writes to the standard output file the names of the specified files,
along with any other information you ask for by specifying options. If logging is
enabled—that is, you have issued the LOG command in the current session—the LS
command still writes to the standard output file, not to the log file.
Defaults
If you do not specify a file or directory, LS displays the files in the current directory. By
default, LS displays information by file name.
Examples of LS
•
Change to the /usr/jbrook directory and display the files in the directory:
>>cd /usr/jbrook;
>>ls;
logjb myfile sh_history
•
Display detailed information about the files named logjb and myfile in the
/usr/jbrook directory:
>>ls -l logjb myfile;
-rw-rw-rw- 1 PUBS.JBROOK PUBS 4856 Mar 6
-R Lists all subdirectories recursively.
-s Gives space used in 512-byte units (including indirect blocks) for each entry.
-t Sorts by time of last modification (latest first) instead of by name, before
sorting the operands by the collating sequence.
-u Uses the time of the last access instead of the time of the last modification for
sorting (when used with the -t option) or for displaying (when used with the -l
option). The -u option has no effect unless used with either the -t or -l option or
both.
-x Sorts output horizontally in a multicolumn format.
-1 Forces an output format of one entry per line: this is the default format when
output is not directed to a monitor.