[SOLVED]Whats the command for Ctrl-Alt-Backspace ?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
soup2511

[SOLVED]Whats the command for Ctrl-Alt-Backspace ?

Post by soup2511 »

Hi, I was wondering what the equivalent command of the key combination Ctrl-Alt-Backspace. In mint 14 cinnamon , it restarts the system without rebooting ..
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29588
Joined: Wed Jul 06, 2011 3:58 am

Re: Whats the command for Ctrl-Alt-Backspace ?

Post by xenopeek »

Don't know, though I do know (from the Startup Applications) that the following command binds this keyboard shortcut to do that action:

Code: Select all

setxkbmap -option terminate:ctrl_alt_bksp
Image
soup2511

Re: Whats the command for Ctrl-Alt-Backspace ?

Post by soup2511 »

xenopeek wrote:Don't know, though I do know (from the Startup Applications) that the following command binds this keyboard shortcut to do that action:

Code: Select all

setxkbmap -option terminate:ctrl_alt_bksp
Yeah , I saw that too .... But that command looks like it maps the command to terminate something to Ctrl-Alt-Backspace.
User avatar
karlchen
Level 23
Level 23
Posts: 18206
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Whats the command for Ctrl-Alt-Backspace ?

Post by karlchen »

Hello, soup2511.

<Ctrl><Alt><Backspace> sends a terminate signal to the X server software. This will end all applications running inside the graphical desktop. The X server will be automatically restarted and take you back to the graphical logon screen.
<Ctrl><Alt><Backspace> is not specific to Mint 14, but available on (almost?) all Linux environments which run an X server.
<Ctrl><Alt><Backspace> is useful in cases where the graphical desktop has got unresponsive otherwise.

Kind regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
soup2511

Re: Whats the command for Ctrl-Alt-Backspace ?

Post by soup2511 »

karlchen wrote:Hello, soup2511.

<Ctrl><Alt><Backspace> sends a terminate signal to the X server software. This will end all applications running inside the graphical desktop. The X server will be automatically restarted and take you back to the graphical logon screen.
<Ctrl><Alt><Backspace> is not specific to Mint 14, but available on (almost?) all Linux environments which run an X server.
<Ctrl><Alt><Backspace> is useful in cases where the graphical desktop has got unresponsive otherwise.

Kind regards,
Karl
Right.
So if i give that command

Code: Select all

setxkbmap -option terminate:ctrl_alt_bksp
it should have the same effect ?! My trouble is not actually the command .... I wnt to create a script file to run on startup .. For that purpose I need the actual command which when entered into the terminal window will produce the same effect as that of Ctrl-Alt-Bckspace
User avatar
xenopeek
Level 25
Level 25
Posts: 29588
Joined: Wed Jul 06, 2011 3:58 am

Re: Whats the command for Ctrl-Alt-Backspace ?

Post by xenopeek »

No, as I shared this command only binds the keyboard shortcut to the action of terminating the X server.

It seems the following command will do what you want:

Code: Select all

sudo pkill X
Image
soup2511

Re: Whats the command for Ctrl-Alt-Backspace ?

Post by soup2511 »

xenopeek wrote:No, as I shared this command only binds the keyboard shortcut to the action of terminating the X server.

It seems the following command will do what you want:

Code: Select all

sudo pkill X
Yep, that's it !!! Thanks
Locked

Return to “Beginner Questions”