LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2003, 06:17 PM   #1
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
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
 
Old 02-28-2003, 06:23 PM   #2
jburford
Member
 
Registered: Sep 2002
Distribution: Mandrake 10, IPCOP 1.4, SME Server 6, EvilEntity
Posts: 106

Rep: Reputation: 15
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
 
Old 02-28-2003, 06:24 PM   #3
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
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>

Last edited by watashiwaotaku7; 02-28-2003 at 06:25 PM.
 
Old 02-28-2003, 06:26 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctrl + Alt + Del ? funkenbooty Linux - Newbie 7 04-26-2007 06:20 AM
Ctrl+Alt+Del, without login nny0000 Slackware 1 02-24-2004 09:53 PM
Linux equivalent of CTRL-ALT-DEL in Windows? ryancw Linux - Newbie 15 02-19-2004 09:58 PM
ctrl, alt, del hornet74 Linux - Software 8 01-13-2004 08:06 PM
Sending CTRL-ALT-DEL to a Windows 2000 box using VNC from Linux scottpioso Linux - Newbie 1 03-04-2003 03:27 PM


All times are GMT -5. The time now is 06:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration