LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to ftp a dir in RH9 (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-ftp-a-dir-in-rh9-444085/)

v1nc3nt 05-12-2006 06:31 AM

How to ftp a dir in RH9
 
i can ftp files using the following command

put /path/filename /path/filename

it will however not allow me to do the same with directories

how do i ftp the entire directory

muha 05-12-2006 07:31 AM

You could use mput.
Use lcd <~/home/somelocaldir> to change to the local dir you want to upload.
mput * will send over all files from the current localdir to server-dir.
Type p when it askes for: [anpqy?]?
to go into 'prompt off' (non-interactive) mode, to not confirm each file to upload.

pixellany 05-12-2006 08:35 AM

ftp will not put or get directories--only files

You can use tar to put everything in one file---or mput and mget


All times are GMT -5. The time now is 10:06 PM.