Command Line

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

How to Use Twitter from the Command Line

Aug 23, 2010 - 5 Comments

Often overlooked, the Terminal can be used to accomplish all sorts of fun stuff. Something that you may find handy, is the ability to Tweet using built in Mac OS X command line utilities like curl. Yes, curl! Now of course this is not a full featured Twitter client by any means, but if you … Read More

Install Watch Command on Mac OS X

Aug 22, 2010 - 17 Comments

If there was one command I would really complain about not being on Mac OS X, it would be “watch”. Watch is one of those great pieces of software that is tiny and completely out of the way, but when needed it will be a life saver. We’re going to show you three different ways … Read More

How to Merge Directories in Mac OS X with ditto

Aug 12, 2010 - 6 Comments
Terminal in macOS

If you have two directories you need joined together, you can either drag and drop everything together, use the ‘mv’ command to move files manually, or, as we’ll show here, you can quickly merge any two directories within Mac OS X by using the command line tool ditto or ‘cp’. The command line is generally … Read More

Repair Disk Permissions from the Command Line in Mac OS X

Aug 10, 2010 - 11 Comments
Use Disk Utility to erase free space on a Mac hard drive

In some situations, you may need to repair a Macs disk permissions but be unable to access the Disk Utility app, perhaps due to remote management or because of a problem with something in OS X. Fortunately there’s another method you can use to repair disk permissions in Mac OS X, accessible through the command … Read More

Combine ping and traceroute with MTR

Aug 5, 2010 - 1 Comment

I came across an excellent alternative to the command line ‘ping’ and ‘traceroute’ tools recently. It’s a utility called mtr, which combines the statistics and prints their functionality into a single network diagnostic tool, reporting details on the network connection between your host machine and whatever the destination host is, determining the address of each … Read More

List All Third Party Kernel Extensions in Mac OS X

Aug 3, 2010 - 7 Comments
Terminal

If you’re troubleshooting a Mac machine with some particularly odd issues that routine measures don’t seem to be resolving, it can be helpful to list what kernel extensions are activated, particularly third party kexts loaded in OS X. Determining what kernel extensions are loaded and running in Mac OS X is rather easy, and using … Read More

Run the Last Executed Command as Root with sudo !!

Jul 20, 2010 - 1 Comment
Terminal

Have you ever tried to run a command line tool to discover that you don’t have the necessary privileges to use it? Or perhaps the command itself actually requires root access to run at all? You’ll typically experience this with a ‘permission denied’ type of error message in terminal. Rather then type out the entire … Read More

Open the Current Finder Window in the Terminal with cdto

Jul 15, 2010 - 6 Comments

Need to access the current Finder directory immediately within the Terminal? While newer Mac OS X versions have an option to enable “New Terminal at Folder” in Services, prior releases do not, so instead you can get cdto, it’s one of those must-have apps for anyone who’s constantly switching between the command line and the … Read More

Immediately Resize, Rotate, and Flip Images via Command Line with sips

Jul 13, 2010 - 12 Comments
sips command line image modification tool

You can resize, rotate, or flip any image file via the Mac’s Terminal using the powerful command line sips tool. Manipulating images with sips is practically instantaneous, and if you need to quickly resize, rotate, or flip an image file and want to stay within the command line, it can definitely beat firing up a … Read More

Compare Two Directories Contents on a Mac Using diff

Jul 12, 2010 - 6 Comments

If you want to see the difference between two folders on a Mac, or compare two directories contents, you can easily do so with the help of the powerful diff command. This tutorial will show you how to compare two directories, and the contents of those directories, by using the Terminal. This command line approach … Read More

Take a screen capture from the command line

Jul 11, 2010 - 3 Comments

Taking screenshots from the command line is made easy, thanks to a utility included in Mac OS X called screencapture. Here’s how to use it: screencapture test.jpg The screen capture will then appear in the directory that the command was executed. There are more advanced features to the screencapture utility though, here’s a few examples. … Read More

Test Wireless Signal Strength from Command Line of Mac OS X

Jul 7, 2010 - 6 Comments
Monitor Wi-Fi Signal Strength from Command Line of Mac OS X

If you’re trying to tweak a wireless router to get the best signal, being able to continuously measure the wi-fi signal strength while you toy with the antennas, placement, and whatever else on the network is really valuable. While most users are best served by using the Mac Wi-Fi Diagnostics app to monitor signal strength … Read More

Play Tetris, Pong, and Other Games in the Terminal

Jun 23, 2010 - 5 Comments

With any installation of Mac OS X comes Emacs (Extensible, customizable, self-documenting real-time display editor – yes that’s what EMACS stands for, now you know!) and with Emacs, some easter eggs that let you play some good old 70’s games directly at the command line. Yes really, there are retro video games embedded in your … Read More

Remove the “Last login” Message from the Terminal

Jun 22, 2010 - 4 Comments
Mac Terminal icon

When you launch a new Terminal window or tab in Mac OS X (and most linux distributions) you’ll be greeted with a little message, either some “last login” details, or maybe even a message from the admin from /etc/motd. The last login details are default in a new Mac OS X terminal session, whereas the … Read More

Enable Single Application Mode in Mac OS X

Jun 7, 2010 - 1 Comment
Single Application Mode in Mac OS X

Single Application Mode is an interesting feature of MacOS and Mac OS X that is often misunderstood, we’ll discuss what the feature is, how it works, and how to enable it on your Mac running nearly any version of Mac OS still in use, whether that’s macOS 12, 11, 10.6, 10.7, 10.8, or newer.

Kill Mac OS X Mouse Acceleration from the command line

Jun 2, 2010 - 55 Comments

You might be asking yourself, what’s mouse acceleration? Essentially mouse acceleration is an algorithm that is deployed in an attempt to make mouse movements feel “natural”. For many PC users, when you first use a Mac, it becomes quite obvious that the mouse is behaving very differently. It will feel sluggish, unpredictable and unresponsive (to varying degrees depending … Read More

How to Find a Websites IP Address

Jun 1, 2010 - 9 Comments
Get the IP Address of a Domain or Website

Finding the numerical IP address of a website or domain URL is pretty easy. We’ll use a terminal utility called nslookup, the command can be used to discover whatever domain resolves to a specific IP. This works for Macs with OS X but also in other unix varieties and even Windows DOS prompt too.

How to Join a Network from Command Line in Mac OS X

May 27, 2010 - 2 Comments

The networksetup utility allows you to join any available network, whether or not it is a router connected through Ethernet, a wi-fi router that is or is not broadcasting an SSID, and whether or not it has any password encryption required. Since most networking is done with wireless communications these days, we’ll focus on joining … 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