Is there a way to specify the contents of a local directory in ftp?

lcd modifies local directories.

and ls lists the files in the remote directory.

What I would like is lls to list files in a local directory.

Is it possible? I know that I can always open another terminal, but I'm lazy!

+63
ftp ls
Mar 18
source share
2 answers

Yes:

!dir

! tells the client to execute a local shell command. This is tested using both Windows ftp client clients and Fedora. Please note that the actual command may depend on your OS, for example !ls may be required on other versions of Unix / Linux.




For what it costs, the team ! specified in the ftp client help system:

 ftp> help ! ! escape to the shell 
+111
Mar 18
source share

To display files locally, use the following command

 !dir 

Or use the following command

 !ls 

! means locally not remote.

lcd works but ! cd does not work, and lpwd does not work, but ! pwd works.

+3
Jun 18 '16 at 18:53
source share



All Articles