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.
Note
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:
If you are still struggling to find the Terminal application, you can do a simple search in the Finder for it!
sudo
Commands¶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.
Tip
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.
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 CLI.