Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Newbie
Reload this Page Is there any shortcut keys to shutdown linux?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Newbie If you're new to the wonderful world of Linux, start here!

Reply
 
Thread Tools Display Modes
Old 05-16-2008   #1 (permalink)
geethalakshmi
Just Joined!
 
Join Date: Apr 2008
Posts: 2
Is there any shortcut keys to shutdown linux?

hi

Is there any shortcut keys to shutdown linux like the one available in windows?

Regards,
geetha

Last edited by ozar : 05-25-2008 at 05:32 PM. Reason: removed spam URLs
geethalakshmi is offline   Reply With Quote
Old 05-16-2008   #2 (permalink)
Freston
Linux User
 
Freston's Avatar
 
Join Date: Mar 2007
Posts: 471
Apart from the magic SysRq key, there is /etc/inittab which has these lines on my system:
Code:
# What to do at the "Three Finger Salute".
#ca::ctrlaltdel:/sbin/ctrlaltdel
ca::ctrlaltdel:/sbin/shutdown -a -t3 -r now
You can adjust that to your needs.
__________________
Can't tell an OS by it's GUI
Freston is online now   Reply With Quote
Old 05-16-2008   #3 (permalink)
SagaciousKJB
Just Joined!
 
SagaciousKJB's Avatar
 
Join Date: Aug 2007
Location: Yakima, WA
Posts: 99
Send a message via AIM to SagaciousKJB Send a message via MSN to SagaciousKJB
Quote:
Originally Posted by Freston View Post
Apart from the magic SysRq key, there is /etc/inittab which has these lines on my system:
Code:
# What to do at the "Three Finger Salute".
#ca::ctrlaltdel:/sbin/ctrlaltdel
ca::ctrlaltdel:/sbin/shutdown -a -t3 -r now
You can adjust that to your needs.
Isn't using the SysRq commands dangerous, or is that just if you're using 'b'? I remember being taught to use 'rseiub', because 'b' didn't unmount partitions before it restarted, which is bad for journaled filesystems like ext3. That's how it was explained to me, anyway. Does that sound accurate?

So is SysRq 'p' safe on its own? Or should it still be treated as if it were not syncing or unmounting partitions?
SagaciousKJB is offline   Reply With Quote
Old 05-17-2008   #4 (permalink)
Freston
Linux User
 
Freston's Avatar
 
Join Date: Mar 2007
Posts: 471
Good questions. Yeah, there is some danger in using SysRq, specially the 'b' option on ext* filesystems. It should invoke fsck on boot though. Which I consider better than staring at a locked system.

The funny thing though, I just read the link I posted above again, and I didn't see the Raising Elephants Is So Utterly Boring before. That seems the safest choice. But I think the OP isn't talking about locked down or crashed systems, but just a quick keystroke to turn off the machine.

I know you can configure the power button on modern machines to cause a clean shutdown. If you are willing to configure your ACPI settings manually that is, because it entails a little more than right-click, left-click, check-box, done. I never thought it worth the trouble.
__________________
Can't tell an OS by it's GUI
Freston is online now   Reply With Quote
Old 05-17-2008   #5 (permalink)
i92guboj
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 896
Quote:
Originally Posted by SagaciousKJB View Post
Isn't using the SysRq commands dangerous, or is that just if you're using 'b'? I remember being taught to use 'rseiub', because 'b' didn't unmount partitions before it restarted, which is bad for journaled filesystems like ext3. That's how it was explained to me, anyway. Does that sound accurate?

So is SysRq 'p' safe on its own? Or should it still be treated as if it were not syncing or unmounting partitions?
Quote:
Originally Posted by Freston View Post
Good questions. Yeah, there is some danger in using SysRq, specially the 'b' option on ext* filesystems. It should invoke fsck on boot though. Which I consider better than staring at a locked system.

The funny thing though, I just read the link I posted above again, and I didn't see the Raising Elephants Is So Utterly Boring before. That seems the safest choice. But I think the OP isn't talking about locked down or crashed systems, but just a quick keystroke to turn off the machine.

I know you can configure the power button on modern machines to cause a clean shutdown. If you are willing to configure your ACPI settings manually that is, because it entails a little more than right-click, left-click, check-box, done. I never thought it worth the trouble.
The magic sysrq key is not a soluiton for this topic. So, I'd leave that out of the topic.

Configure your inittab correctly or define a keystroke on your window manager.
i92guboj is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 09:51 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0