linux - Windows equivalent of alt + sysrq + REISUB/REISUO

08
2014-07
  • Alexander Riccio

    Is there a (kernel-level) Windows equivalent to the Linux Magic SysRq key combination REISUO/REISUB?

    i.e.

    1. Redirect keyboard to console
    2. Send a quit signal (non-forceful kill)
    3. Send a SIGKILL (forceful kill)
    4. Sync disks/flush buffers
    5. Unmount & remount all mounted filesystems as read only
    6. Reboot/Poweroff

    1 isn't necessary. I am looking for kernel level options only. Nothing userspace.

    On Windows, I hate to do a hard reset (hold power button) for fear of data corruption, or worse. On linux I can force the buffers to flush & sync the drives - I love the Linux mechanism.

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    linux - Equivalent/Alternatives for Alt+Dot in Mac
  • pablasso

    One thing i miss from the Linux shell is the Alt+Dot shortcut. What it does is insert the last argument of the previous command. It appears to be a trivial technique, but it's really useful.

    i.e. if you type this:

    $ ls /Applications/MAMP/conf/apache/
    

    The next time you just have to type a command + shortcut and the argument will be completed for you.

    $ cd 'alt+dot'
    

    On Mac i know 2 alternatives; pressing Esc+Dot or typing !$, !* with the magic space setup.

    However while both alternatives do insert the last argument(s) you've used, they can't scroll back in command history like typing Alt+Dot repeatedly does.

    I can live with this options for now, but i'd love to know if someone knows a better way to do it.


  • Related Answers
  • simonp

    You can press Esc-dot many times, it does the same things are alt-dot. But, like you, i find it more cumbersome to type to type than alt-dot.

  • Richard Hoskins

    In Terminal.app, Preferences->Settings, select the Keyboard tab. Ensure "Use Option Key as Meta" is checked.

  • Doug Harris

    Use option+.

    Note that this is a feature of bash and not linux. Macs have bash on them as well. Alt-. is the shortcut for a builtin bash function insert-last-argument. Read the bash man page for how you can bind this to a different key combination.

  • Oliver Salzburg

    If you open Terminal.app and enter preferences, and go to Settings > Keyboard and check “Use option as meta key”, you can use the bash shortcuts that use alt, for example:

    Alt+B: Skip word backwards

    Alt+F: Skip word forwards

    Source