b9AcE #NoEdits on Nostr: Speaking of the (now default) "EMACS-mode" of UNIX(/Linux) command-line, some of the ...
Speaking of the (now default) "EMACS-mode" of UNIX(/Linux) command-line,
some of the most useful keys, apart from those I just mentioned would be <ctrl>+k to "kill" everything to the right of the cursor but storing it in memory (a.k.a. "cut"), with the counter-part being <ctrl>+y to "yank" it back (i.e. "paste"),
then of course if you want to go back to a command you have previously entered and you're tired of <arrow-up><arrow-up><arrow-up>, etc, you can instead do <ctrl>+r and start entering text to do a "reverse search in your history" by just typing the parts you remember that you entered before and then <ctrl>+r again and again until you get the one result you wanted.
If you regret starting that, you go <ctrl>+g to abort ("go away"? :-D).
There is also <alt>+b for "back a word" and <alt>+f for "forward a word" and much more.
If you learn these (and maybe some of the many more related) key-strokes, you can become MUCH faster at the command-line than mouse-based point-and-click can ever achieve.
Published at
2023-05-03 18:35:56Event JSON
{
"id": "43dc635cc26ac449d5f5031b897a334f42bbaf7647c7508439a69ad1b156d079",
"pubkey": "adc8fe765f1ee1b5d721a64dee9006277bb03c60824e45d6f5c0f7897485fd4d",
"created_at": 1683138956,
"kind": 1,
"tags": [
[
"e",
"1871d718f2493ff0e867502a730fd25df33d6cd534d727dd5097bcaa2273c736",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://todon.eu/users/b9AcE/statuses/110306194629548214"
]
],
"content": "Speaking of the (now default) \"EMACS-mode\" of UNIX(/Linux) command-line,\nsome of the most useful keys, apart from those I just mentioned would be \u003cctrl\u003e+k to \"kill\" everything to the right of the cursor but storing it in memory (a.k.a. \"cut\"), with the counter-part being \u003cctrl\u003e+y to \"yank\" it back (i.e. \"paste\"),\nthen of course if you want to go back to a command you have previously entered and you're tired of \u003carrow-up\u003e\u003carrow-up\u003e\u003carrow-up\u003e, etc, you can instead do \u003cctrl\u003e+r and start entering text to do a \"reverse search in your history\" by just typing the parts you remember that you entered before and then \u003cctrl\u003e+r again and again until you get the one result you wanted.\nIf you regret starting that, you go \u003cctrl\u003e+g to abort (\"go away\"? :-D).\nThere is also \u003calt\u003e+b for \"back a word\" and \u003calt\u003e+f for \"forward a word\" and much more.\n\nIf you learn these (and maybe some of the many more related) key-strokes, you can become MUCH faster at the command-line than mouse-based point-and-click can ever achieve.",
"sig": "897e4ee0535d0689810fcbbe2a82fee369d7951ff9294c36a42a40d68ec7476adf9379616946559762ed3e53d96a3f8e1d502f912b0afeea251a75e7f8a26ad8"
}