Setting Up Your Terminal
Familiarizing yourself with the terminal on your machine is vital for any programmer. Over the course of this program and your career, you will find yourself navigating to it frequently.
You will often find yourself coming across terms such as the terminal and the command line.
A terminal is a program that runs a shell which allows the user to enter commands.
The command-line is any interface that allows the user to enter text-based commands. The terminal is an example of a command-line interface. Many programs and software have their own command-line interface in order to interact with them. For example git is a version control tool that has its own command-line interface that you will be using throughout the course.
Once you have your terminal setup on your machine, make sure to pin it to the taskbar or add it to your dock!
Good news! The Terminal application comes with every Mac.
You can access it in one of two ways:
Through the Finder
- Open a new Finder window and navigate to the Applications folder.
- Inside the Applications folder, you will find a Utilities folder.
- Open the Utilities folder, and inside is the Terminal application!
- If you are a fan of the LaunchPad features on Apple computers, hit the F4 key.
- Inside the Other or Utilities folder, you can find the Terminal.
If you are still struggling to find the Terminal application, you can do a simple search in the Finder for it!
Some terminal commands require the addition of sudo at the front of the command. This name gives the user super user rights.
sudo is often required when installing software from the terminal.
$ sudo install mocha
The Terminal will ask you for your machine’s password.
When typing, don’t be alarmed if you don’t see your keystrokes while typing your password. Your machine is still receiving this information.
Press enter when you are finished. If you’re attempting to run a command from the terminal and receive a permissions error, check if adding
sudo to your command will resolve the error.
In order to get your terminal up and running, you have to first install Git Bash .Note
When you are doing your Git Bash setup, you only need to leave the default selected.
Once Git Bash is installed on your machine, you can find the folder for it through the Home screen.
Inside the folder, simply select Git Bash to open the appropriate terminal.