Ctrl+Altr+Del in Windows, then how about RH?
Dear all,
I always ask a simple question, this is bcz i am totally a newbie to linux. As the day goes by, i hope i can be one of the RH experts as what u ppl do. but still, i hope u ppl will not mind if this kind of "Simple" question is being ask by me. Now, after a couple of month of sitting in the RH box, i start feeling that RH is just a powerful OS compared with windows. and i start loving RH, and start isolating windows. Oops, hope the windows users don't mind of this words. My question is: in windows, if i have an unresponse application, then, i usually, press ctrl+alt+del to kill the application and then start a new one. so then, how about in RH? how to kill the hanged application and still continueing the rest of the applications? Thanks in advance. Cheers, yenonn |
From a terminal window (I assume you are using a GUI), type "ps- eaf"
This will show you the processes running. Then type "kill PID" where PID is the process number - shown in the PID coloumn when you used the ps command. For more info - which you WILL need, use "man ps" and "man kill". Another handy option is Ctrl-Alt-Backspace - this kills X and should drop you into the console. While LINUX shouldn't need the Windows three finger salute and endless reboots, X sometimes hangs, so you kill X and restart it (type "startx" from the console. Hope this helps Jim |
usually it wont be a problem, but if you need it then bring up a run command and type xkill or else bring up an eterm and do the same thing, it will give you an odd cursor just click on the program you want to kill
otherwise, you can hit ctrl+alt+bckspc this will kill your xsession which will probly kill all of your applications that will drop you to console and you can type startx to bring back your gui, as good as a reboot but 20X as fast </edit> ahh someone posted before me </edit> |
Don't worry we were all new to Linux at one point. You can do this by whats called "killing" a process. Open up a shell and do the following command:
top The top command will show you what processes are running and some details about each command. Lets say you issue the top command and see a screen like this: 7:25pm up 10:50, 3 users, load average: 0.03, 0.30, 0.61 104 processes: 99 sleeping, 3 running, 2 zombie, 0 stopped CPU states: 2.5% user, 1.9% system, 0.0% nice, 95.4% idle Mem: 255268K av, 244860K used, 10408K free, 0K shrd, 3572K buff Swap: 522072K av, 66712K used, 455360K free 119556K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 2144 root 5 -10 43976 22M 3340 S < 2.5 9.0 107:51 X 2219 vince 15 0 1036 1008 968 S 0.9 0.3 2:07 autorun 3554 vince 15 0 1060 1060 840 R 0.7 0.4 0:00 top 2947 vince 15 0 12920 11M 10724 R 0.3 4.6 0:02 kdeinit 1 root 15 0 472 436 416 S 0.0 0.1 0:04 init 2 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd 3 root 15 0 0 0 0 SW 0.0 0.0 0:00 kapmd 4 root 34 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU0 5 root 15 0 0 0 0 SW 0.0 0.0 0:00 kswapd 6 root 25 0 0 0 0 SW 0.0 0.0 0:00 bdflush 7 root 15 0 0 0 0 SW 0.0 0.0 0:00 kupdated 8 root 25 0 0 0 0 SW 0.0 0.0 0:00 mdrecoveryd 12 root 15 0 0 0 0 SW 0.0 0.0 0:01 kjournald 68 root 15 0 0 0 0 SW 0.0 0.0 0:00 khubd 163 root 15 0 0 0 0 SW 0.0 0.0 0:00 kjournald 783 root 17 0 796 516 516 S 0.0 0.2 0:00 dhclient 824 root 15 0 544 512 468 S 0.0 0.2 0:00 syslogd 828 root 15 0 432 416 416 S 0.0 0.1 0:00 klogd 864 root 15 0 484 464 432 S 0.0 0.1 0:00 apmd 902 root 15 0 1128 892 892 S 0.0 0.3 0:00 sshd 913 root 15 0 740 608 608 S 0.0 0.2 0:00 xinetd 927 root 16 0 1200 1040 1040 S 0.0 0.4 0:00 safe_mysqld 959 mysql 15 0 4832 2376 2288 S 0.0 0.9 0:00 mysqld 973 root 15 0 2084 1524 1404 S 0.0 0.5 0:00 sendmail 984 smmsp 15 0 1904 1472 1420 S 0.0 0.5 0:00 sendmail 994 root 15 0 404 368 352 S 0.0 0.1 0:00 gpm 1005 root 15 0 5896 3608 3556 S 0.0 1.4 0:08 httpd 1014 root 15 0 648 600 560 S 0.0 0.2 0:00 crond 1095 xfs 15 0 7736 4888 1312 S 0.0 1.9 0:40 xfs 1113 daemon 15 0 524 500 464 S 0.0 0.1 0:00 atd 1125 root 15 0 536 516 504 S 0.0 0.2 0:00 rhnsd 1147 root 15 0 1956 1648 1300 S 0.0 0.6 0:00 cupsd 1180 root 15 0 1128 748 748 S 0.0 0.2 0:00 login 1181 root 15 0 392 344 344 S 0.0 0.1 0:00 mingetty Now you want to "kill" the cupsd process. While still in the top command press the 'k' button. Top will now ask you what the pid number is of the process you want to kill. cupsd pid is 1147 so we would enter 1147. Now it will ask you "Kill with signal 15". Hit enter and the process is killed. There are other ways of doing this as well. For more info man kill. |
All times are GMT -5. The time now is 05:14 PM. |