linux

FetchLinux:Linux下的命令行工具

小樊
42
2025-12-26 09:04:47
栏目: 智能运维

FetchLinux 命令行工具速览

工具定位与功能

安装与版本验证

常用命令速查

功能 命令示例
连接测试 fetchlinux user@remote_host
下载文件 fetchlinux user@remote_host:/remote/file /local/path
下载目录 fetchlinux user@remote_host:/remote/dir /local/path -r
上传文件 fetchlinux -u user@remote_host /local/file /remote/path
上传目录 fetchlinux -u user@remote_host /local/dir -r /remote/path
列远程目录 fetchlinux user@remote_host ls /remote/path
删除远程文件/目录 fetchlinux user@remote_host rm /remote/file_or_dir
远程修改权限 fetchlinux user@remote_host chmod 755 /remote/file_or_dir
指定私钥 fetchlinux -i /path/to/key user@remote_host
指定端口 fetchlinux user@remote_host -p 2222
使用代理 fetchlinux user@remote_host -x http://proxy:port
通配符下载 fetchlinux user@remote_host:/remote/*.txt /local/path
说明:参数如 -u/-r/-i/-p/-x 为常见选项,具体以所安装版本的帮助信息为准(fetchlinux --help)。

实用技巧与最佳实践

名称歧义说明

0
看了该问题的人还看了