cybercitizen4@lemm.ee to Asklemmy@lemmy.ml · 2 days agoWhat's a handy terminal command you use often?message-squaremessage-square245fedilinkarrow-up1211arrow-down16
arrow-up1205arrow-down1message-squareWhat's a handy terminal command you use often?cybercitizen4@lemm.ee to Asklemmy@lemmy.ml · 2 days agomessage-square245fedilink
minus-squareRagingRobot@lemmy.worldlinkfedilinkarrow-up14·2 days 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-squarepotentiallynotfelix@lemmy.fishlinkfedilinkEnglisharrow-up5·1 day agoI just use control C, is there a difference other than whether the line shows up or not?
minus-squarecall_me_xale@lemmy.ziplinkfedilinkarrow-up14·2 days agoRelated: Alt + ., to cycle through arguments used in previous commands
minus-squaredarvit@lemmy.darvit.nllinkfedilinkarrow-up4·1 day 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-squareAnIndefiniteArticle@sh.itjust.workslinkfedilinkarrow-up2·1 day agoAnd then ctrl+y to paste it back and recover that text.
minus-squareemergencybird@lemmy.worldlinkfedilinkarrow-up2·1 day agoThis is great for when you type in your root password incorrectly!
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
I just use control C, is there a difference other than whether the line shows up or not?
Related: Alt +
.
, to cycle through arguments used in previous commandsHow 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.
This is great for when you type in your root password incorrectly!