ps a查看进程

1270阅读 0评论2014-05-22 tkchks
分类:LINUX

使用ps a查看进程
使用kill干掉进程

  1. root@server9:/data/Collector# nohup sh startDownloadMain.sh &
  2. [1] 9065
  3. root@server9:/data/Collector# -bash: root@server9:/data/Collector#: No such file or directory
  4. [1] 9044
  5. root@server9:/data/Collector# nohup: ignoring input and appending output to `nohup.out'
  6. root@server9:/data/Collector# ps a
  7. PID TTY STAT TIME COMMAND
  8. 882 tty4 Ss+ 0:00 /sbin/getty -8 38400 tty4
  9. 888 tty5 Ss+ 0:00 /sbin/getty -8 38400 tty5
  10. 900 tty2 Ss+ 0:00 /sbin/getty -8 38400 tty2
  11. 901 tty3 Ss+ 0:00 /sbin/getty -8 38400 tty3
  12. 903 tty6 Ss+ 0:00 /sbin/getty -8 38400 tty6
  13. 949 tty1 Ss+ 0:00 /sbin/getty -8 38400 tty1
  14. 7304 pts/0 Ss+ 0:00 -bash
  15. 8378 pts/1 Ss 0:00 -bash
  16. 9044 pts/1 S 0:00 sh startDownloadMain.sh
  17. 9045 pts/1 Sl 0:00 java -jar DownloadMain.jar
  18. 9060 pts/1 R+ 0:00 ps a
  19. root@server9:/data/Collector# kill 9044
  20. root@server9:/data/Collector# kill 9045
  21. [1]+ Terminated nohup sh startDownloadMain.sh


上一篇:mysql: select all items from table A if not exist in table B
下一篇:linux查看目录占用的磁盘空间大小