Some common commands in linux

netstat -ntlp //View all current tcp ports

ps -ef |grep

 tail -n 10000 catalina.out > catalina

1. View the header n lines of the text file
head -n 200 filename #--200 can be replaced with any number
2 , View n lines at the end of the text file
tail -n 200 filename #--200 can be replaced with any number
3, view the number of lines in the text file
wc -l filename


rm -rf console ; delete command, -r delete recursively, -f force delete

jar -xvf www.war decompress

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

unzip -oq console.war -d console

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326977523&siteId=291194637