If your workflow involves administering remote systems or something similar, you probably have the following burned into your muscle memory. If, on the other hand, you’re like me and don’t have occasion to need root access on a remote machine very often, you can probably use a reminder. If you’re in the second category, here, courtesy of abo-abo, you go:
#Emacs open a file with ssh + sudo: C-x C-f /ssh:cloud|sudo:root:/etc/passwd
Works with Ivy too, but you get completion only after :/.
— abo-abo (@_abo_abo) October 17, 2017
If you click on the tweet, you’ll see the next tweet, which explains that “cloud” is the name of a remote system defined in abo-abo’s ~/.ssh/config
. Defining often used remote systems like this is something I do too and it saves me a bunch of time and mental cycles trying to remember domains or, worse yet, IP addresses.