linux 下如何强制关闭正在运行的程序
今天在linux下遇到了一个问题,就是用bashee播放音乐的时候,
后来出现了bashee没有反应的情况
于是想到了强制杀死这个进程
上网查了一下,有的人是这样做的
Ctrl+Alt+F1
login
$ ps -A
$ kill -9 ****
$ exit
Alt+F7
也可以就是直接在终端下运行
$ps -A
$kill -9 ******
这样子就行了,比如我要杀掉mplayer的进程,
运行
$ps -A
出现
$ ps -A
PID TTY TIME CMD
1 ? 00:00:01 init
2 ? 00:00:00 kthreadd
3 ? 00:00:00 migration/0
4 ? 00:00:00 ksoftirqd/0
5 ? 00:00:00 watchdog/0
6 ? 00:00:00 events/0
7 ? 00:00:00 khelper
59 ? 00:00:00 kblockd/0
62 ? 00:00:00 kacpid
63 ? 00:00:00 kacpi_notify
128 ? 00:00:00 cqueue/0
130 ? 00:00:00 ksuspend_usbd
135 ? 00:00:00 khubd
138 ? 00:00:00 kseriod
171 ? 00:00:00 pdflush
172 ? 00:00:00 pdflush
173 ? 00:00:00 kswapd0
215 ? 00:00:00 aio/0
349 ? 00:00:00 pccardd
363 ? 00:00:00 kpsmoused
403 ? 00:00:00 ata/0
404 ? 00:00:00 ata_aux
407 ? 00:00:00 scsi_eh_0
408 ? 00:00:00 scsi_eh_1
418 ? 00:00:00 kjournald
450 ? 00:00:00 kauditd
482 ? 00:00:00 udevd
1212 ? 00:00:00 kmpathd/0
1239 ? 00:00:00 kjournald
1240 ? 00:00:00 kjournald
1663 ? 00:00:00 dhclient
1724 ? 00:00:00 restorecond
1743 ? 00:00:00 rpcbind
1762 ? 00:00:00 rpc.statd
1790 ? 00:00:00 rpciod/0
1798 ? 00:00:00 rpc.idmapd
1854 ? 00:00:00 pcscd
1864 ? 00:00:00 rsyslogd
1868 ? 00:00:00 rklogd
1882 ? 00:00:00 auditd
1884 ? 00:00:00 audispd
1898 ? 00:00:00 dbus-daemon
1910 ? 00:00:00 setroubleshootd
1923 ? 00:00:00 automount
1941 ? 00:00:00 acpid
1950 ? 00:00:00 hcid
1956 ? 00:00:00 btaddconn
1957 ? 00:00:00 btdelconn
1969 ? 00:00:00 krfcommd
1973 ? 00:00:00 bluetoothd-serv
1981 ? 00:00:00 sshd
2002 ? 00:00:00 sendmail
2011 ? 00:00:00 sendmail
2021 ? 00:00:00 console-kit-dae
2093 ? 00:00:00 crond
2101 ? 00:00:00 atd
2111 ? 00:00:00 avahi-daemon
2112 ? 00:00:00 avahi-daemon
2129 ? 00:00:00 cupsd
2138 ? 00:00:00 hald
2139 ? 00:00:00 hald-runner
2190 ? 00:00:00 hald-addon-inpu
2193 ? 00:00:00 hald-addon-acpi
2208 ? 00:00:00 yum-updatesd
2213 ? 00:00:00 gam_server
2220 ? 00:00:01 hald-addon-stor
2232 ? 00:00:00 anacron
2293 tty2 00:00:00 mingetty
2295 tty3 00:00:00 mingetty
2298 tty4 00:00:00 mingetty
2301 tty5 00:00:00 mingetty
2304 tty6 00:00:00 mingetty
2306 ? 00:00:00 gdm-binary
2363 ? 00:00:02 gdm-binary
2367 ? 00:00:00 gdm-binary
2368 tty7 00:05:30 X
2395 ? 00:00:00 gnome-keyring-d
2397 ? 00:00:00 gnome-session
2478 ? 00:00:00 Xsession <defunct>
2509 ? 00:00:00 ssh-agent
2512 ? 00:00:00 dbus-launch
2513 ? 00:00:01 dbus-daemon
2522 ? 00:00:00 gconfd-2
2526 ? 00:00:03 gnome-settings-
2527 ? 00:00:00 scim-launcher
2533 ? 00:00:07 pulseaudio
2538 ? 00:00:00 scim-helper-man
2539 ? 00:00:17 scim-panel-gtk
2541 ? 00:00:00 scim-launcher
2544 ? 00:00:00 gconf-helper
2545 ? 00:00:12 metacity
2547 ? 00:00:04 gnome-panel
2548 ? 00:02:11 nautilus
2552 ? 00:00:00 gnome-volume-ma
2554 ? 00:00:00 bonobo-activati
2566 ? 00:00:00 bluetooth-apple
2574 ? 00:00:00 gnome-vfs-daemo
2577 ? 00:00:01 python
2582 ? 00:00:00 puplet
2585 ? 00:00:00 nm-applet
2588 ? 00:00:00 pam-panel-icon
2589 ? 00:00:00 pam_timestamp_c
linux下的sleep函数2590 ? 00:00:00 gnome-power-man
2597 ? 00:00:fs-3g
2601 ? 00:00:00 /usr/bin/sealer
2611 ? 00:00:10 gnome-screensav
2616 ? 00:00:fs-3g
2629 ? 00:00:10 wnck-applet
2632 ? 00:00:00 trashapplet
2668 ? 00:00:00 mapping-daemon
2676 ? 00:00:00 gam_server
2681 ? 00:00:02 tomboy
2684 ? 00:00:00 notification-ar
2687 ? 00:00:00 fast-user-switc
2690 ? 00:00:00 clock-applet
2693 ? 00:00:00 mixer_applet2
2703 ? 00:00:00 firefox
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论