惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
博客园 - 司徒正美
C
Check Point Blog
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
IT之家
IT之家
B
Blog
博客园_首页
量子位
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
J
Java Code Geeks
H
Help Net Security
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
D
DataBreaches.Net
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News

Latest news

LG G6 vs. LG G5: I compared the latest OLED TV models, and it's a surprisingly tough choice I saw the 'MacBook Pro for Linux users' for the first time, and it's a legit Windows threat I'm putting Motorola above Samsung when it comes to flip phones - and won't think twice I tested Surfshark's new Dausos VPN protocol - here's how it compares to WireGuard How to easily encrypt your files on an Android phone - for free I'm not giving up on DJI cameras yet - not when they can upset my GoPro like this The best website builders for small businesses in 2026: Expert tested and reviewed Why I'm recommending last year's phones over 2026 models - with one exception This powerful Gemini setting made my AI results way more personal and accurate After testing this HP laptop, I get why its 'boring' design is adored by business users The best TV antenna of 2026: Expert tested Your old iPad or Android tablet can be your new smart home panel - here's how Apple's original AirTag still tracks effectively, and you can get a 4-pack for its best price ever T-Mobile will give you an iPad for $99 when you sign up for a new line - here's how How to qualify for Apple's education discount - and get a $499 MacBook Neo for school T-Mobile will give you a Samsung Galaxy Watch 8 for free - how to get yours Prolonged AI use can be hazardous to your health and work: 4 ways to stay safe Verizon will give you a free iPad or Apple Watch with your next iPhone - how the deal works The best laptops of 2026: Expert tested and reviewed I hid 4 Bluetooth trackers (including AirTags) to test their reliability - here's how Android rivals compared I stopped using my iPhone's hotspot after testing this 5G router - and that won't change The best Kindles in 2026: Expert recommended Does Best Buy price match? Everything to know about matching prices online and in-store The best WordPress hosting services of 2026: Expert tested and reviewed The best Apple Watch of 2026: Expert tested and reviewed The best TV screen cleaners of 2026: Expert recommended The best 50-inch TVs of 2026: Expert tested I traded my Sonos Era 300 for Denon's new home speaker - and see no reason to go back AI-powered website builders have come a long way - here's your best option in 2026 Amazon just slashed $250 off the Google Pixel 10 - and a Prime subscription isn't required
5 MacOS command line tools I swear by over their GUI coun...
Written by · 2026-05-05 · via Latest news
MacBook Air M5 (15-inch)
Kyle Kucharski/ZDNET

Follow ZDNET: Add us as a preferred source on Google.


ZDNET's key takeaways

  • If you want fast and efficient, the command line is the way to go.
  • MacOS has plenty of handy CLI tools ready to be used.
  • Each of these tools is free and easily installed.

I know what you're thinking: "MacOS is all about user-friendliness and GUI apps." Although that may be true, you'd be remiss if you didn't at least know about some of the terminal apps that are available to the OS.

These terminal apps are lightweight, reliable, and much easier to use than you might think. Sure, you have to type (as opposed to point-and-click), but once you understand how these tools work, you might find them more efficient than their GUI counterparts.

Also: 6 MacOS settings I immediately change on every new Mac - and why

If you're still questioning this idea, keep reading and see if any of these tools might tempt you to open the MacOS terminal app. 

1. pandoc

Have you ever needed to convert a file from one type to another, but didn't want to have to open the GUI, open the file, convert the file, and then close the app? If that sounds like you, then you'll be happy to know that there's a command-line tool called pandoc, that makes this process easier.

Pandoc is available as a pkg installation package that you can download from the official GitHub site. Double-click it and follow the simple instructions. Or, if you have Homebrew installed, you can add Pandoc with the command:

brew install pandoc

Once installed, pandoc is simple to use. Open the terminal app, change into the directory housing the file to be converted (such as cd Documents), and run the command:

Let's say you want to convert a .txt file to a .docx file. The command for this would be:

pandoc -s file.txt -o file.docx

You can see a complete list of conversion commands on the official pandoc examples page.

2. taskwarrior

Taskwarrior is a command-line to-do list app that allows you to manage a list of tasks in a fast and efficient way. You can add tasks, view tasks, and mark tasks as done. Although it doesn't have all the bells and whistles of a GUI app, taskwarrior doesn't get in your way, nor does it complicate things.

Also: How to decide between Linux and MacOS - if you're ready to ditch Windows

To install taskwarrior, you have to have Homebrew installed and then add the app with:

brew install taskwarrior-tui

Here's how it works. Say you want to add a task to do the dishes. The command for this would be:

task add Do dishes

Once you've done that, you can list your tasks with:

task list

Each task is assigned an ID (first column). Using that ID, you can append to a task like this:

task appended ID and client toilets

Where ID is the ID of the task to be deleted.

If you list the tasks, you should see the task with the appended information added.

When a task is complete, you can remove it with:

task done ID

Where ID is the ID of the task to be deleted.

To find out all you can do with the task (there's quite a bit), make sure to read the manual with the command:

man task

3. Ollama

I've written extensively about Ollama, and knew it would be one of the command-line utilities in this list. Ollama is a local AI that you can install, pull any of the supported models for use, and then run your queries from the terminal app. It's powerful, and because it's installed locally, it's private and doesn't place a burden on the power grid.

Also: The case for buying a MacBook Neo right now - especially for students

When you install Ollama on MacOS, you can either install the GUI app and use the command line, or you can simply install the command-line tool only using Homebrew, like so:

homebrew install ollama

Once installed, pull a model with the command:

ollama pull MODEL

Where MODEL is the model you want. You can find a list of available models on the official Ollama site. Say you want to pull the gpt-oss:20b model, which can be done with:

ollama run gpt-oss:20b

You can then run the model with:

ollama run gpt-oss:20b

At the Ollama prompt, you can then run your queries as you normally would.

4. ag

The ag command allows you to search for strings within files. Even better, ag searches multiple files for the same string. Say you have a bunch of text files in your Documents directory and you need to know which of them contain ZDNET. The ag command will not only tell you which files contain the string, but it'll do it very quickly.

The ag command is a part of the_silver_searcher package and can be installed with Homebrew like so:

brew install the_silver_searcher

Once installed, you could search those files by changing into the directory containing them (such as cd Documents) and then running the search like this:

ag ZDNET

The results will list which files contain the string.

5. yt-dlp

Do you ever need to download videos from YouTube? If so, you'll be glad to know that there's a command-line tool for that, called yt-dlp. This app is fast and regularly updated (so it'll stay ahead of any changes YouTube makes that might prevent it from working).

Also: 9 essential Mac apps everyone should be using in 2026 - and why I vouch for them

Yt-dlp can be installed (along with the required ffmpeg) with Homebrew, like so:

brew install yt-dlp ffmpeg

Once installed, you can download YouTube videos (subject to rights, of course) with the command:

yt-dlp URL

Where URL is the URL of the video to be downloaded.

If you only want the audio, the command would be:

yt-dlp -x --audio-format mp3 URL

And that's it.

Featured