Question & Answer
Question
Directory (dir) Command
Answer
Directory (dir) Command
Use the Directory (dir) commandto generate a detailed listing of all files currently available fordownload in the /receive directory.
Thefollowing is an example script using the dir command.An explanation of each field within the directory command output followsthe example script.
Client Command:
dir
Server Response:
| -rw-rw-rw | 1 | SX123001 | users | 1034 | Apr | 13 | 21:15 | 322322850902129928169054_1 |
| -rw-rw-rw | 1 | SX123001 | users | 591 | Apr | 14 | 15:11 | 322329310601390029614837_1 |
Field descriptions
- Column
- Definition
- File Type/
File Permissions Values for this field are:
- d (only in the first position)?directory
- r?read permission
- w?write permission
- x?execute permission
For files the values here willalways be -rw-rw-rw.
For directories the values herewill always be -drw-rw-rw.
- Links
For files the value in this column will always be 1.
Fordirectories the value in this column will always be 2.
- FTP User ID
Your FTP user ID.
- Group
The value in this column will always be users.
- File Size
The size of the file in bytes.
- Processing Date and Time
For data to be downloaded this value is the time the networkprocessed the data.
For data that has been uploaded this valueis the time of arrival on the Sterling B2B CollaborationNetwork FTPserver.
For directories this value is the time you logged in.
Thetime is formatted as HH:MM on a 24-hour clock (in UTC time).
- File Name
The name of the file.
For data to be downloaded thisfile name is used in get and mget commands.
Was this topic helpful?
Document Information
Modified date:
08 December 2018
UID
ibm10758195