Bootstrap FreeKB - FTP and Secure FTP (FTPS, SFTP) - list files on the FTP system using the ls command
FTP and Secure FTP (FTPS, SFTP) - list files on the FTP system using the ls command


There are a number of ways to securely transfer files between systems.

  • The PSFTP command line tool can be used to for SFTP (Secure FTP) to securetly transfer files between systems, from a remote system to your PC, or vice versa. This has the advantage of being able to transfer files between Linux, Mac and Windows systems.
  • The scp command (Secure Copy Protocol) could be used to securely transfer files between Linux systems.

There are a number of different tools that can be used to connect to an FTP / FTPS / SFTP server.

  • Windows or Linux command line prompt
  • Scripting tool (e.g. Bash, Perl, PowerShell, Python, et cetera)
  • The PSFTP command line tool PSFTP.exe (see Installing PuTTY PSFTP)

The following commands are used to list the files in a directory on the local system or on the remote FTP system.

  • dir command list files on Windows FTP system
  • ls command list files on Linux FTP system
  • !dir command list files on local Windows system
  • !ls command list files on local Windows system

You may want to also use the pwd (remote present working directory) command to determine your current working directory on the remote FTP system and the cd (change directory) command to change your present working directory on the remote FTP system.

In this example, the ls command is used to list the files in the present working directory on the remote FTP system.

ftp> ls
-rw-rw-r--    1 john.doe john.doe   4373 Aug 24 08:44 foo.txt
-rw-rw-r--    1 jane.doe jane.doe   4463 Aug 24 09:05 bar.txt

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter b98f97 in the box below so that we can be sure you are a human.