Skip to main content

Linux Tips: How To Delete Words on the Command Line

Linux Performance
By Keith Edmunds28 April 2017No Comments

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.