Terminal (mac osx)
Tags :
Terminal
Go over to your finder, under applications > Utilities you will find the Terminal. Place a shortcut on your desktop for easy access.
Basic commands:
- pwd => to display the current directory
- ls => to display list of files in the current folder
- cd => to change directory (example cd .. to switch to the directory above the current). You can navigate to either full or relative paths. (example cd "directory" or cd "path/directory"). cd alone returns to the root directory
- touch => create a blank file (example touch index.html)
- mkdir => to create directories (example mkdir css
- rm => to delete files (example rm index.html)
- rm –rf => delete folders and subdirectories (example rm -rf css)
Adding Sublime command to the terminal:
Add the line below to your command line in your terminal.
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
If successful, you will be able to open Sublime on your working directory from the terminal simply by typing "subl ."
More info here(Sublime) and here(StackOverflow)