linux文件上传下载

上传本地文件到服务器:
scp 文件名 账号@服务器IP:文件路径
eg:scp test.txt [email protected]:/tmp/
服务器文件下载到本地:
scp 账号@服务器IP:文件 本地路径
eg:scp [email protected]:/tmp/test.txt ./

windows使用xshell工具上传下载
文件=》属性=》文件传输
服务器安装lrzsz
yum install lrzsz

上传:xshell输入:rz命令 弹出框选择要上传的文件
下载:xshell输入:sz 文件路径 弹出框选择下载保存路径

echo $LANG可以查看当前使用的系统语言
查看是否有中文语言包可以在终端输入 locale命令,如有zh cn 表示已经安装了中文语言
可以通过网上下载安装中文语言包yum -y groupinstall chinese-support

linux解压缩zip文件
yum install -y unzip zip

实例:
压缩服务器上当前目录的内容为xxx.zip文件
zip -r xxx.zip ./*
解压zip文件到当前目录
unzip filename.zip

猜你喜欢

转载自www.cnblogs.com/marshhu/p/9728970.html