Command Line

The command line interface is an alternate method of interacting with 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

How to Use “Secure Empty Trash” Equivalent in OS X El Capitan

Oct 12, 2015 - 5 Comments
Secure Empty Trash equivalent in OS X

Many Mac users have noticed that the Secure Empty Trash feature has been removed in OS X El Capitan (10.11 or later), the reason the feature was removed is basically because it did not work all the time, but more on that in a moment. First, let’s cover how you can perform the equivalent of … Read More

How to Disable System Integrity Protection (rootless) in OS X El Capitan

Oct 5, 2015 - 30 Comments
Enable or Disable System Integrity Protection Rootless in Mac OS X

Apple has enabled a new default security oriented featured called System Integrity Protection, often called rootless, in OS X 10.11 onward. The rootless feature is aimed at preventing Mac OS X compromise by malicious code, whether intentionally or accidentally, and essentially what SIP does is lock down specific system level locations in the file system … Read More

How to Make Apache Start httpd Automatically on Boot in Mac OS X

Aug 30, 2015 - 3 Comments
Start Apache in Mac OS X Automatically

Mac based web developers are probably familiar with manually starting and stopping the Apache web server in OS X through the command line by now, but if you want Apache to start itself automatically upon boot and reboot of a Mac, you’ll want to go a step further and use launchctl. By doing so, webdevs … Read More

Setting Wallpaper from the Command Line in Mac OS X

Aug 28, 2015 - 4 Comments
Terminal in OS X

Ever wished you could set a Macs wallpaper image from the command line in OS X? As a matter of fact, you can change the desktop background picture from the terminal, which can be useful for a variety of situations ranging from inclusion in a setup script, to remote management, automating, or whatever else you … Read More

How to Determine File Type & Encoding from Command Line in Mac OS X

Aug 11, 2015 - 2 Comments
Terminal in OS X

Typically if you’re looking to determine the file type and encoding of an item, you can simply look at the file in the Mac Finder, check the file name extension, Get Info about the file, or even open it to quickly find out what the file is. Of course, that’s limited to the user friendly … Read More

How to Create Symbolic Links at Command Line of Mac OS X

Aug 6, 2015 - 5 Comments
Terminal in OS X

A symbolic link created at the command line allows a linked object in the file system to point to an original object in a different location. In this way, symbolic links behave much like an alias does in the Mac OS X GUI, except that the linking and reference between files or folders is done … Read More

Release & Renew DHCP from the Command Line with ipconfig

Jul 30, 2015 - 3 Comments
Terminal in OS X

If you need to release and renew DHCP from the command line on a Mac, the helpful ipconfig utility is able to do so quickly. Do keep in mind that for most OS X users, renewing a DHCP lease from the Mac System Preferences is the best approach because it’s user friendly and just as … Read More

Where to Set Environment Variables in Mac OS X

Jul 28, 2015 - 7 Comments
Terminal in OS X

At the command line, environmental variables are defined for the current shell and become inherited by any running command or process. They can determine anything from the default shell, the PATH, the users home directory, to the terminal emulation type, current working directory, where a history file is located, language and localization settings, and going … Read More

How to Find Wi-Fi Network Passwords from Command Line on Mac

Jul 24, 2015 - 10 Comments
Terminal in OS X

Given the complexity of some wi-fi network passwords combined with the general infrequency of entering them and that they’re typically saved on use, it’s not terribly unusual to forget what a specific routers wireless password is. Fortunately, if you’re on a Mac, there are a few ways to go about finding those lost or forgotten … Read More

How to Add Gatekeeper Exceptions from Command Line in Mac OS X

Jul 15, 2015 - 7 Comments
Terminal in OS X

Typically if you want to have an application launch approved by the GateKeeper feature on a Mac, you right-click on the unidentified developers application and choose “Open”, or go through System Preferences to bypass Gatekeeper that way. Another option is to manually add application approvals and exceptions to Gatekeeper by turning to the command line … Read More

How to Load & Unload Kernel Extensions in OS X

Jun 24, 2015 - 5 Comments
Loading and unloading kernel extensions in Mac OS X

Kernel extensions, called kext for short, are modules of code that are loaded directly into the kernel space of OS X, able to run at a low-level to perform a variety of tasks. Most kexts are part of the core Mac OS X system software, typically hardware device drivers, but some third party apps will … Read More

How to Copy an ISO to a USB Drive from Mac OS X with dd

Jun 5, 2015 - 17 Comments
Find the disk identifier with diskutil list to direct dd to

If you have downloaded an ISO image of another operating system, say Ubuntu Linux or Windows 10, and you wish to turn that ISO image file into a bootable USB installer drive using a USB flash drive or USB key, you’ll find the most reliable way to copy or ‘burn’ the ISO to that target … Read More

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates