Command Line

Search Command Line

How to Start & Stop MySQL Manually in OS X Yosemite

Nov 26, 2014 - Leave a Comment
MySQL Start and Stop server

Many developers require MySQL on their Macs, but if you’ve tried to install MySQL in OS X Yosemite, you likely noticed that you’ll get an “installation failed” error during the process. That error sounds worse than it is, because you can avoid it entirely by choosing not to install the startup item included in the … Read More

How to Flush DNS Cache in OS X Yosemite with discoveryutil

Nov 20, 2014 - 4 Comments
Clear DNS Cache in Mac OS X

Some Mac users may encounter situations where they need to flush DNS cache in OS X for a name server to resolve properly, or for some DNS address change to become noticed by their individual computer. This is particularly relevant for system administrators, network admins, and web developers, but there are certainly situations where other … Read More

OS X Bash Update 1.0 Released to Address Shellshock Security Flaw

Sep 29, 2014 - 20 Comments
Terminal in OS X

Apple has released an important security update for Mac users, labeled as OS X Bash Update 1.0. The update addresses a recently discovered critical security flaw known as “Shellshock” that impacts the bash shell, the default shell used by the Terminal app of OS X, and is recommended for all users to install even if … Read More

Gracefully Close an Application from the Command Line in OS X

Sep 5, 2014 - 5 Comments

Quitting apps gracefully is typically done through the appropriate application menu by choosing “Quit”, but the Mac GUI is obviously inaccessible from the command line of OS X. So when most command line users are confronted with the need to exit an application, they wind up using the ‘kill’ command to terminate the process and … Read More

How to Enable Safe Mode from the Command Line on a Mac

Sep 4, 2014 - 2 Comments
Terminal in OS X

Troubleshooting complex issues on a Mac can be challenging as is, and if you’re ever confronted with some complex situations you may find the command line to lend a major hand. In this case, advanced users can boot a Mac into safe mode through the usage of the nvram utility, a tool which allows users … Read More

List All Network Hardware from the Command Line in OS X

Sep 3, 2014 - 6 Comments
Network Utility in OS X

The networksetup utility offers a command line interface to configuring the variety of Mac networking features available in OS X. We’ve discussed networksetup and accompanying features many times here for more advanced purposes, but one of the simpler uses of networksetup is that it can list out every piece of networking hardware attached to a … Read More

How to Get Current Screen Resolution from Command Line in Mac OS X

Aug 31, 2014 - 5 Comments
Display resolutions in Mac

Typically Mac users will retrieve the screen resolution of connected displays through the Displays system preference panel in OS X. There’s certainly nothing wrong with that approach, it’s easy and quick, but because it uses the graphical interface of OS X it’s not necessary helpful for scripting purposes or remote management through Remote Login and … Read More

How to Add a New Path to PATH the Right Way at Command Line

Aug 14, 2014 - 2 Comments
Add a new PATH to $PATH in OS X Terminal

The user path is the series of directories that command line programs are searched in order to run. For example, if you type ‘iostat’ into the terminal, then iostat will be run from /usr/sbin because “/usr/sbin” is part of your $PATH. Accordingly, users who frequently use the command line may need to adjust or add … Read More

How to Completely Remove Apps & Software in Mac OS X by Manual Terminal Uninstall

Jul 31, 2014 - 11 Comments
Terminal

Most apps in Mac OS X can be uninstalled easily by dragging them into the Trash from the /Applications/ folder, and many others come with accompanying uninstall applications that will clean house and completely remove the apps too. Additionally, there are third party utilities for OS X that can make total removal of apps as … Read More

Advanced Mac OS X Diagnostics & Troubleshooting with sysdiagnose

Jul 29, 2014 - 6 Comments
sysdiagnose advanced Mac diagnostics in OS X

Mac users who are dealing with particularly complex or troublesome issues with OS X can turn to an advanced diagnostics tool available from the command line in Mac OS X. The tool, called sysdiagnose, offers detailed technical analysis and reports of a huge variety of components of OS X and the Mac hardware, making it … Read More

Maintain & Recall Command Line Clipboard History with iTerm 2

Jul 15, 2014 - 2 Comments
Command Line Clipboard History in iTerm2

Mac users who spend a lot of time at the command line have yet another reason to use iTerm 2 as their default terminal client; clipboard history. Added in the most recent version of iTerm, a running history of OS X clipboard activity can be natively stored, recalled, and summoned directly in iTerm2, accessible through … Read More

Get a Rainbow of Colors for Terminal Command Output with lolcat

Jul 3, 2014 - 3 Comments
lolcat rainbow terminal cat output

The Terminal defaults to being a bunch of boring black on white text, and sure you can change the appearance to other themes, add colors, background images, opacity, transparencies, and other UI customizations, but what you really want is obviously a rainbow version of the cat command for input and output, right? Right, of course … Read More

Subscribe to OSXDaily

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