As a Unix variant, macOS uses a similar approach to Linux. All commands below should be run in the Terminal application. Commands using sudo may prompt for your password; this is expected.