this post was submitted on 21 Sep 2024
220 points (97.0% liked)

Asklemmy

43945 readers
627 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] RagingRobot@lemmy.world 16 points 2 months ago (5 children)

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

[โ€“] call_me_xale@lemmy.zip 17 points 2 months ago

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

I just use control C, is there a difference other than whether the line shows up or not?

[โ€“] darvit@lemmy.darvit.nl 4 points 2 months 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.

And then ctrl+y to paste it back and recover that text.

[โ€“] emergencybird@lemmy.world 2 points 2 months ago

This is great for when you type in your root password incorrectly!