ubuntu重啟 強行關閉應用程式
強行關閉QQ例子:
administrator@ubuntu:/$ ps -ef|grep QQ*
1000 4448 1 0 10:16 ? 00:00:00 C:\Program Files\Tencent\QQ\Bin\QQExternal.exe /load FlashService.dll
1000 5021 1 3 10:21 ? 00:00:17 C:\Program Files\Tencent\QQ\Bin\QQ.exe /noAutoLogin /noMultiLogin
1000 5070 1 1 10:21 ? 00:00:07 C:\Program Files\Tencent\QQ\Bin\QQExternal.exe 6EB58C98DB66428499320D6C6A3655F5
1000 5186 2826 0 10:29 pts/0 00:00:00 grep --color=auto QQ*
administrator@ubuntu:/$ kill -9 4448
administrator@ubuntu:/$ kill -9 5021
administrator@ubuntu:/$ ps -ef|grep QQ*
administrator@ubuntu:/$ kill -9 5021
-------------------------------------------------------華麗的分割線-----------------------------------------------------------------------------------------------
1關機命令 shutdown
好像ubuntu的終端中預設的是目前使用者的命令,只是普通使用者,因此在終端器中可以使用sudo -sh 轉換到管理員root使用者下執行命令。
1)shutdown –help
可以查看shutdown命令如何使用,當然也可以使用man shutdown命令。
2) shutdown -h now 現在立即關機
3)shutdown -r now 現在立即重啟
4)shutdown -r +3 三分鐘後重啟
5)shutdown -h +3 “The System will shutdown after 3 minutes” 提示使用者將在三分鐘後關機
6)shutdown -r 20:23 在20:23時將重啟電腦
7)shutdown -r 20:23 & 可以將在20:23時重啟的任務放到後台去,用