8.93 LS (Display file and directory listing)
8.93.1 Function
The LS command displays a list of files and subdirectories in the current directory. The LS command is
only available when running Hercules under Linux and Mac OS X. For Microsoft Windows please use the
"DIR" command.
8.93.2 Syntax
Descriptive
Diagram
Êʬ¬¬ ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ
8.93.3 Parameter
None.
8.93.4 Examples
Example 1:
Show the list of files and subdirectories in the current directory.
HHC00013I Herc command: 'ls -l'
total 868
drwxr-xr-x 3 hercules hercgrp 4096 2010-11-30 15:49 backups
-rw-r--r-- 1 hercules hercgrp 2350 2008-02-18 22:48 condcode
drwxr-xr-x 2 hercules hercgrp 4096 2010-11-30 16:29 dasd
drwxr-xr-x 2 hercules hercgrp 4096 2007-02-23 21:12 docs
-rw-r--r-- 1 hercules hercgrp 1150 2008-02-18 22:48 ibcdasdi.00c
-rw-r--r-- 1 hercules hercgrp 786 2008-02-18 22:48 ibcdasdi.cnf
drwxr-xr-x 2 hercules hercgrp 4096 2010-11-30 17:06 jcl
-rw-r--r-- 1 hercules hercgrp 1758 2010-12-01 18:43 mvs.cnf
-rwxr-xr-x 1 hercules hercgrp 1229 2008-02-13 20:43 mvsdasd
-rw-r----- 1 hercules hercgrp 11032 2010-12-03 15:49 mvslog.txt
-rw-r----- 1 hercules hercgrp 0 2010-12-03 15:40 pch00d.txt
-rw-r----- 1 hercules hercgrp 330245 2010-11-30 15:12 pch013.txt
-rw-r----- 1 hercules hercgrp 0 2010-12-03 15:40 prt00e.txt
-rw-r----- 1 hercules hercgrp 38121 2010-12-03 15:43 prt00f.txt