IBM Support

List (ls) Command

Question & Answer


Question

List (ls) Command

Answer

List (ls) Command

Use the List (ls)command to generate a list of available files. Most customers preferto use the ls command instead of the Directory(dir) command because the output is easierto parse.

When you use this command in the /send directorythe file names displayed can be used when you move the files to the /send/commit directory.

Whenyou use this command in the /receive directorythe file names displayed can be used when you download the files.

Sample ls Command

The following is a samplescript using the ls command.

ClientCommand:

ls

ServerResponse:

200 PORT command successful.150 Opening ASCII mode data connection.322329310601390029614837_1226 Transfer complete.ftp: 1234 bytes sent in 0.00Seconds 2345.00Kbytes/sec.

Filenames by default are a unique 24-digit identifier with an underscoreby the attachment number appended.


"

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
08 December 2018

UID

ibm10758193