Bootstrap FreeKB - FTP and Secure FTP (FTPS, SFTP) - list files on the local system using the !dir !ls commands
FTP and Secure FTP (FTPS, SFTP) - list files on the local system using the !dir !ls commands


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)
  • 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 lpwd (local present working directory) command to determine your current local working directory and the lcd (local change directory) command to change your local present working directory.

In this example, the !dir command is used to list the files in the present working directory on a local Windows system.

ftp> !dir
03/24/2022 09:14 PM  32,768 foo.txt
03/26/2019 12:26 AM  18,559 bar.txt

 

Or you can specify the directory that you want to list.

ftp> !dir C:\Users\john.doe
07/09/2021 05:29 AM  <DIR>  Documents
07/09/2021 05:29 AM  <DIR>  Downloads
07/09/2021 05:29 AM  <DIR>  Pictures
03/24/2022 09:14 PM  32,768 foo.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 36e53a in the box below so that we can be sure you are a human.