Products
GG网络技术分享 2025-11-13 00:08 3
bash
ftpserverip="192.168.1.1" shellftp "$ftpserverip"

cd "/remote/directory"
ls
get "remote_file.txt"
put "/path/to/local/file" "/remote/directory"
quit
这玩意儿脚本展示了怎么用shellftp连接到FTP服务器, 导航到远程目录,列出目录内容,下载和上传文件,然后退出shellftp。你需要替换ftp_server_ip /remote/directoryremote_file.txt/path/to/local/file为你实际的FTP服务器IP地址、远程目录、要下载的文件名和本地文件路径呃。
Demand feedback