cybercitizen4@lemm.ee to Asklemmy@lemmy.ml · 21 hours agoWhat's a handy terminal command you use often?message-squaremessage-square179fedilinkarrow-up1143arrow-down15
arrow-up1138arrow-down1message-squareWhat's a handy terminal command you use often?cybercitizen4@lemm.ee to Asklemmy@lemmy.ml · 21 hours agomessage-square179fedilink
minus-squareRagingRobot@lemmy.worldlinkfedilinkarrow-up14·14 hours agoCTR + 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
minus-squareAnIndefiniteArticle@sh.itjust.workslinkfedilinkarrow-up1·4 hours agoAnd then ctrl+y to paste it back and recover that text.
minus-squarepotentiallynotfelix@lemmy.fishlinkfedilinkEnglisharrow-up2·5 hours agoI just use control C, is there a difference other than whether the line shows up or not?
minus-squaredarvit@lemmy.darvit.nllinkfedilinkarrow-up3·8 hours agoHow 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.
minus-squareemergencybird@lemmy.worldlinkfedilinkarrow-up2·7 hours agoThis is great for when you type in your root password incorrectly!
minus-squarecall_me_xale@lemmy.ziplinkfedilinkarrow-up12·13 hours agoRelated: Alt + ., to cycle through arguments used in previous commands
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
And then ctrl+y to paste it back and recover that text.
I just use control C, is there a difference other than whether the line shows up or not?
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.
This is great for when you type in your root password incorrectly!
Related: Alt +
.
, to cycle through arguments used in previous commands