赞
踩
netstat -an|grep 8080
ps -ef|grep java
ps -ef//查看所有正在运行的进程
ifconfig
ping ip
head /etc/man.txt
head -n 20 /etc/man.txt
tail /etc/man.txt
tail -n 20 /etc/man.txt
tail -f -n 20 /etc/man.txt
cat /etc/man.txt
cat -n /etc/man.txt
cat -b /etc/man.txt
tac /etc/man.txt
-i 不区分大小写
-c 只打印匹配的行数
-o 只显示匹配的关键字
过滤以a开头的行
grep "^a" test.txt -i -n
grep "\b$" test.txt -n
grep "i*" test.txt -n
grep ".*" test.txt -n
grep "^.*t" test.txt -n
grep "abc" test.txt
grep "[abc]" test.txt -c
grep "[abc]" test.txt -n -o
grep -E "i+" test.txt -n
grep -E "go?d" test.txt -n
grep -E "gd|god|golad" test.txt
grep -E "g(|o|ola)d" test.txt
grep -E "a{1,3}" test.txt
sed -n '10p'test.txt
sed -n '5,10p' test.txt
sed -n '5,+5p' test.txt
sed "1ahello" test.txt
sed "1,2ahello" test.txt
sed -e "1ahello" -e "3ahello" test.txt
sed '$ahello' test.txt
sed '1d' test.txt
sed '1s/lao/xin' test.txt
awk '{print $1 $2}' test.txt
awk '{print $1,$2}' test.txt
awk '{print NR}' test.txt
awk '{print NR,$0}' test.txt
awk -F: '{print $5}' test.txt
top -p 139
top -n 2
top -d 3
ps -ef | grep java
ps -a
ps -u root
netstat -a
netstat -t
netstat -u
netstat -r
netstat -i
netstat -l
free -b
free -k
free -m
free -t
free -s 10
kill 12345
kill -KILL 123456
kill -9 123456
kill -u hnlinux
kill -l
find . -name test.txt
find . -name "*.txt"
find . -type f
find . -size +1M
find . -mtime +7
find . -ctime 20
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。