| DevExpress provides best-in-class UI controls for Blazor, WinForms ... |
Unlock your terminal superpowers with these bash keyboard shortcuts—a curated list from Alan Skorkin’s classic post that every developer, sysadmin, or command-line ninja should know.
💡 Keyboard Shortcuts I Didn’t Know About
Ctrl + K— Delete from cursor to end of command lineCtrl + U— Delete from cursor to start of command lineCtrl + W— Delete backwards one wordCtrl + Y— Paste text deleted by the most recent kill (yank)Ctrl + X, X— Toggle between cursor and start of command lineAlt + B/Alt + F— Move backward/forward one wordAlt + D— Delete from cursor to end of wordAlt + C— Capitalize word and move cursor to end of itAlt + U— Uppercase from cursor to end of wordAlt + L— Lowercase from cursor to end of wordAlt + T— Swap current word with previous (SO COOL!)Alt + .— Insert last word of previous command
🧙♂️ Bash History Expansion Magic
!blah:p— Print the command that!blahwould run (without executing it)!*— Expand to all arguments from previous command (excluding command name)!!:s/foo/bar— Rerun the last command, but substitutefoowithbar
📘 Bonus: Tips from the Linux Foundation’s EDX Course
More terminal wizardry from this_
📘 But wait, what if bash doesn't have the command you need?
That's when you turn to the solution from the oracle. Example? I want to delete from cursor to next whitespace.
No comments:
Post a Comment