while ((1)) ;do du -sh * ; sleep 2; done 查看拷贝进度
./apachectl stop 关闭apache
./apachectl start 起动apache
netstat -ano
md5sum -c *.md5
du -sh dirname 查看文件夹大小
tar -czvf bashtimelibtest.tar.gz bashtimelibtest/ 压缩
md5sum FileName.tar.tgz > FileName.tar.tgz.md5 生成一个文件的md5
grep -r "aaaaaaaaa.ccc:6880" * 查看当前目录下所有文件包括字符串的行。
mysql -uusername -ppassword -P3306 -h`xxxxx`
df 查看磁盘空间
netstat -nap 端口号查进程
/usr/sbin/lsof -i 端口号查进程
iostat -x 2 查看io状态,每2秒刷新
./mysqld_safe & 启动Mysql
top 查看各进程占用资源情况
ps aux 看进程
netstat -ano 端口号
hostname -i 查询本机Ip
如何用find查询包含 某字符串的 文件
#grep -i -r abc * or #grep -ir abc *
-i ignore case
-r recursive
40万+

被折叠的 条评论
为什么被折叠?



