Results 1 to 5 of 5
hi
Is there any shortcut keys to shutdown linux like the one available in windows?
Regards,
geetha...
- 05-16-2008 #1Just Joined!
- Join Date
- Apr 2008
- Posts
- 7
Is there any shortcut keys to shutdown linux?
hi
Is there any shortcut keys to shutdown linux like the one available in windows?
Regards,
geethaLast edited by oz; 05-25-2008 at 05:32 PM. Reason: removed spam URLs
- 05-16-2008 #2
Apart from the magic SysRq key, there is /etc/inittab which has these lines on my system:
You can adjust that to your needs.Code:# What to do at the "Three Finger Salute". #ca::ctrlaltdel:/sbin/ctrlaltdel ca::ctrlaltdel:/sbin/shutdown -a -t3 -r now
Can't tell an OS by it's GUI
- 05-16-2008 #3
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?
- 05-17-2008 #4
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
- 05-17-2008 #5Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513


Reply With Quote
