My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency)
My favorite tricks for becoming a Linux Shell Speed Demon (this assumes Bash/readline)
1:04 - sudo !! - re-run previous command with ’sudo’ prepended
1:53 - ctrl-k, ctrl-u, ctrl-w, ctrl-y - cutting and pasting text in the command line
3:24 - practical kill/yank example
4:04 - use ’less F’ to view logfiles, instead of ’tail’ (ctrl-c, shift-f, q to quit)
6:25 - ctrl-x-e - continue editing your current shell line in a text editor (uses $EDITOR)
7:54 - alt-. - paste previous command’s argument (useful for running multiple commands on the same resource)
9:18 - reset - resets/unborks your terminal
My step-by-step project-based Linux course for beginners:
Free Linux Sysadmin Course Playlist:
DigitalOcean referral link: