• RagingRobot@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    8 hours ago

    CTR + u will delete the whole command. I use that a lot so I don’t have to backspace. It’s saved me a ton of time

    • darvit@lemmy.darvit.nl
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      How about ctrl+c to cancel and clear the command you are typing? It’s much easier because you only need 1 hand, and does not impact your shell’s history.

    • call_me_xale
      link
      fedilink
      arrow-up
      8
      ·
      7 hours ago

      Related: Alt + ., to cycle through arguments used in previous commands