MacOS

How to use Terminal on MacOS

The Mac Terminal app is a command-line interface (CLI) for MacOS.

To use it, open the Terminal app from your Applications folder or by using the spotlight search.

Once the app is open, you can use various command-line tools and utilities to perform a wide range of tasks on your Mac.

Usually reserved for advanced users, the Terminal app can be much quicker than using other Apps that have a graphical interface.

Terminal App is preinstalled and available alongside other Apple Mac Utility Apps.

Common commands

Here are some basic commands to get you started:

  • ls: List the files and directories in the current directory
  • cd: Change the current directory
  • mkdir: Create a new directory
  • touch: Create a new file
  • open: Open a file or directory
  • rm: Delete a file or directory

Want to check if a website is online?

Use ping command e.g. ping apple.com

This command continues to ping a specific website indefinitely until you close the command by pressing command + C

Want to check who is the the owner of a domain?

Use whois command e.g. whois apple.com

To learn more about using the Terminal app and the command-line tools and utilities available on MacOS, you can check out the documentation on the Apple website or do a search online.

There are also many tutorials and guides available that can help you learn how to use the Terminal app and become more comfortable using the command line.

    Upload file