This command, for use with LM-NT-OS/2 servers, displays the directory listing of remote files. The listing displays the volume name, file names, file sizes, file modification time stamps, number of bytes used, and number of bytes free on the disk. The format of the listing depends on the negotiated protocol. If UNIX and the server negotiated LANMAN 2.0 or higher as the protocol, this command uses the long file name convention; otherwise, it uses the DOS 8.3 file name convention.
TNHOME/usr/bin
rudir [-u username] [{-p password|-P}] [-C charset] [-a{s|h}] //servername/object/path
-u username |
Specify the name of the user for the remote server. |
-p password |
Specify username's password on the command line. No subsequent password prompt appears. |
-P |
Prompt for username's password. The password does not display as you type it. This option proves especially if you want to include the command but not the password in a batch file. |
-C charset |
Specify the client character set. If not specified, the character set defaults to builtin-codepage-437. Valid character sets include: builtin-mac-roman builtin-iso-latin-1 builtin-unicode builtin-codepage-437 You can use additional character sets if you install TAS. |
-a |
Include files of one or both of the following types: s -- System files h -- Hidden files If you do not include the -a option, rudir does not list system and hidden files and directories. |
servername |
Specify the name of the remote server. |
object |
Specify the name of a shared object on a remote LM-NT-OS/2 server. |
path |
Specify a full or relative directory and file on the remote server. The path specification permits wildcards. |
If you include no -a option, this command finds only the files marked Read-Only, Directory, and Archive.
Use the following command to list the files in the subdirectory word/doc of the shared object root on the server demopc, prompt for a password, and use the "euc-jp" character set:
rudir -P -C euc-jp //demopc/root/word/doc/*.* |
Use the following command to list all files in the top level of the shared object root with password mypasswd on the server demopc, including system and hidden files:
rudir -p mypasswd -ash //demopc/root/*.* |
Use the command below to list all files with the .exe extension on the server columbia and prompt for a password, as user salmon. The object, dev, has the path fry.
rudir -u salmon -P //columbia/dev/fry/*.exe |