Linux提高工作效率的命令

find ./ -name 'laun*'|xargs grep 8881  在laun开头的文件内查找8881

find ./ -name 'laun*'

grep -rn --include='laun*' 8881 ./  在laun开头的文件内查找8881

du -sh *  当前目录磁盘占用

du -s * | sort -nr | head  选出排在前面的10个

df -h  文件系统的状态信息

netstat -tunlp|grep 8679  查看端口号占用情况

ps -ef |grep java  进程查看命令

ps -ef |grep <PID>

cd /proc/<PID>&ll  查进程工作目录

猜你喜欢

转载自www.cnblogs.com/erbing/p/11244638.html