In pretty much any Cocoa app, option-delete is an incredibly useful shortcut to delete the previous word or path component.
Delete previous word or path item in Terminal
In pretty much any Cocoa app, option-delete is an incredibly useful shortcut to delete the previous word or path component.