A few words of thanks would be greatly appreciated.

Mac OS X Terminal

Mac OS X features a built-in app called the Terminal. It allows users to interact with their computer using text-based commands. The Terminal comes in handy to tweak the system settings, troubleshoot your computer, or perform tasks that would otherwise require additional software. While the Terminal is often of no interest to the casual Mac user, it remains an invaluable tool for power users.

Warning: You should be very careful when using the Terminal as the slightest mistake could lead to irreversible damage (system failure, boot issues, crashes, slowdowns, or data loss).
You can open the Terminal like any other application. Go to the Applications folder > Utilities > Terminal. Type the desired command and confirm with the Enter key. Here's a roundup of some of the basic OSX commands:

man: Display information about a specific command (type
followed by the name of the desired command).

cd (Change Directory): Allows you to navigate from one directory to another (type
to go into your personal folder).

pwd (Print Working Directory): Display the path to the current directory.

mkdir: Create a new directory.

rm: Permanently delete a file (type
followed by the name of the desired file).

cp: Allows you to copy a file (type
followed by the path to the desired file).

mv: Allows you to move a file from a directory to another.

rmdir: Permanently delete a folder (type
followed by the name of the folder/directory).

Top: View all the current processes (type
and press Enter to exit this menu).

df -h: This command will display a list of all mounted volumes as well as their characteristics.

ls: Display a list of all your files and folders.

ls -a: Display a list of all your files and folders, including the hidden items.

ls -a folder_name: List the content of the selected folder.

ls -l: Display a list of all your files and folders, as well as their related details (owner, permissions...).

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « Mac OS X Terminal », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!