Using bash move efficiently

From rbachwiki
Jump to navigation Jump to search

Forgot to type sudo in front of a command

reruns the previous command with sudo

sudo !!

Cut text from current positon to the end

CTRL K
CTRL Y # will undo cut

Cut text form current position to beginning

CTRL U