Linux常用命令

su - root 

whoami

pwd

mkdir 

touch

rm

cd

pwd

vim 

more

cat

chmod

chown

chgrp

netstat

tar -zxvf

tar -vcf

 

防火墙
firewall-cmd --zone=public --list-ports

firewall-cmd --zone=public --add-port=80/tcp --permanent

firewall-cmd --reload


实例1:从远处复制文件到本地目录
scp root@99.48.210.85:/etc/supervisor/conf.d/cpgrouponservice.conf /etc/supervisor/conf.d/

实例2:上传本地文件到远程机器指定目录

scp /etc/supervisor/conf.d/cpgrouponservice.conf root@99.48.210.85:/etc/supervisor/conf.d/

 

posted @ 2019-07-23 14:43  Me无情  阅读(125)  评论(0编辑  收藏  举报