this post was submitted on 21 Sep 2024
218 points (97.8% liked)

Asklemmy

43980 readers
658 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_[email protected]~

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 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

[โ€“] [email protected] 17 points 2 months ago

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

[โ€“] [email protected] 5 points 2 months ago

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

[โ€“] [email protected] 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.

[โ€“] [email protected] 2 points 2 months ago

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

[โ€“] [email protected] 2 points 2 months ago

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