LinuxQuestions.org
Visit Jeremy's Blog.
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 08-25-2009, 06:07 PM   #1
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Rep: Reputation: 18
Is there are ctrl+alt+delete function for linux?


The first time someone showed me linux(ubuntu), they showed me a way to go into a windows like system monitor like in windows and stop a program from running if something was freezing and just return to the desktop. I was wondering if there is something like that on linux or if there is just a windows system monitor type key configuration that does the same thing? Thank you guys for your time!
 
Old 08-25-2009, 06:09 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,988
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
There's Ctrl-Esc in KDE ...
 
Old 08-25-2009, 06:10 PM   #3
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
Well ctrl+alt+del in linux is a reboot. ctrl+alt+backspace shuts down the xserver (if running) and I think alt+F4 should still close a program? In linux the main way to close a program is the 'kill' command. You could probably find ways to set up ctrl+alt+del to do a task manager setup, though I've never done it.

[update]
http://www.ghacks.net/2009/06/09/lin...-del-behavior/

There is a good article for you to read.

Last edited by mushroomboy; 08-25-2009 at 06:12 PM.
 
Old 08-25-2009, 06:18 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Open a terminal and type in top, this will show you what's running:
Code:
top - 00:17:00 up  5:18,  2 users,  load average: 0.45, 0.55, 0.78
Tasks: 132 total,   1 running, 131 sleeping,   0 stopped,   0 zombie
Cpu(s): 34.4%us,  2.9%sy,  0.0%ni, 61.5%id,  0.7%wa,  0.2%hi,  0.3%si,  0.0%st
Mem:    516028k total,   399224k used,   116804k free,    36344k buffers
Swap:  1510068k total,   105760k used,  1404308k free,   120288k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
20177 ray       20   0  2440 1064  796 R  3.9  0.2   0:00.02 top
 4370 ray       20   0  385m 100m  22m S  1.9 19.9  90:23.35 firefox-bin
    1 root      20   0  2232  664  640 S  0.0  0.1   0:01.80 init
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S  0.0  0.0   0:01.42 ksoftirqd/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    6 root      15  -5     0    0    0 S  0.0  0.0   0:01.16 events/0
    7 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
   39 root      15  -5     0    0    0 S  0.0  0.0   0:00.28 kblockd/0
   41 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
   42 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify
  120 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod
  150 root      20   0     0    0    0 S  0.0  0.0   0:00.96 pdflush
  151 root      20   0     0    0    0 S  0.0  0.0   0:00.00 pdflush
  152 root      15  -5     0    0    0 S  0.0  0.0   0:00.62 kswapd0
  153 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
  637 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ksuspend_usbd
  638 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khubd
  770 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ata/0
  771 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ata_aux
  913 root      15  -5     0    0    0 S  0.0  0.0   0:00.62 kjournald
  977 root      16  -4  2524  572  492 S  0.0  0.1   0:00.18 udevd
 1506 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kpsmoused
 1607 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_0
 1608 root      15  -5     0    0    0 S  0.0  0.0   0:02.82 usb-storage
 1647 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 pccardd
 1658 root      15  -5     0    0    0 S  0.0  0.0   0:02.78 b43legacy
 1720 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 pccardd
This is mine as an example. Hit q to exit.

If I wanted to stop, say Firefox, I would type in
Code:
killall -9 firefox-bin
Is this what you are after?
 
Old 08-25-2009, 06:25 PM   #5
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
the link I posted goes to an article explaining ctrl+alt+del and ways to make it more windows like, I believe he wants to know if it acts the same way it would in windows, but we all know it doesn't.
 
Old 08-25-2009, 06:27 PM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,043

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
The key shortcuts depends entirely on your desktop environment. In kde, if my memory serves correctly, it was control+alt+esc to open ksysmonitor or whatever it was called, there you can see a process list. In others it might be control+alt+del, those bindings can be redefined to suit your tastes, if you like. As said, it depends on your desktop environment or window manager. So, to be able to help you, we first need to know which desktop do you use, without that info, we are merely speculating.

However, these programs can also be reached using the menu or by running them in a terminal or the launch dialog.
 
Old 08-25-2009, 06:50 PM   #7
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: always back to Fedora
Posts: 241

Rep: Reputation: 50
Wink

Quote:
Originally Posted by XavierP View Post
Open a terminal and type in top, this will show you what's running:
Code:
top - 00:17:00 up  5:18,  2 users,  load average: 0.45, 0.55, 0.78
Tasks: 132 total,   1 running, 131 sleeping,   0 stopped,   0 zombie
Cpu(s): 34.4%us,  2.9%sy,  0.0%ni, 61.5%id,  0.7%wa,  0.2%hi,  0.3%si,  0.0%st
Mem:    516028k total,   399224k used,   116804k free,    36344k buffers
Swap:  1510068k total,   105760k used,  1404308k free,   120288k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
20177 ray       20   0  2440 1064  796 R  3.9  0.2   0:00.02 top
 4370 ray       20   0  385m 100m  22m S  1.9 19.9  90:23.35 firefox-bin
    1 root      20   0  2232  664  640 S  0.0  0.1   0:01.80 init
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S  0.0  0.0   0:01.42 ksoftirqd/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    6 root      15  -5     0    0    0 S  0.0  0.0   0:01.16 events/0
    7 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
   39 root      15  -5     0    0    0 S  0.0  0.0   0:00.28 kblockd/0
   41 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
   42 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify
  120 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod
  150 root      20   0     0    0    0 S  0.0  0.0   0:00.96 pdflush
  151 root      20   0     0    0    0 S  0.0  0.0   0:00.00 pdflush
  152 root      15  -5     0    0    0 S  0.0  0.0   0:00.62 kswapd0
  153 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
  637 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ksuspend_usbd
  638 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khubd
  770 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ata/0
  771 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ata_aux
  913 root      15  -5     0    0    0 S  0.0  0.0   0:00.62 kjournald
  977 root      16  -4  2524  572  492 S  0.0  0.1   0:00.18 udevd
 1506 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kpsmoused
 1607 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_0
 1608 root      15  -5     0    0    0 S  0.0  0.0   0:02.82 usb-storage
 1647 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 pccardd
 1658 root      15  -5     0    0    0 S  0.0  0.0   0:02.78 b43legacy
 1720 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 pccardd
This is mine as an example. Hit q to exit.

If I wanted to stop, say Firefox, I would type in
Code:
killall -9 firefox-bin
Is this what you are after?
To add to this :- you can press the letter k whilst in top to kill any process. The default is with signal 15 (SIGTERM), but you can change it by typing in another kill signal, for example typing in 9 will kill the process with "extreme prejudice".
 
Old 08-25-2009, 08:16 PM   #8
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Original Poster
Rep: Reputation: 18
Thanks guys for the help, I was just wondering if a program or my comp freezes b/c of something on Gnome that there is a way to kill the process or program,etc.... Like if my whole comp froze in openSUSE 11.1 kde I could press ctrl+alt+F1 and it would bring another sort of console type thing. I don't know if I can do that on a fedora gnome or ubuntu gnome.

Sorry guys for my lack of description when it comes to this subject. Thank you for your responses.
 
Old 08-25-2009, 08:19 PM   #9
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,301

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
ctrl+alt+F1 (or F2 or F3 ... up to F6 iirc) is std Linux. Should work on almost any distro.
 
Old 08-25-2009, 08:37 PM   #10
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Original Poster
Rep: Reputation: 18
oh thank you all for your help!
 
Old 08-25-2009, 11:43 PM   #11
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by mushroomboy View Post
ctrl+alt+backspace shuts down the xserver (if running)
I think it restarts the X-server (a slight difference).

Be aware that that no longer seems to work in all distros (e.g. Ubuntu 9.04) due to a decision taken upstream (I think by the X team). Reason seems to be that people were able to press that combination by accident. Yeah right, people can also push the reset button by accident.

One can enable it again or use the alternative right alt + printscreen + k
 
Old 08-26-2009, 01:46 AM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,988
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
Originally Posted by Wim Sturkenboom View Post
I think it restarts the X-server (a slight difference).
Not really. If you happen to run X from init 3 (on non-debian
systems), and do the Ctrl-Alt-BkSpc it goes away and stays dead.
It only gets respawned if you use init to restart it in runlevel
4 (4 in Slack, 5 in some , or 2-5 in deb/ubunut)

Quote:
Originally Posted by Wim Sturkenboom View Post
Be aware that that no longer seems to work in all distros (e.g. Ubuntu 9.04) due to a decision taken upstream (I think by the X team). Reason seems to be that people were able to press that combination by accident. Yeah right, people can also push the reset button by accident.
They just turned off the default, and took the server section
out of the example xorg.conf. Easy enough to add
Code:
Section "ServerFlags"
    Option     "DontZap"  "off"
EndSection
back in ...



Cheers,
Tink
 
Old 08-26-2009, 01:57 AM   #13
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,043

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Yep. It's init who actually respawns the process. X dies the same regardless. It's just that it's respawned.

Also, as Tinkster said, the DontZap option is now on by default, previously the default was off. So, if you have a newer xorg you just need to explicitly disable it in the config file and you will be able to use that key combo agian.
 
Old 08-26-2009, 01:59 AM   #14
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
For debian it depends on what you use as a WM... If you use XFCE without gdm/kdm/xdm it doesn't respawn.
 
Old 08-26-2009, 03:38 AM   #15
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Thanks for the explanation on respawn.

Further: It was just intended as a warning so people don't start crying if it does not work; I knew about the dontzap but thanks anyway.
 
  


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 delete Ica Client Linux 7777777 Linux - Software 2 01-04-2009 09:23 AM
Ctrl+Alt+Function Key 1veedo Linux - Newbie 1 11-08-2005 06:23 AM
ctrl-alt-delete for linux? albean Linux - Newbie 5 12-01-2004 04:19 AM
Ctrl Alt Delete What? Brother Michael Linux - Newbie 2 12-09-2003 09:38 AM
Ctrl+Alt+Delete Agileuk Linux - Newbie 5 09-27-2003 06:13 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration