Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. * `pushd <newdir>` and `popd` to add current folder to a stack when moving to a new one and returning:
  2. ```
  3. ~/Desktop$ pushd /
  4. /$popd
  5. ~/Desktop$
  6. ```
  7.  
  8. * append `!` to a command to execute the last command with the same beginning:
  9. ```
  10. $!ca
  11. > cat Readme.md
  12. ```
  13.  
  14. * Space at the beginning so the command is not added to the history:
  15. ```
  16. $ command_with_private_password
  17. ```
  18.  
  19. * `alias cd..='cd ..'` to avoid typos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement