The ldir command returns information about files on the local host. Details on local files can also be obtained by using the lls command.
ldir |
[<local-file>] [, <fstatus-operand-list>] |
<local-file>
ldir is mapped to the BS2000 command FSTATUS in the DMS file system. <local-file> must be a fully or partially qualified file name permitted in the FSTATUS command.
ldir is mapped to the ls -l command in the POSIX file system. <local-file> must be a legal fully or partially qualified file name.
If no local file is specified, information on all files in the current working directory is displayed.
<fstatus-operand-list>
fstatus-operand-list represents any other operands permitted in the FSTATUS command. The FSTATUS command is described in the “User Commands (ISP Format)” manual.
Example
Query the local working directory.
lpwd Local directory is :5:$TCPTEST.MAN.
Display information on DMS files with the SAM file attribute in the working directory.
ldir ,fcbtype=sam 0000003 :5:$TCPTEST.MAN.ANTON.PROT 0000003 :5:$TCPTEST.MAN.P.TRC 0000003 :5:$TCPTEST.MAN.P.USR 0000003 :5:$TCPTEST.MAN.SAM.NACH.MSDOS.ANTON.UPD 0000003 :5:$TCPTEST.MAN.SAM.NACH.MSDOS.BERTA.1 0000003 :5:$TCPTEST.MAN.SAM.NACH.SINIX.ANTON 0000006 :5:$TCPTEST.MAN.SAM.VON.SINIX.BERTA 0000003 :5:$TCPTEST.MAN.SAM.VON.SINIX.BERTA.1 0000003 :5:$TCPTEST.MAN.SAM.VON.SINIX.BERTA.2 0000006 :5:$TCPTEST.MAN.SAM.VON.SINIX.CAESAR :5: PUBLIC: 30 FILES. RES= 99, FREE= 51, REL= 0 PAGES