- Mac terminal list directory contents mac os x#
- Mac terminal list directory contents mac#
- Mac terminal list directory contents windows#
For example, if from the command prompt the operator wishes to change the working directory to the Applications folder, the user should enter the following command:Įntering cd followed by the absolute path to the file or directory in question enables operators to navigate to specific locations quickly when using the command line. The cd command is used to navigate to the directory or folder the user wishes to access. The change directory (cd), list (ls) and print working directory (pwd) commands are particularly helpful when navigating a Mac’s directory or file system structure using Terminal.
Mac terminal list directory contents mac#
Once Terminal is opened (by opening Finder, selecting Applications, opening the Utilities directory and double-clicking Terminal), the Mac user is greeted with the command prompt. Using Terminal to access files and folders Beneath the root, on most Macs by default, are several additional folders, including Applications (which stores programs) and Users (which stores home folder information for each user possessing an account on the machine). The root directory is often referred to as /. To navigate to a specific file’s path, which can prove critical when attempting to administer a Mac using the Terminal, first, the user must understand the directory structure. That may seem obvious to more advanced users and administrators, but even some more seasoned users may not be aware an absolute directory path exists for each file. Folders located within (or beneath) the root directory are known as subfolders or subdirectories, two different ways of saying the same thing.
The top, uppermost folder is known as the root directory.
Mac terminal list directory contents mac os x#
The Mac OS X file system stores files within folders, also known as directories. Still others, accustomed to logging on to Macs and finding the desktop, applications, documents, downloads, movies, music, pictures and other files already stored in handy, easily folders accessed via the Finder, aren’t necessarily confident they understand where these folders and their contents are truly stored on the Mac’s hard drive.
Mac terminal list directory contents windows#
Many Mac administrators began training as Windows professionals. However, it’s important to also understand how Macs store and access files. Mac techs and operators can quickly learn the basics of Terminal and shell operations, resources that enable more granular control and administration of Mac computers. Mac administrators and end users need not be intimidated by their Apple computer’s under-the-hood operations. Understand the Mac directory structure: Basic commandsĮrik Eckel explains the Mac directory structure for new users and administrators and goes over a few basic commands to get you started working with files.