Tag Archive: Command


Gracefully Close an Application from the Command Line in OS X

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

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

  [Read More…]

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

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

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

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 Get Current Screen Resolution from Command Line in Mac OS X

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

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

Maintain & Recall Command Line Clipboard History with iTerm 2

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

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

Quick Launch Command Manual Pages from the Terminal Help Menu

The next time you’re stuck trying to figure out a terminal command, or maybe you’re just trying to learn a new one, don’t be afraid to ask for help… from the OS X Terminal apps very own Help menu. Yes seriously, that’s because the Help menu of Terminal app can serve as a man (manual) … Read More

  [Read More…]