LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-14-2007, 02:35 PM   #1
0rinoco
Member
 
Registered: Sep 2007
Location: Bedfordshire, UK
Distribution: Opensuse 10.2
Posts: 50

Rep: Reputation: 15
Is there an equivalent to ctrl. alt. del. ?


I have just had Firefox freeze on me for the second time in a week, and wonder if there is any equivalent to Windows ctrl. alt. del. for shutting down the program. I had to reboot to bring things back to normal.
Any suggestions, please?
Thanks, 0rinoco.
 
Old 10-14-2007, 03:01 PM   #2
jasohl
Member
 
Registered: Oct 2006
Location: Seattle, Washington
Distribution: Gentoo, LinuxMint, Arch Linux
Posts: 99

Rep: Reputation: 18
I think it depends on which desktop enviroment you use. In KDE you can press Ctrl+Esc to bring up an process viewer where you can kill the program like Windoz. If you just want to make it die, no questions asked, Ctrl+Alt+Esc (my personal favorite for hard froze programs). This changes the cursor to a little skull and cross bones. Click anywhere in the program you want to kill. But be aware, it will kill anything it touches. I don't have much experience with Gnome or others. But of course regardless of the Desktop Enviro you use, Ctrl+Alt+Bksp kills X and takes you back to the command line. Of course you can also open a terminal and run "kill" or "killall" to shut down a process.
 
Old 10-14-2007, 03:03 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
You can run the "xkill" program to abort a frozen program. You could also open up a shell and use "killall firefox" or "killall firefox-bin" whichever is running.

The closest to the windows process monitor is the "gnome-system-monitor". You could map the "ctrl-alt-del" combination to launch the gnome-system-monitor" program instead of "logout".
 
Old 10-14-2007, 03:13 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,633

Rep: Reputation: 109Reputation: 109
You could try at a console/console window in X ps aux |grep firefox to find the process number then kill process_number to kill it off gracefully or kill -9 process_number to force it. If it is doing it on a regular basis then you can put this in your ~/.bashrc file to do it with a function(s).

Code:
## Some process functions

    psgrep()
    {
        ps aux | grep $1
    }


    # This is a little like `zap' from Kernighan and Pike
    #
    pskill()
    {
        local pid
        pid=$(ps ax | grep $1 | grep -v grep | awk '{ print $1 }')
        [ -z pid ] && {
            echo "pid for process $1 not found :("
            exit 1
        }
        echo -n "killing $1 (process $pid)..."
        kill $pid
        echo "slaughtered."
    }

    pskill9()
    {
        local pid
        pid=$(ps ax | grep $1 | grep -v grep | awk '{ print $1 }')
        [ -z pid ] && {
            echo "pid for process $1 not found :("
            exit 1
        }
        echo -n "killing $1 (process $pid)..."
        kill -9 $pid
        echo "slaughtered."
    }
Then using psgrep firefox to finds the process number to use with the kill command, using pskill firefox or pskill9 firefox kills it without needing to know the process number.
 
Old 10-14-2007, 03:32 PM   #5
0rinoco
Member
 
Registered: Sep 2007
Location: Bedfordshire, UK
Distribution: Opensuse 10.2
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks. Yes, I am using KDE desktop. I shall have to take in a lot of what has been put forward, as I am fairly new to Linux. In spite of my experience with Firefox, I am really delighted with the general stability of Linux. Just waiting for my 10.3 upgrade to arrive, when the Post Office gets its strike backlog sorted out.
0rinoco
 
  


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 d1l2w3 Linux - General 7 05-30-2006 07:25 AM
CTRL+ALT+DEL Equivalent? m3s3lf Linux - Newbie 15 11-06-2004 10:31 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:38 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