View Diary:
tail -f log.txt to cycle
cat info View Files
less info View Files
head -n 10 / vv / v View / vv / v first ten lines of content
tail -n 50 / vv / v to view the last 50 lines of content / vv / v
View tomcat process:
ps -ef | grep tomcat
ps aux | grep tomcat
View the process is executed command:
ps -if
Kill the process:
kill -9 process id
ps -ef | grep tomcat: to see whether the process has been closed
See all ports of the current machine listen:
netstat -tlnp
View command port number:
netstat -antpl
Check ip address:
ifcomfig