linux一些常用命令

netstat -ntlp   //查看当前所有tcp端口·

ps -ef |grep

 tail -n 10000 catalina.out > catalina

1、查看文本文件头部n行
head -n 200 filename   #--200可替换为任一数字
2、查看文本文件末尾n行
tail -n 200 filename   #--200可替换为任一数字
3、查看文本文件行数
wc -l filename


rm -rf console  ;删除命令,-r 递归删除,-f强制删除

jar -xvf www.war   解压

tar -zxvf jdk-7u45-linux-x64.tar.gz

unzip -oq console.war -d console

猜你喜欢

转载自187363147.iteye.com/blog/2390785