Skip to content

Instantly share code, notes, and snippets.

@myfavouritekk
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save myfavouritekk/fc10686741b90bbb8eaf to your computer and use it in GitHub Desktop.

Select an option

Save myfavouritekk/fc10686741b90bbb8eaf to your computer and use it in GitHub Desktop.
Handy Commands in Shell
# 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