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 Run Homebrew & x86 Terminal Apps on M1 Macs

Nov 18, 2020 - 1 Comment
Mac Terminal icon

If you’re one of the early adopters who acquired an M1 Apple Silicon Mac and find that Homebrew and many other x86 terminal apps don’t yet have support for the new Arm architecture, you’ll be happy to know there’s a fairly simple workaround. The trick is to run a parallel Terminal application through Rosetta. And … Read More

How to Copy at Command Line Showing Progress & Speed Indicator

Nov 9, 2020 - 5 Comments
Terminal in macOS

Ever wished you could see the transfer progress and speed of copying files at the command line? If you’re familiar with the command line of Mac OS, Linux, or any other Unix operating system, you likely use the ‘cp’ or ditto commands to copy files, directories, and other data. The ditto and cp command is … Read More

How to Convert a MacOS Installer to ISO

Jul 20, 2020 - 10 Comments
macOS installer ISO

Advanced Mac users may wish to convert a MacOS Installer application into an ISO file. Typically the resulting installer ISO files are used for installing macOS into virtual machines like VMWare or VirtualBox, but they can also be used to burn the ISO to media to create a boot disk. This offers an alternative to … Read More

How to List All Cron Jobs on a Mac or Linux PC

Jun 5, 2020 - 7 Comments
Mac Terminal icon

Need to quickly see a list of all cron jobs on a computer? You can easily see all scheduled cron jobs by using the crontab command, and seeing cron data works the same on Mac as well as Linux and most other unix environments too. Perhaps you have a script or task running and you’re … Read More

How to Enable Startup Boot Sound Chime on Newer Macs

Apr 29, 2020 - 12 Comments
How to enable boot chime sound on newer Macs

Want to re-enable the startup boot chime sound effect on a new Mac? You can do that with a command line string entered into the Macs Terminal. As you may know, new Macs default to not making a startup boot chime sound effect, this is in contrast to every prior Mac model which included a … Read More

How to Fix Cron Permission Issues in MacOS Catalina & Mojave

Apr 27, 2020 - 5 Comments
Mac Terminal icon

Some advanced Mac users may have noticed that certain shell scripts with cron, cron jobs, and crontab are either not working at all, or not able to function properly in the newest versions of MacOS, notably Mojave 10.14, Catalina 10.15 and later. Depending on the situation, this may be accompanied by a permissions error, an … Read More

How to Download Full MacOS Installers from Command Line

Apr 13, 2020 - 45 Comments
How to download full macOS Installer applications from Terminal

Mac users can download full complete MacOS installers directly from the command line. This is an incredibly useful feature particularly if you want to build USB boot drive installers, you manage multiple Macs, or you simply want to have full access to a complete installer application of MacOS for any other purpose. With this particular … Read More

How to Adjust Screen Brightness on Mac from Command Line

Aug 14, 2019 - 1 Comment
Terminal in macOS

Want to change the screen brightness on Mac from the command line? You can use the Terminal to adjust screen brightness to be brighter or dimmer with a few different methods, as we’ll demonstrate here. First we’ll show you a handy way to increase or decrease Mac screen brightness using osascript at the command line, … Read More

How to Fix Unzip Error “End-of-central-directory signature not found”

May 12, 2019 - 4 Comments
Mac Terminal icon

Rarely, you may attempt to unzip a zip archive and come across an error that states “End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this … Read More

How to Log Off Another Users ssh Connection by Command Line in Mac OS or Linux

Apr 3, 2019 - 4 Comments
How to log off an ssh user

Using SSH, or Secure Shell, is a very common way to establish remote connections to Mac and Linux machines from the command line. If you’re a systems administrator, or if you have SSH enabled on a Mac for another reason, you may eventually need to log off another users ssh connection. There are several ways … Read More

How to Test ParrotSec Linux on a Mac with Parallels Desktop Lite

Feb 24, 2019 - 2 Comments
ParrotSec Linux running on Mac in live mode

Advanced Mac users who are interested in the world of Information Security (InfoSec) can easily test out ParrotSec Linux in live boot mode by using a virtual machine. In this particular walkthrough, we’ll show you how to quickly get ParrotSec running in live mode within the free Parallels Desktop Lite app, but if you want … Read More

How to Run a Simple Web Server on iPad or iPhone

Feb 20, 2019 - 10 Comments
Simple web server running on iPad or iPhone

Want to run a simple web server off of an iPad or iPhone? If you have iSH linux shell running in iOS then you can easily start and run a simple web server directly from an iPhone or iPad. By running iSH and starting a web server with python 3 you can then serve either … Read More

How to Use zsh as Default in Terminal for Mac OS

Dec 29, 2018 - 5 Comments
Terminal in macOS

Zsh, or z shell, is a popular shell alternative to bash and tcsh, complete with many improvements and customization options offered through the Oh-My-ZSH project. If you’d like to use zsh as the default shell in Terminal for Mac OS rather than bash, you can do so rather easily with taking the following steps:

How to Get a Linux Shell on iPad or iPhone with iSH

Dec 11, 2018 - 14 Comments
iSH Linux shell on iPhone and iPad

Have you ever wished you had a Linux command line on an iPad or iPhone? With iSH you can get pretty close to accomplishing that goal. iSH Shell is a Linux shell for iOS that uses an x86 emulator to run a simplified version of Alpine Linux on an iPad or iPhone. You can even … Read More

How to Boot in Single User Mode on a Mac

Oct 29, 2018 - 4 Comments
How to Boot in Single User Mode on Mac

Advanced Mac users can boot into Single User Mode, which loads directly into the command line of Mac OS and skips the familiar friendly user interface. Booting into Single User Mode on a Mac can be helpful for some troubleshooting purposes and administrative tasks, but is generally best reserved for use by advanced Mac users … Read More

How to List All Homebrew Packages Installed on a Mac

Oct 20, 2018 - 7 Comments
Install Homebrew on Mac

Want to quickly see all Homebrew packages installed on a Mac? You may already know the path where Homebrew packages are installed to, but you don’t need to list a directory structure to get a list of Homebrew packages that have been installed in Mac OS. Instead, you can issue a simple command to show … Read More

Fix Terminal “Operation not permitted” Error in MacOS Mojave

Oct 9, 2018 - 43 Comments
Fix Operation Not Permitted Terminal Error in Mac OS

If you’re a Mac command line user you may have noticed that many frequently used commands entered into the Terminal (or iTerm) result in an “Operation not permitted” error message since updating to MacOS Mojave 10.14 or later. The “Operation not permitted” error in the Terminal can be seen after issuing even simple commands like … Read More

How to Get Octal File Permissions from Command Line in Mac OS

Sep 6, 2018 - 4 Comments
Mac Terminal icon

Command line users are likely familiar with using chmod to set file permissions in numerical or octal format, for example running a command like ‘chmod 755 filename’, but have you ever wondered how you can get file permissions in octal format? If you want to see or view the octal numerical value of permissions of … 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