Command Line

Search Command Line

How to Convert plist Files to XML or Binary in Mac OS X

Mar 10, 2016 - 4 Comments
Convert a plist file to XML or binary in Mac OS X

Plist files contain preference specifics and properties relevant to a particular application or portion of Mac OS X system software. Depending on where the plist file is located and what function they serve, they can either be in XML format, binary format, and sometimes even json. For users who need to modify a plist file … Read More

The Mac Hosts File: How to Modify /etc/hosts in Mac OS X with TextEdit

Feb 29, 2016 - 15 Comments
How to Edit the hosts file in TextEdit in Mac OS X

The Mac hosts file is a system level file located at /etc/hosts which maps IP addresses to host names for Mac OS X networking. Many users edit and modify the hosts file so that they can point a domain to a different IP address, whether for the purpose of local development, blocking sites, or simply … Read More

Get a Calendar from Command Line for Any Date, Month, Year

Feb 24, 2016 - 9 Comments
Get a calendar from the command line of Mac OS X

Though just about everyone has our phones glued to us with a dedicated calendar app, for users who spend considerable time in the command line it can be more efficient to stay put rather than stray to another app or pick up a different device to flip around in the calendar and find a given … Read More

Get Weather Reports from the Command Line with finger

Feb 18, 2016 - 21 Comments
Get weather forecast from the command line with finger

There’s no shortage of methods to retrieve a weather report, the web is full of weather resources, everyones iPhone, Apple Watch, and smartphone has a weather app, Siri can tell you the weather, and you can even get the current weather in the menu bar of OS X or from Spotlight on the Mac too. … Read More

How to View & Clear the Mac NVRAM Contents from Terminal in Mac OS X

Dec 16, 2015 - 4 Comments
Terminal in macOS

Advanced Mac users may find it necessary to view or directly manipulate firmware variables found within NVRAM on the computer. Typically the NVRAM contains specific system data about things like the system audio level, startup disk details, an active user name, screen backlighting and resolution, and other technical details. While most users have no business … Read More

Get MacBook Battery Life Percent Time Remaining from Command Line in Mac OS X

Dec 10, 2015 - 5 Comments
Get Mac Battery Life from the Command Line in OS X

While most Mac laptop users will rely on the battery percentage indicator found in the menu bar of OS X, those who spend a lot of time at the command line may find it useful to know that MacBook battery life and battery charge percentage remaining information can be retrieved directly from the Terminal in … Read More

How to View & Watch the Firewall Log in Mac OS X

Nov 24, 2015 - 6 Comments
View the application firewall log in Mac OS X with Console app

Users who have enabled the firewall in Mac OS X may find it useful to be view, read, and monitor the associated logs with the system firewall. As you’d expect, the app firewall logs show you what applications and processes have attempted to connect to the Mac, including accepted and refused connections. There are several … Read More

How to Burn Disc Images in Mac OS Without Disk Utility

Nov 22, 2015 - 31 Comments
Burn an ISO in Mac OS X

Apple removed the ability to burn disc images from Disk Utility from MacOS High Sierra, Sierra, OS X 10.11 El Capitan, and newer, and while that makes sense for many Macs that no longer have SuperDrives, CDRW, and DVD burners, for those who use an external burner, use disc drive sharing, or who do have … Read More

How to Flush DNS Cache in OS X El Capitan

Nov 16, 2015 - 17 Comments
Terminal in macOS

If you adjust DNS settings on a Mac and the changes seemingly haven’t taken effect, or perhaps you discover that a given name server address is not resolving as intended, flushing the DNS cache is often a quick resolution. Flushing DNS cache in OS X El Capitan (10.11 or later) is easily possible with a … Read More

How to Prevent Gatekeeper Turning Back On Automatically in Mac OS X

Nov 5, 2015 - 15 Comments
Terminal in macOS

Gatekeeper is a security feature built into Mac OS X which helps to prevent unauthorized applications and code from executing on a Mac. Most users have encountered Gatekeeper before when they go to open an application downloaded from the internet, where you see an “App can’t be opened because it is from an unidentified developer” … Read More

How to Verify & Repair Permissions in OS X El Capitan

Nov 4, 2015 - 68 Comments

The Disk Utility app has long contained the ability to verify and repair disk permissions on a Mac, but in the latest versions of OS X this ability has been removed. That doesn’t mean you can’t verify permissions and repair permissions in OS X El Capitan 10.11 and later however, you just need to turn … Read More

How to Enable TRIM on Third Party SSDs in Mac OS X with trimforce

Oct 29, 2015 - 36 Comments
Using trimforce to enable TRIM in Mac OS X

For Mac users who utilize third party SSD volumes, the new trimforce command allows OS X to forcibly enable the TRIM function on those drives. trimforce is built directly into newer releases of OS X and is really quite easy to enable (or disable), requiring a quick visit to the command line and a reboot … Read More

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

Oct 12, 2015 - 49 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 Mac OS X

Oct 5, 2015 - 80 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 or SIP, in Mac OS from versions 10.11 onward. The SIP / 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 … Read More

Fix OS X El Capitan Beta Updates Not Showing in Software Update

Sep 5, 2015 - 29 Comments
Show missing beta updates in OS X

If you’re a Mac user who is beta testing OS X El Capitan, either as part of the OS X Public Beta program or as a registered Mac Developer, you may have come across a situation where the latest available update does not appear for you in the Mac App Store as it should. For … 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 - 6 Comments
Terminal in macOS

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 - 8 Comments
Terminal in macOS

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

Subscribe to OSXDaily

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

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site