Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am logged in to an ftp server and want to find a particular directory within all the directories that exist there. I am looking for a command similar to the Unix find command. Is there something like this available?

share|improve this question

closed as off-topic by Chris S Jun 27 '13 at 14:00

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about hardware or software used in a home setting are off-topic because they require answers that may not be practical for the business and support professionals here. You should try asking on Super User instead." – Chris S
If this question can be reworded to fit the rules in the help center, please edit the question.

6 Answers 6

While theoretically possible I'm not aware of any ftp-client to support this.

EDIT: As idursun pointed out Total Commander can do it.

It's not possible with regular ftp, but if you have a shell account you can login with ssh or putty and use find.

If you really have only ftp-access you could try to list all directories recursively to a file and then grep.

share|improve this answer

Total Commander can do that. Connect to ftp using the built-in ftp client and perform a normal search (Alt+F7) in the ftp tab.

share|improve this answer

There's lftp too. You can perform things like :

lftp> find . | grep WORD
share|improve this answer

Some FTPd have a file database that can be queried:> site search foo
share|improve this answer

While there are ways to do this way client side, for example by getting a directory listing, and looping through those directory to get a list; theres no way to do this server side without altering the ftpd code. You arent in a shell server side, you certainly arent spawning a shell server side, so you cant use any commands server side that arent provided by the ftp server, as other answers show.

share|improve this answer

Mount the ftp folder locally using curlftpfs.

share|improve this answer