I want to be able to use the terminal properly with GitHub but I have only used it once in a meetup (codebar in Birmingham) and it was very useful, but quite a whistle stop tour. I'm going to get my head around terminal and then learn how to use it with GitHub. I found the following at macworld.com, macpaw.com and git-tower.com
- To list the directory you're in
- To show where you currently are (stands for print working directory)
- To go to your home folder
- To go from the home folder to another one (desktop for instance, type
cd Documents or cd Desktop/thefoldername
- To go to the directory above the one you're currently in
- To go back to the directory you were in before
- "~". This sign stands for your user account's home folder. So, instead of typing something like
You should use this shorthand form
-To make a new folder, you call the "make directory" command
To delete a folder you type rm -r then the file path e.g.
rm -r ~/downloads/nameofthefolder
(the -r stands for recursive)
- To go to the root level of your startup disk. Don't fiddle around with this though unless you know what you're doing.
Type bc to get a calculator working!
relative path = is path relative to the directory you're currently in - jumping from one to next
absolute path = is the path relative to the root -giving the whole address thing