Command line Mini lesson: = terminal/console/other name?
Use CLI commands with great attention! Wrong use can easily delete files or destroy your computer system completely.
Here is a list of some of the very basic commands for CLI:
Before using the CLI environment for MacOS, you will need to install Homebrew.
What is Homebrew and why do we need it? Homebrew or brew
is the Missing Package Manager for MacOS. Homebrew is the easiest and most flexible way to to install Linux tools that Apple did not include in MacOS. It can also install software not packaged in your Linux distribution to your home directory without requiring the sudo
command. A quick and recent guide to install brew
can be found at: https://crunchify.com/how-to-install-homebrew-on-macos/
Once brew
has been successfully installed, a list of brew
commands can be found by using the brew help
command. brew
can be used to install new programs such as Node.js or NVM. Once these programs are installed, it is not necessary to use the brew
command, but rather the commands that are specific to the program you are using. For example for Node.js or NVM, you would use the npm
or nvm
as commands. The installation of brew
allows you to use all of the basic Linux commands described in the table above in the Linux section.
Before you get started using your Windows machine for development, you will need to download and install Windows Subsystem for Linux 2. An easy ****guide to downloading and installing WSL-2 can be found here: https://docs.microsoft.com/en-us/windows/wsl/install-manual
Once WSL-2 is installed on your machine, the commands are essentially the same as they are in Linux. You can find a list of some of the most basic Linux commands in the list above in the Linux section.