1,如何查看tomcat 进程:
ps -ef|grep tomcat
ps -aux|grep tomcat
jstack pid |less
history -r / -T 查看命令历史
echo $SHELL 查看用户用了哪种shell
stty -echo 关掉终端键盘输入,一般用于输入密码
stty echo 打开终端键盘输入
command > file 将标准输出重定向到文件,覆盖原有内容
command >>file 将标准输出重定向到文件,追加内容
command > file 2>&1, 将标准错误和标准输出,写入文件.
finger -l username 查看用户默认的shell类型.