bash -c "cmd string" 等价于|| /bin/bash cmd string
# 1)、从本地复制到远程 scp local_file remote_username@remote_ip:remote_folder # 2)、复制目录命令格式 scp -r local_folder remote_username@remote_ip:remote_folder
# 查看磁盘io iotop -oP # 打包 tar zcf target.tar.gz ./source # ssh密钥生成 ssh-keygen -t rsa # 端口占用查看 netstat -anp|grep 80 # 查看网络配置 cat /etc/sysconfig/network-script/ifcfg-eth0 # 查看进程 ps -aux| grep logstash # 查看shell执行过程 sh -x test.sh
# 物理cpu个数 grep 'physical id' /proc/cpuinfo | sort -u # 物理cpu核数 grep 'core id' /proc/cpuinfo | sort -u | wc -l # 逻辑cpu个数 grep 'processor' /proc/cpuinfo | sort -u | wc -l
菜鸟教程-Linux scp命令 <br/>html