Setting Up Your Terminal¶
The command line is a vital tool to learn for any programmer. Over the course of this program and your career, you will find yourself navigating to it frequently.
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 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 inside 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 Password:
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 CLI up and running, you have to first install Git Bash.
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 CLI.