Here’s a really quick tip for when you’re typing in a shell session: to remove the previous word on the line, type ^W
(control-W).
Before:
$ ls -l abc*
After ^W
:
$ ls -l
This is a “muscle memory” tip: once you get used to doing this, you’ll do it automatically.
Could this Linux Tip be improved? Let us know in the comments below.