清除某个用户的密码 passwd -d userName
在两台机器上拷贝文件 scp ./file Server:/var/www
将文件的内容添加到另外一个文件的末尾 cat file1.txt>>file2.txt
生成公钥 ssh-keygen –t rsa
切换到userName账户 su userName
重启nginx service nginx restart
重启ghost NODE_ENV=production forever start index.js
把目录owner改为某个用户 sudo chown -R userName:userName floder
磁盘使用情况 df -h
查看当前文件夹下目录或文件大小 du -h --max-depth=1
替换当前目录下所有文件中的sinaapp.com为iyuxy.top sed -i "s/sinaapp.com/iyuxy.top/g" grep sinaapp\.com -rl ./
查看端口占用情况: lsof -i:8088
netstat -ntlp