linux - Windows equivalent of alt + sysrq + REISUB/REISUO
2014-07
Is there a (kernel-level) Windows equivalent to the Linux Magic SysRq key combination REISUO
/REISUB
?
i.e.
- Redirect keyboard to console
- Send a quit signal (non-forceful kill)
- Send a
SIGKILL
(forceful kill) - Sync disks/flush buffers
- Unmount & remount all mounted filesystems as read only
- 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.
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.
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.
In Terminal.app, Preferences->Settings, select the Keyboard tab. Ensure "Use Option Key as Meta" is checked.
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.
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