View and kill processes in Ubuntu

Source: Internet
Author: User
View and kill processes in Ubuntu: 1, ps-e Command 2, feng @ feng :~ $ Sudonetstat-antupActiveInternetconnections (serversandestablished) ProtoRecv-QSend-QLocalAddressForeign... Ubuntu view and kill processes: 1, ps-e Command 2, feng @ feng :~ $ Sudo netstat-antupActive Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nametcp 0 0 127.0.0.1: 631 0.0.0.0: * LISTEN 4672/cupsd tcp 0 0.0.0.0: 3000 0.0.0.0: * LISTEN 7082/ruby tcp 0 0 192.168.1.102: 41121 66.113.164.119: 80 ESTABLISHED 5709/firefox tcp 0 0 192.168.1.102: 44746 209.85.201.125: 5222 ESTABLISHED 6130/pidgin tcp 0 0 192.16 8.1.102: 54797 192.168.1.128: 3306 ESTABLISHED 7082/ruby tcp 0 0 192.168.1.102: 43466 64.4.34.77: 1863 ESTABLISHED 6130/pidgin tcp 0 192.168.1.102: 41999 64.233.189.19: 443 ESTABLISHED 5709/firefox tcp 0 0 192.168.1.102: 54900 58.251.60.53: 80 ESTABLISHED 6130/pidgin tcp 0 0 192.168.1.102: 34180 timeout: 80 TIME_WAIT-tcp6 0 0: 1: 42801 ::: * LISTEN 6863/java udp 0 0 0.0.0.0: 68 0.0.0.0: * 5161/dhcli Ent udp 0 0 0.0.0.0: 5353 0.0.0.0: * 4625/avahi-daemon: udp 0 0 0.0.0.0: 56699 0.0.0.0: * 4625/avahi-daemon: processes that killed webrick: feng @ feng: ~ $ Sudo kill 7082 Method 2: for example, Firefox is now frozen and cannot send requests accordingly. Open a terminal and enter pgrep firefox to return a value, for example, 7198. now input: kill 7198 to kill the Firefox process. You can also use the killall command. You can use the program name for killall. for example, enter the killall firefox 3 method. if the first two are not killed, run the kill-9 pid command.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.