How to Use Terminal on Mac
The Terminal is a powerful tool on your Mac that allows you to interact with your system using text commands. Here’s a quick guide to get you started.
Opening Terminal
To open Terminal, navigate to Applications > Utilities > Terminal. You can also use Spotlight by pressing Command + Space and typing Terminal.
Basic Commands
Once you have Terminal open, you can start using commands. Here are some basic commands:
- ls - Lists files in the current directory.
- cd - Changes the directory. For example, cd Documents takes you to the Documents folder.
- mkdir - Creates a new directory. For example, mkdir new_folder.
- rm - Deletes files. Be careful with this command!
Using Sudo
Some commands require administrative privileges. You can use sudo before a command to gain these privileges. For example, sudo apt-get update.
Getting Help
If you need help with a command, you can type man followed by the command name. For example, man ls will show you the manual for the ls command.
No related topics found.