macOS Command-Line Tools You Might Not Know About

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
  1. wl-clipboard

    Command-line copy/paste utilities for Wayland

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. displayplacer

    macOS command line utility to configure multi-display resolutions and arrangements. Essentially XRandR for macOS.

    It's not something that I've tried. There was a user report at the bottom of this GitHub issue that states sidecar rotation does not work.

    https://github.com/jakehilborn/displayplacer/issues/17

  4. osc52pty

    OSC 52 workaround for Terminal.app

    I don't think wrapping my entire shell session in a moderately complex third party tool (that maybe just uses pbcopy under the hood[1]) counts as "simply" when compared to my existing solution which just pipes over ssh and a couple bash scripts.

    But thank you for the share, it is interesting!

    [1]: https://github.com/roy2220/osc52pty/blob/master/oscexecutor....

  5. xclip

    Command line interface to the X11 clipboard

    I find it so annoying that these only work with plain text and RTF. On X11 there is `xclip`[0] and on Wayland there is `wl-clipboard`[1] both of which support binary file formats either through parsing the header or explicitly setting the MIME type.

    This means you can do things like copy an image from the terminal and paste it into a graphical program like a browser or chat client and vice-versa. Also can be very useful in shell scripts for desktop automation.

    The workaround on MacOS is to use AppleScript via `osascript` to `set the clipboard to...`.

    [0] https://github.com/astrand/xclip

  6. remote-pbcopy-iterm2

    remote pbcopy for iTerm2

    Since you mention both pbcopy and iTerm - I love https://github.com/skaji/remote-pbcopy-iterm2. I do most of the work on a remove Linux server, treating my MacBook as mostly a dumb terminal, and being able to transparently copy from the remove to my local clipboard is so nice.

  7. piknik

    Copy/paste anything over the network.

    Extra handy when combined with `piknik`[1] for distributed/cross-Apple account clipboard shenanigans.

    [1] https://github.com/jedisct1/piknik

  8. dotfiles

    My Dotfiles (by svieira)

    https://github.com/svieira/dotfiles/blob/a3654d6a194e3689978...

        # Use clipboard in shell pipelines

  9. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  10. Comcast

    Simulating shitty network connections so you can build better systems.

    [Comcast](https://github.com/tylertreat/comcast) also does this for macOS, BSD, and Linux. And it's _brilliantly_ named.

  11. bat

    A cat(1) clone with wings.

    I've been using bat as a cat replacement for a while now. It includes paging, syntax highlighting, line numbers, and is generally very performant.

    https://github.com/sharkdp/bat

  12. tmux

    tmux source code

    I have tried it, but for whatever reason I just don't like it. I prefer just running tmux in iTerm with no integration.

    On the topic, you can also integrate tmux with the native clipboard - I have set copy-pipe to the remote pbcopy, so any selection done in tmux get copied to my local clipboard. I also just found out that tmux also support it natively (https://github.com/tmux/tmux/wiki/Clipboard#the-set-clipboar...).

  13. Clipboard

    😎🏖️🐬 Your new, 𝙧𝙞𝙙𝙤𝙣𝙠𝙪𝙡𝙞𝙘𝙞𝙤𝙪𝙨𝙡𝙮 smart clipboard manager

    And `cb` which works cross-platform, via https://github.com/Slackadays/clipboard

  14. macosrec

    Take screenshots/videos of macOS windows from the command line

    brew install duti

    > screencapture - take screenshots

    Big fan of screencapture. I wanted something similar but for capturing window videos, so I built https://github.com/xenodium/macosrec

    I often wrap command line utilites with Emacs functions (don't need to remember invocation flags/structure but also enables batch invocations):

    https://xenodium.com/recordscreenshot-windows-the-lazy-way

  15. prefsniff

    A utility to sniff preferences changes to macOS plist files

    https://github.com/zcutlip/prefsniff can be handy for figuring this stuff out, you start it up, change a setting, and it reports the plist differences to you

  16. cli

    um is a GPT-powered CLI assistant. Ask questions in plain English, get the perfect shell command. (by promptops)

    You should check out "um" https://github.com/promptops/cli for when you can't remember the command/parameters.

    ~ um prevent my mac from sleeping for 30m

       caffeinate -u -t 1800

  17. rofi

    Rofi: A window switcher, application launcher and dmenu replacement

  18. fast-cli

    Test your download and upload speed using fast.com

  19. yt-dlp

    A feature-rich command-line audio/video downloader

    FYI: yt-dlp is more up to date and faster, AFIK: https://github.com/yt-dlp/yt-dlp

    I download and save it as 'ytdl' for convenience, but I use it all the time on twitter too.

  20. tutu

    Zsh bookmark navigation utility

    If you like `z`, you should check out my `tutu`.

    https://github.com/daotoad/tutu

  21. exa

    A modern replacement for ‘ls’.

    Some of us don't want all of GNU's utilities; just on an as-needed basis. They're not as needed as they once were.

    Many of these utilities have been rewritten in Rust and have more modern features.

    For example, instead of ls, I use exa [1]. Or ripgrep [2] instead of grep.

    [1]: https://github.com/ogham/exa

    [2]: https://github.com/BurntSushi/ripgrep

  22. ripgrep

    ripgrep recursively searches directories for a regex pattern while respecting your gitignore

    Some of us don't want all of GNU's utilities; just on an as-needed basis. They're not as needed as they once were.

    Many of these utilities have been rewritten in Rust and have more modern features.

    For example, instead of ls, I use exa [1]. Or ripgrep [2] instead of grep.

    [1]: https://github.com/ogham/exa

    [2]: https://github.com/BurntSushi/ripgrep

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • bsdutils: Alternative to GNU coreutils using software from FreeBSD

    10 projects | news.ycombinator.com | 2 Mar 2023
  • Replace your Existing Unix Utilities with These Modern Alternatives

    4 projects | dev.to | 30 Jul 2021
  • Things move on. What better commands have you found than the ones that you learned at first?

    4 projects | /r/commandline | 20 Mar 2021
  • Show HN: Lstr – A modern, interactive tree command written in Rust

    4 projects | news.ycombinator.com | 17 Jun 2025
  • I stopped everything and started writing C again

    6 projects | news.ycombinator.com | 12 Mar 2025

Did you know that C is
the 6th most popular programming language
based on number of references?