压缩 tar.gz
tar czvf webconfig.tar.gz webconfig/
解压
tar zxvf mcp_webconfig.tar.gz
tar.bz2
tar xjvf webconfig.tar.gz webconfig/
scp(远程复制到本地)
scp root@10.75.58.27:/root/storehouse/mcp_webconfig.tar.gz mcp_webconfig.tar.gz
本地复制到远程
scp filename/(-r directory) root@10.75.58.27:/root/storehouse/
ssh(远程连接)
ssh root@10.75.58.27
IP、子网掩码文件地址
vi /etc/sysconfig/network-scripts/ifcfg-eth0
查看自启命令
ntsysv
shell获取本机IP
ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'