从FTP下上载整个目录命令 LINUX打开WINDOWS文件共享方法

从FTP上下载整个目录命令 LINUX打开WINDOWS文件共享方法
wget -m ftp://xxxx/dirname — ftp-user=user –ftp-password=password

如wget -m ftp://192.168.8.25/VM_XP

这样将会从ftp上匿名下载VM_XP这个文件到本地。
m 参数表示镜像指定的目录 等同于   -r -N -l inf –no-remove-listing
能实现此功能的另一个办法是
wget -rtxx ftp://172.16.12.111/ppp/*
r是断点绪传,t是失败后可重新联接的xx次。
例如从ftp上直接下载整个目录到本地,我使用的完整命令是
wget   -nH –cut-dirs=1 -m –ftp-user=szh –ftp-password=szhftp ftp://192.168.13.17/Server_CDROM

从ftp下载时与目标路径相关的两个参数:

-nH
        –no-host-directories
            Disable generation of host-prefixed directories. By default, invoking Wget with -r
            http://fly.srk.fer.hr/ will create a structure of directories beginning with
            fly.srk.fer.hr/.  This option disables such behavior.
–cut-dirs=number
            Ignore number directory components.   This is useful for getting a fine-grained control
            over the directory where recursive retrieval will be saved.

LINUX下挂载WINDOWS共享目录,实现文件共享!

mount -t smbfs -o username=Administrator,password=Password //10.10.10.94/fileNet /opt/fileNet

从FTP下上载整个目录命令 LINUX打开WINDOWS文件共享方法

相关文章:

你感兴趣的文章:

标签云: