Command line users are undoubtedly familiar with man pages, or manual pages, that contain details, help, and documentation to specified commands and functions. Referencing a man page can be essential when trying to learn proper syntax or how a command works, but with how large some manual pages are it can be a real drag … Read More
The command line interface is an alternate method of interacting with macOS and Mac OS X, relying on text based command entry to execute commands and perform tasks. It is accessed on the Mac by using the Terminal application. Generally, the command line is considered advanced, and thus it’s usage tends to be more complex than many standard procedures on a Mac.
Search Command Line
All modern Macs running macOS or Mac OS X come with SSH pre-installed by default, but the SSH (Secure Shell) daemon is also disabled by default. Advanced Mac users may appreciate knowing the ability to enable SSH and disable SSH are both available entirely from the command line of Mac OS, allowing for a simple … Read More
If you need to find the disk ID or disk node identifier (like /dev/disk0s2) of a volume attached to a Mac for one reason or another, perhaps the easiest way to obtain this information from the command line is with the diskutil utility.
Modern Macs with new versions of Mac OS (or Mac OS X) default to automatically reboot themselves upon a system freeze. This is a troubleshooting feature that aims to prevent average users from having to initiate a forced restart, since the Mac would simply restart itself if a system freeze were to occur. While most … Read More
If you spend a lot of time at the command line, you undoubtedly find yourself adjusting and editing text and commands, and you likely often need to move the cursor to a further position in the Terminal from where it’s actively located. Sure you can use the arrow keys to move left and right on … Read More
Mac administrators may find themselves in a situation where they need to display a list of all user accounts on a particular Mac by way of the command line. We’ll review a few methods for advanced individuals to list all accounts, both user and system, on any Mac with any version of Mac OS X … Read More
Polyglots, learners, and the bilingual often want to change their Mac system language for obvious reasons, but another less obvious situation can occur if you’re troubleshooting a Mac that either originates in another country, had the language changed at some point, or is just set to a different language. Since it can be pretty challenging … Read More
For anyone making customizations to their command line appearance, prompt, adding aliases, a new PATH, setting environment variables, or otherwise changing their bash_profile, bashrc, zshrc, and related shell profiles, it’s helpful to know how to quickly reload the profile. Many users simply launch a new shell or open a new terminal window, but there is … Read More
Removing a symbolic link is achieved through the command line, and as we’ll show you, there actually two different ways to undo a soft link. This is aimed at users who spend a lot of time at the command line, but for the less familiar, symbolic links are used in Linux, Mac OS X, and … Read More
Advanced users who spend a fair amount of time in the command line may wish to adjust their sudo password expiration to be more secure (or less secure, by extending the password grace period timeout). Typically this means removing any password timeout so that the default five minute password cache is abandoned, thus requiring the … Read More
Many Mac users running a modern version of OS X El Capitan have noticed the Secure Erase Free Space feature has gone missing from Disk Utility. What the “Erase Free Space” feature did (and still does in prior versions of Mac OS X) was overwrite the free space on a drive to prevent file recovery, … Read More
Most command line users know that the “rm” command for removing and deleting files is quite powerful, able to delete just about any file imaginable within the file system – whether it should be removed or not. Once you add in wildcards and sudo, rm and srm because exponentially more potent and potentially dangerous, so … Read More