Useful built-in macOS command-line utilities

When feeling bored, I find exploring macOS Bash commands fascinating. Access your Keychain secrets programmatically with ‘security find-internet-password -s “https://example.com”‘. Utilize the 1Password CLI for accessing items via command line. Open files using ‘open file.txt’ from the terminal, simplifying the process. Copy and paste with ‘pbcopy’ and ‘pbpaste’, seamlessly moving text around. Stay up-to-date with the current time in UTC using ‘date -u’. Test internet speed directly in the terminal with ‘networkQuality’. Prevent Mac from sleeping with ‘caffeinate’ for uninterrupted work. Generate UUIDs effortlessly with ‘uuidgen’. Explore other useful commands like ‘mdfind’, ‘linksay’, ‘screencapture’, and ‘networksetup’.

https://weiyen.net/articles/useful-macos-cmd-line-utilities

To top