tchncs
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
petsoi to Linux@lemmy.ml · 2 years ago

21 Useful Linux Terminal Shortcuts Pro Users Love

itsfoss.com

external-link
message-square
13
link
fedilink
96
external-link

21 Useful Linux Terminal Shortcuts Pro Users Love

itsfoss.com

petsoi to Linux@lemmy.ml · 2 years ago
message-square
13
link
fedilink
Become more efficient in the Linux terminal by mastering these super useful keyboard shortcuts.
alert-triangle
You must log in or register to comment.
  • eeleech@lemm.ee
    link
    fedilink
    arrow-up
    33
    ·
    2 years ago

    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.

    • Arthur Besse@lemmy.mlM
      link
      fedilink
      arrow-up
      15
      ·
      2 years ago

      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).

    • starman@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 years ago

      deleted by creator

  • pgp@sh.itjust.works
    link
    fedilink
    arrow-up
    17
    ·
    2 years ago

    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.

  • tal@kbin.social
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    2 years ago

    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).

  • starman@programming.dev
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    2 years ago

    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

  • GrappleHat@lemmy.ml
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 years ago

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

  • mr_strange
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    They missed my personal favourite:

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

    • Maoo [none/use name]@hexbear.net
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      4
      ·
      2 years ago

      Middle click gang has beef

  • Synthead@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    man bash

  • mvirts@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    2 years ago

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

  • mfigueiredo@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    2 years ago

    Very useful. Thanks.

  • wile_e8@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    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
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years ago

      Here you go: https://archive.is/c3esF

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.12K users / day
  • 4.17K users / week
  • 8.13K users / month
  • 17.4K users / 6 months
  • 1.14K local subscribers
  • 54K subscribers
  • 7.78K Posts
  • 206K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • nooter692@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org