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.
: 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
Type the desired command and confirm with the Enter
Here's a roundup of some of the basic OSX commands:
: Display information about a specific command (type
followed by the name of the desired command).
): Allows you to navigate from one directory to another (type
to go into your personal folder).
(Print Working Directory
): Display the path to the current directory.
: Create a new directory.
: Permanently delete a file (type
followed by the name of the desired file).
: Allows you to copy a file (type
followed by the path to the desired file).
: Allows you to move a file from a directory to another.
: Permanently delete a folder (type
followed by the name of the folder/directory).
: View all the current processes (type
and press Enter
to exit this menu).
: This command will display a list of all mounted volumes as well as their characteristics.
: Display a list of all your files and folders.
: Display a list of all your files and folders, including the hidden items.
ls -a folder_name
: List the content of the selected folder.
: Display a list of all your files and folders, as well as their related details (owner, permissions...).