Skip to content

Instantly share code, notes, and snippets.

@ravron
Last active March 24, 2020 01:41
Show Gist options
  • Save ravron/ccdb4e254491cc1279a39bfb876a844d to your computer and use it in GitHub Desktop.
Save ravron/ccdb4e254491cc1279a39bfb876a844d to your computer and use it in GitHub Desktop.
Useful macOS CLI tools

This is a list of useful CLI tools that either ship with macOS or are easily installed, usually by brew.

Textual

  • jot — print sequential or random data

    Details

    Install: built-in

    Examples:

    $ jot 3
    1
    2
    3
    
    $ jot -b foo 3
    foo
    foo
    foo
    
    $ jot -r 5 0 1000
    857
    840
    142
    246
    415
    

    Resources:

  • iperf3 — test LAN connection speed

    Details

    Install: brew install iperf3

    Examples: On the first machine:

    $ iperf3 -s
    -----------------------------------------------------------
    Server listening on 5201
    -----------------------------------------------------------
    

    And on the second machine:

    $ iperf3 -c 192.168.1.14
    Connecting to host 192.168.1.14, port 5201
    [  5] local 192.168.1.40 port 57669 connected to 192.168.1.14 port 5201
    [ ID] Interval           Transfer     Bitrate
    [  5]   0.00-1.00   sec   110 MBytes   921 Mbits/sec
    [  5]   1.00-2.00   sec   109 MBytes   917 Mbits/sec
    [  5]   2.00-3.00   sec   112 MBytes   936 Mbits/sec
    [  5]   3.00-4.00   sec   112 MBytes   940 Mbits/sec
    [  5]   4.00-5.00   sec   111 MBytes   927 Mbits/sec
    [  5]   5.00-6.00   sec   113 MBytes   949 Mbits/sec
    [  5]   6.00-7.00   sec   112 MBytes   937 Mbits/sec
    [  5]   7.00-8.00   sec   110 MBytes   920 Mbits/sec
    [  5]   8.00-9.00   sec   111 MBytes   931 Mbits/sec
    [  5]   9.00-10.00  sec   109 MBytes   918 Mbits/sec
    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ ID] Interval           Transfer     Bitrate
    [  5]   0.00-10.00  sec  1.08 GBytes   930 Mbits/sec                  sender
    [  5]   0.00-10.00  sec  1.08 GBytes   930 Mbits/sec                  receiver
    
    iperf Done.
    

    Resources:

To Do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment