Last active
August 29, 2015 14:16
-
-
Save myfavouritekk/fc10686741b90bbb8eaf to your computer and use it in GitHub Desktop.
Handy Commands in Shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Jump back | |
| cd - | |
| # add sudo to last command | |
| sudo !! | |
| # replace a word in last command | |
| ^cmd1^cmd2 | |
| # Remove surplus carriage returns in windows text files | |
| tr -d '\015\032' < windows_file > unix_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment