Tag Archive: Line


How to Fix “Command Not Found” Errors in Mac Command Line

Advanced Mac users that utilize the command line may occasionally encounter a “command not found” error message when attempting to run something in the command line. The “command not found” error in the Terminal can surface for several reasons in the command line of MacOS and Mac OS X, as we’ll discuss here, and of … Read More

How to Write Image Files to SD Card with dd from Command Line of Mac or Linux

Need to write an image file to an SD card? The command line ‘dd’ tool can do that for you, writing a disk image .img file to an SD card with minimal effort. A nice perk to using ‘dd’ for writing image files to an SD card is that it works for Mac OS as … Read More

How to cURL POST from the Command Line

Curl is the powerful command line utility that allows you to transfer data to or from a server or URL. One common function used by developers is to make a POST request with curl, which is what we’re going to cover here. We’ll keep things fairly simple and show three examples to make a POST … Read More

How to Kill a Process by Name Instead of PID via Command Line

Command line users rely on the ‘kill’ command to terminate a process as defined by the appropriate process identifier (PID). While there’s nothing wrong with targeting processes by their PID, another approach which is often easier is to target a process by name, rather than its unique identifier. There are a few ways to kill … Read More

View IP Addresses of LAN Devices from Command Line in Mac OS

If you need to view the IP addresses of other hardware on the same LAN (Local Area Network) as a Mac, the command line arp tool works quite well. You’ll quickly find other devices IP and accompanying MAC addresses, which can make direct network connections easier and be helpful for many other network and troubleshooting … Read More

How to Trigger an Alert Dialog Pop-Up from Command Line in Mac OS

Ever wished you could make a dialog alert pop-up on the Mac by way of the Terminal? Well it turns out that you can with the always useful osascript command, which allows execution of AppleScript from the Terminal. For those who spend a lot of time at the command line of MacOS, this can be … Read More

How to Erase a Disk from Command Line in Mac OS X

Some Mac users may require the ability to erase a disk or erase a hard drive from the command line on Mac OS, a task which is typically performed through the Disk Utility application from the GUI. The command line approach to disk erasure in macOS is a bit different and it requires precise syntax … Read More

How to Search Man Pages at the Command Line

Command line users are undoubtedly familiar with man pages, or manual pages, that contain details, help, and documentation to specified commands and functions. Referencing a man page can be essential when trying to learn proper syntax or how a command works, but with how large some manual pages are it can be a real drag … Read More

Run AppleScript from the Command Line in Mac OS X with osascript

Mac users can run AppleScript from the command line if desired, either by running a script file directly or by giving the osascript command direct plain text script statements. This can be useful for many purposes, but should be particularly nice for users who spend a lot of time in the command line or who … Read More