terminal

Search terminal

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

Jan 12, 2017 - 1 Comment
Terminal in macOS

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

Nov 3, 2016 - 7 Comments
Terminal in macOS

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

Convert Standard User Account to Administrator Account from Command Line of Mac OS

Nov 1, 2016 - 25 Comments
Change User to Admin Account in Mac OS X

Mac systems administrators may find a need to convert an existing regular user account into an administrator account on a Mac. While most Mac users would be best served by converting account status to admin through the Users & Groups preference panel, advanced users can perform the same function through the Terminal by using the … Read More

Using a Mac Equivalent of Unix “tree” Command to View Folder Trees at Terminal

Sep 9, 2016 - 17 Comments
View Folder Tree Mac Command Line

Mac users who come from a unix background may appreciate knowing how to implement the equivalent to the Unix “tree” command in macOS and Mac OS X. There are actually a few different ways to show a folder tree in the Terminal of Mac OS X, we’ll cover an easy tree equivalent achieved through an … Read More

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

Sep 6, 2016 - 8 Comments
Trigger an alert dialog from command line on Mac

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

Aug 30, 2016 - 53 Comments
Erase disk from command line of Mac OS

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

Aug 27, 2016 - 10 Comments
Search man page for string match

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

Aug 19, 2016 - 3 Comments
Terminal in macOS

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

How to Enable SSH on a Mac from the Command Line

Aug 16, 2016 - 3 Comments
Terminal in macOS

All modern Macs running macOS or Mac OS X come with SSH pre-installed by default, but the SSH (Secure Shell) daemon is also disabled by default. Advanced Mac users may appreciate knowing the ability to enable SSH and disable SSH are both available entirely from the command line of Mac OS, allowing for a simple … Read More

How to Find a Disk ID & Device Node Identifier in Mac OS X Command Line

Aug 9, 2016 - 6 Comments
diskutil list and find disk ID identifier information on Mac

If you need to find the disk ID or disk node identifier (like /dev/disk0s2) of a volume attached to a Mac for one reason or another, perhaps the easiest way to obtain this information from the command line is with the diskutil utility.

Adjust Whether a Mac Restarts Automatically on System Freeze

Jul 29, 2016 - 23 Comments
Terminal in macOS

Modern Macs with new versions of Mac OS (or Mac OS X) default to automatically reboot themselves upon a system freeze. This is a troubleshooting feature that aims to prevent average users from having to initiate a forced restart, since the Mac would simply restart itself if a system freeze were to occur. While most … Read More

Move Cursor Word by Word in Terminal for Mac OS X

Jul 14, 2016 - 7 Comments

If you spend a lot of time at the command line, you undoubtedly find yourself adjusting and editing text and commands, and you likely often need to move the cursor to a further position in the Terminal from where it’s actively located. Sure you can use the arrow keys to move left and right on … Read More

List User Accounts on Mac from Command Line

Jul 5, 2016 - 19 Comments
Terminal in macOS

Mac administrators may find themselves in a situation where they need to display a list of all user accounts on a particular Mac by way of the command line. We’ll review a few methods for advanced individuals to list all accounts, both user and system, on any Mac with any version of Mac OS X … Read More

How to Change Mac System Language via Command Line

Jun 29, 2016 - 2 Comments
Change Mac system language from command line

Polyglots, learners, and the bilingual often want to change their Mac system language for obvious reasons, but another less obvious situation can occur if you’re troubleshooting a Mac that either originates in another country, had the language changed at some point, or is just set to a different language. Since it can be pretty challenging … Read More

Get a Fun Vintage Terminal for Mac with Cool Retro Term

Jun 24, 2016 - 8 Comments
Amazing retro Mac terminal APPLE II

Feel like taking another trip down memory lane? With the assistance of an excellent fun free retro terminal emulator fittingly called Cool Retro Term, you can experience the golden yesteryears of cathode display computing and pretend your shiny new Mac is an ancient Apple II or IBM workstation.

How to Remove a Symbolic Link (Symlink)

May 25, 2016 - 8 Comments
Remove a symbolic link with unlink or rm command

Removing a symbolic link is achieved through the command line, and as we’ll show you, there actually two different ways to undo a soft link. This is aimed at users who spend a lot of time at the command line, but for the less familiar, symbolic links are used in Linux, Mac OS X, and … Read More

How to Secure Erase Free Space on Mac Drives with OS X El Capitan

Apr 28, 2016 - 20 Comments
Erase free space on a Mac drive from the command line

Many Mac users running a modern version of OS X El Capitan have noticed the Secure Erase Free Space feature has gone missing from Disk Utility. What the “Erase Free Space” feature did (and still does in prior versions of Mac OS X) was overwrite the free space on a drive to prevent file recovery, … Read More

Enable a Confirmation When Deleting Files & Folders with rm Command

Apr 21, 2016 - 5 Comments
Terminal in macOS

Most command line users know that the “rm” command for removing and deleting files is quite powerful, able to delete just about any file imaginable within the file system – whether it should be removed or not. Once you add in wildcards and sudo, rm and srm because exponentially more potent and potentially dangerous, so … 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