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

Instantly Eject All Mounted Drives & Disks from the Command Line in Mac OS X

May 22, 2014 - 12 Comments
Eject all mounted volumes from the command line of Mac OS X

The next time you’re at the command line and need to eject every single mounted volume, hard drive, disk, disk image, and/or external drive attached to a Mac, you can instantly eject them all in one fell swoop with a handy osascript command string. This is great if you work frequently in the Terminal and … Read More

How to Check Bluetooth Keyboard Battery Levels from the Command Line on Mac OS X

May 18, 2014 - 7 Comments
Get Bluetooth battery life from the command line of Mac OS X

Ever needed to remotely check the battery level of a Bluetooth keyboard connected to a Mac? Or maybe you’re just a heavy Terminal user and wanted to see the current battery life of a wireless keyboard without having to leave the command line? You can do that easily through the Terminal of either a remote … Read More

Speed Up Terminal App in Mac OS X with These 4 Performance Tricks

Apr 30, 2014 - 5 Comments
Speed up the Terminal with these tricks

Many advanced Mac users spend a lot of time at the command line of OS X, accessed through the Terminal app. While generally the Terminal is fast and efficient, sometimes it can slow down over time, or suffer from some performance degradation due to user preference settings. If you feel that Terminal app is being … Read More

How to Disable IPv6 in Mac OS X

Apr 18, 2014 - 6 Comments
IPv6 Mac

Some Mac users may wish to disable IPv6 networking support on their machines. This may be desirable to avoid certain networking conflicts, or to increase security for users in higher threat environments, since IPv6 has been found by researchers to be potentially vulnerable to man-in-the-middle and other network attacks. Though most users don’t use IPv6 … Read More

Send Data Across Networked Computers with Netcat Using the Command Line

Mar 27, 2014 - 10 Comments
Send data over a network with netcat

Netcat is a powerful command line tool that can read and write data across a network connection using TCP/IP, it’s commonly used for relays, file transfer, port scanning, amongst other things. Though netcat origins are from the unix and linux worlds, netcat is also built into Mac OS X, and we’re going to use the … Read More

Send an SMS Text Message from the Command Line

Mar 12, 2014 - 29 Comments
Send a text message from the command line

When you think of sending out text messages you probably think of the iPhone or an Android, and the command line doesn’t cross your mind, but thanks to the ever-useful curl command, you can send out a SMS text message to any phone number right from the Terminal. Yes, curl, the same command line tool … Read More

Place the Cursor at the Mouse Position in Terminal with an Option+Click

Mar 6, 2014 - 6 Comments
Place a cursor anywhere in the Terminal by using Option+Click

Most command line users rely heavily on Terminal keyboard navigation to move about within text files and get around within the Terminal, but OS X has a super simple trick up its sleeve that lets you instantly position the mouse cursor anywhere in the Terminal. Yup, no more tabbing around or repeatedly tapping on the … Read More

Convert an Audio File into an Android or iPhone Ringtone from Terminal

Feb 14, 2014 - 5 Comments
Convert a ringtone from the command line

Ever wanted to create an iPhone or Android ringtone from an existing audio file, but wanted to complete the process entirely from the command line? You’re in luck, because OS X has a little audio conversion tool that can turn any existing audio track into an Android or iPhone compatible ringtone in seconds. We’ll break … Read More

Using cURL to Download Remote Files from the Command Line

Feb 13, 2014 - 1 Comment
Download with curl

The powerful curl command line tool can be used to download files from just about any remote server. Longtime command line users know this can be useful for a wide variety of situations, but to keep things simple, many will find that downloading a file with curl can often be a quicker alternative to using … Read More

How to Install Command Line Tools in OS X Mavericks (Without Xcode)

Feb 12, 2014 - 9 Comments
terminal

Mac users who prefer to have a more traditional Unix toolkit accessible to them through the Terminal may wish to install the optional Command Line Tools subsection of the Xcode IDE. From OS X Mavericks onward, this is now easily possible directly and without installing the entire Xcode package first, no developer account is required … Read More

How to Add a User to the Sudoers File in Mac OS X

Feb 6, 2014 - 1 Comment
User added to the sudoers file in OS X

Advanced users may need to add a user account to the sudoers file, which allows that user to run certain commands with root privileges. To greatly simplify what that means, these newly privileged user accounts will then be able to execute commands without getting permission denied errors or having to prefix a terminal command with … Read More

Turning On Mac Touch-To-Click Support from the Command Line

Jan 31, 2014 - 4 Comments
Enabling touch clicking from the command line of OS X

Touch-based clicking is an alternate input form that uses trackpad (or Magic Mouse) taps as a click. For most Mac users, turning on tap-to-click is best done from OS X System Preferences, but advanced users who require more control, automation, or remote enabling of the feature can also enable tap-to-click through the command line by … Read More

Subscribe to OSXDaily

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