1832103 Members
3187 Online
110038 Solutions
New Discussion

Re: FTP

 
SOLVED
Go to solution
M. Tariq Ayub
Regular Advisor

FTP

Hi,

How can i list the lcocal directory content while i am in a ftp session.

Tariq
7 REPLIES 7
Rajeev  Shukla
Honored Contributor

Re: FTP

Hi,
In normal ftp you dont have that option.
Use sftp of openssh (secure shell) that give you this option to list the local directory.
Steven E. Protter
Exalted Contributor

Re: FTP

ls -la will give a full listing on the ftp server.

In a normal ftp session, you need to break out to look at the lcd directory.

stty -a

If you have susp=^Z

You can break out of the ftp session and get a local shell.

ctrl-z will break you out to do an ls command.

you can set the suspend key in /etc/profile or .profile

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Tully
Honored Contributor

Re: FTP

You can't in the middle of normal operation, you either need to break out or get a snapshot beforehand. As suggested your better off using 'sftp' (part of openssh) and use the 'lls' option.
Anyone for a Mutiny ?
Rajeev  Shukla
Honored Contributor
Solution

Re: FTP

Hang on it got it..
ftp>!ls

use "!ls" in ftp session that will solve you'r problem

T G Manikandan
Honored Contributor

Re: FTP

From windows
ftp>!dir

from unix
Ftp>!ls

Any command prefixed by "!" will work on the local system
Michael Tully
Honored Contributor

Re: FTP

That's good, I haven't wasted the day ... I've learned something about 'ftp' (Just goes to show, you can teach old dog new tricks)
Anyone for a Mutiny ?
Rajeev  Shukla
Honored Contributor

Re: FTP

The same i was thinking Michael Tully, but suddenly i remembered, hang on i bet "!" should let you out from any session and run the command ...
any way fluke sometimes works..