Command Line

Search Command Line

How to View & Remove Extended Attributes from a File on Mac OS

May 3, 2018 - 10 Comments
Terminal in macOS

Extended Attributes are metadata components that can be unique to specific files and file types on Mac OS. Those extended attributes can be anything from identifying data about the file itself, to quarantine information, origin data, label information, amongst other types of metadata. Sometimes, advanced Mac users may review extended attributes for a file, or … Read More

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

Apr 18, 2018 - 12 Comments
Terminal in macOS

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 Exclude a Word with grep

Apr 5, 2018 - 3 Comments
Terminal in macOS

The grep command line tool is wildly useful for searching through text data for lines and snippets that match a defined string, character, word, or regular expression. While most uses of grep are for sorting data for syntax matches, what if you want to exclude a word or string with grep instead? Excluding line matches … Read More

How to Run 64-Bit Only Mode Mac OS

Apr 4, 2018 - 9 Comments
How to run MacOS in 64-bit only mode

Advanced Mac users, administrators, and developers who wish to test Mac OS in 64-bit mode can do so with the help of a terminal command. Essentially this will only allow 64-bit applications and processes to run on the Mac, which can be helpful for discovering what (if any) apps, tasks, components, processes, and items may … Read More

9 of the Best Homebrew Packages for Mac

Mar 26, 2018 - 17 Comments
Top Homebrew packages for Mac

If you’re an advanced Mac user who spends a considerable amount of time at the command line, you likely have Homebrew installed by now. So, how about sharing a list of some of the best Homebrew packages available for Mac users?

Stupid Terminal Tricks: The Dancing ASCII Party Parrot

Mar 23, 2018 - 9 Comments

Want to horse around in the Terminal? If you have already finished watching Star Wars in ASCII from the command line, you have Rickrolled the Terminal dozens of times, and you’re done watching The Matrix style scrolling screens of text gibberish, and the scrolling screens of poop emoji is no longer cutting the mustard, perhaps … Read More

How to Show the Expanded Print Details Dialog in Mac OS by Default

Mar 19, 2018 - 17 Comments
How to show the expanded Print dialog always in Mac OS

Do you frequently access the detailed printing options when printing from a Mac? If so, you’ll really appreciate this trick to always show the expanded print dialog window and settings screen.

Make a SuperDrive Work on Unsupported Macs? It’s Possible!

Mar 17, 2018 - 50 Comments
SuperDrive on a Mac

The Apple SuperDrive is an external CD / DVD drive that reads and writes to optical discs, and while it works great with many Macs, there are some Mac models where the SuperDrive doesn’t work, like any Mac that happened to come with a built-in optical drive. For the computers that do not support the … Read More

Get Instant Command Line Access from Anywhere in Mac OS with iTerm2

Mar 14, 2018 - 12 Comments
Access a command line from anywhere on the Mac

If you’re a command line user, you can imagine that it’d be useful to have a Terminal window available instantly to you from anywhere on the Mac, whether you’re currently in the Finder, Safari, Xcode, or any other application entirely. Well there’s no need to imagine, with iTerm you can have an instantly available terminal … Read More

How to Install Homebrew on Mac

Mar 7, 2018 - 31 Comments
How to install Homebrew on Mac

Advanced Mac users may appreciate using the Homebrew package manager, which greatly simplifies the process of installing command line software and tools on a Mac. For example, if you want to easily install favorite command line tools on a Mac like cask, htop, wget, nmap, tree, irssi, links, colordiff, or virtually any other familiar unix … Read More

How to Use diff to Compare Two Files at Mac Command Line

Feb 6, 2018 - 6 Comments
Use diff to compare files at the command line

Need to quickly compare two files for differences? The command line ‘diff’ tool offers a great choice for users comfortable with the Terminal. Diff allows you to easily compare two files, with the command output reporting back any differences between the inputted files. The diff command is available by default on the Mac, and it … Read More

Get Terminal for iOS to Bring the Command Line to iPad and iPhone

Jan 8, 2018 - 27 Comments
Terminal for iOS via iCloud Drive on Mac

Ever wished you had a native command line in iOS? You know, like a Terminal app for iPad and iPhone? Wish no more, the aptly named Terminal for iOS is here, and it’s free! Terminal is a sandboxed command line environment for iOS that has over 30 commands currently available, covering many of the most … Read More

How to Count Lines of a File by Command Line

Jan 2, 2018 - 2 Comments
Count lines of a file by command line

Need to get the line count of a text file or document? Counting lines of any file is easy at the command line, and the command for line counting is the same in all modern Unix based operating systems, meaning this line counting trick will work the same on Mac OS and Mac OS X, … Read More

How to Use Touch ID to Authenticate sudo on Mac OS

Nov 22, 2017 - 9 Comments
sudo with Touch ID on a Mac

If you have a Touch Bar equipped MacBook Pro and you’re a frequent command line user, you may appreciate a trick that allows you to use Touch ID to authenticate sudo and su, rather than typing out your password in the Terminal like some kind of digital neanderthal.

How to Access iCloud Drive from Command Line in Mac OS

Nov 16, 2017 - 9 Comments
Access iCloud Drive from Terminal in Mac OS

Some Mac users may need to access iCloud Drive from the Terminal in Mac OS. But if you have tried to access iCloud Drive via command line on your own, you may have noticed it does not appear in the user Home directory. This is because iCloud Drive is actually locate elsewhere in Mac OS, … Read More

How to Skip Converting to APFS When Installing macOS High Sierra

Oct 17, 2017 - 44 Comments
How to skip APFS when installing macOS High Sierra

MacOS High Sierra includes the all new APFS file system, which is arguably one of the most significant new features introduced in the new Mac operating system update. Nonetheless it’s possible that some Mac owners with SSD volumes will want to not convert the existing HFS+ file system to APFS file system when installing macOS … Read More

How to Shutdown a Mac from Terminal

Aug 13, 2017 - 20 Comments
Shutdown a Mac from Command Line

Advanced Mac users may wish to shut down a computer from the command line. This can be helpful for remote administration with ssh, in situations where a Mac is booted into Single User Mode, or many other circumstances of troubleshooting and systems administration. There are several ways to shut down a Mac from the command … Read More

Access Maps from the Command Line Rendered in ASCII with Mapscii

Jun 23, 2017 - 5 Comments
Ascii maps command line

Have you ever wished you could access a mapping application from the command line? Now you can with Mapscii, which is sort of like Google Maps or Apple Maps but for the Terminal, with all of the mapping data rendered in ASCII text and characters.

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