Skip to content

u/WiredTangles

In this archive from Mar 2020 to Aug 2022

2
posts
144
comments
1
media
601
score

Top posts

Top comments

SysRq key. It lets you make the kernel do things even if Xorg is frozen (or whatever other program). My favorite is SysRq + k which kills all processes on the current VT, super useful for killing frozen Xorg's when you can't open a terminal or switch to a TTY because xinput is frozen.

SysRq is Alt + PrintScreen on x86 systems, but you first have to enable the SysRq functions in the kernel, either by kernel config or sysctl(1) or /proc/sys/kernel/i_forget_the_filename_but_you_get_the_jdea.

See the kernel documentation page on SysRq for more details.

23 points

sudoedit makes a writable copy of the file in /tmp, meaning your editor runs as your normal user. when the editor closes, it copies the temporary file to the actual destination.

sudo vi runs vi as root, which could be dangerous depending on how you've set things up.

The other benefit of sudoedit (or sudo -e) is that since the editor runs as your current user, it uses your normal editor configuration, not the root user's configuration.

17 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.