21 Useful Linux Terminal Shortcuts Pro Users Love (itsfoss.com)
from petsoi@discuss.tchncs.de to linux@lemmy.ml on 25 Sep 2023 14:57
https://discuss.tchncs.de/post/3772557

#linux

threaded - newest

eeleech@lemm.ee on 25 Sep 2023 15:13 next collapse

These shortcuts aren’t provided by the terminal or the shell but the readline library (or zle if you use zsh), which can be configured using the ~/.inputrc file.

cypherpunks@lemmy.ml on 25 Sep 2023 15:41 next collapse

Some of these are provided by the readline library (ctrl-a/e/k/y etc), others are provided by the shell (ctrl-c, ctrl-z, etc), and others are the terminal emulator (ctrl-shift-c/v/n/t, etc).

[deleted] on 25 Sep 2023 15:44 collapse

.

mvirts@lemmy.world on 25 Sep 2023 16:29 next collapse

I wish they just put a biiiit more detail, like good job getting the word out please add some explanation.

wile_e8@lemmy.world on 25 Sep 2023 16:49 next collapse

Is there any mirror for this? I don’t know if this has been posted to some other site as well, but the web site seems to be overloaded with traffic right now and I can’t see the article.

loki@lemmy.ml on 26 Sep 2023 10:16 collapse

Here you go: archive.is/c3esF

starman@programming.dev on 25 Sep 2023 16:49 next collapse

Shortcuts for some different shells:

  • Nushell (reedline): nushell.sh/book/line_editor
  • Bash: (readline): gnu.org/software/bash/manual/html_node/Readline-Interaction
  • Fish: fishshell.com/docs/current/interactive#shared-bindings

As you can see, most of them use shortcuts from Emacs and Vi

mfigueiredo@lemmy.world on 25 Sep 2023 16:51 next collapse

Very useful. Thanks.

pgp@sh.itjust.works on 25 Sep 2023 21:12 next collapse

I have a small gripe with this article: CTRL+K, CTRL+U and CTRL+W don’t “delete”, they “cut”, and the clipboard can be accessed with CTRL+Y, which the article also fails to mention.

Synthead@lemmy.world on 25 Sep 2023 21:53 next collapse

man bash

mr_strange@discuss.tchncs.de on 25 Sep 2023 22:22 next collapse

They missed my personal favourite:

SHIFT + INSERT … paste the content of the PRIMARY select buffer (currently selected text).

Maoo@hexbear.net on 26 Sep 2023 01:52 collapse

Middle click gang has beef

tal@kbin.social on 26 Sep 2023 00:58 next collapse

Only the last five are terminal shortcuts (for some terminal emulator, which the author doesn't specify).

Most of first ones are specifically emacs-like shortcuts used by readline() as bash uses it. You can also set it up to use vi-like shortcuts (I mean, I use emacs, but just pointing out that they're there).

The bang-history stuff with the exclamation points is also a bash feature.

If you use a shell other than bash, or if you aren't in the shell, those won't necessarily apply (unless a given application is also using readline() with emacs-like keybindings).

GrappleHat@lemmy.ml on 26 Sep 2023 18:00 collapse

Or… VIM commands! set -o vi!!!