Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Below are terminal commands I frequently use:
  2.  
  3. EXIT FROM THE CURRENT OPERATION: CONTROL + D
  4.  
  5. CLEAR PREVIOUS COMMANDS: COMMAND + K; CLEAR
  6.  
  7. FILE COMMANDS
  8. open a file with sublime text from Terminal: subl file
  9.  
  10. Before that, set up the above shortcut:
  11.  
  12. # You can create a new alias in Terminal:
  13. nano ~/.bash_profile
  14.  
  15. # Copy this line and paste it into the editor:
  16. alias subl='open -a "Sublime Text"'
  17.  
  18. # Hit control + x, then y, then enter to save and close it.
  19. # Close all Terminal windows and open it up again.
  20. # That's it, you can now use subl filename or subl .
  21.  
  22. rename a file: rm fileOld fileNew
  23.  
  24. create a file: touch file
  25.  
  26. remove a file rm file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement