11

find . -type f -exec /sbin/md5 -r {} + ^^^^^^^ ^^^^^ ^^^^^^^^^^^^ ^^ ^ | | | | | | | | | +- add as many file names as possible per call | | | +---- replace with names of found files | | +------------ command to run | +-------------...


9

Try this: find . -type f -print0 | xargs -0 md5 -r Note -print0 and -0 to handle spaces in filenames. Compared to find . -type f -exec, this solution runs md5 much less frequently, although this might not have a measurable impact.


2

Apps that have requested and been granted Security > Privacy permissions can be read via: sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access' However, this does not specify which permissions were granted. There's also: defaults read ~/Library/Preferences/com.apple.universalaccessAuthWarning.plist ..but this will only ...


2

The final line of your script is using curved quoted instead of straight quotes. “ and ” have been used in place of ". Replace the line send “ssh-add etlbi-master” with send "ssh-add etlbi-master" Look at the syntax highlighting of your script in your question — the ‘string’ is not red but black.


2

Placing alias commands in your bash profile will gain you partial overwrite protection. As others mentioned in your comments, you will need to write a script add the diff function. I placed the commands below in my ~/.bash_profile. Bash on macOS determines what file is your bash profile in this order: ~/.bash_profile ~/.bash_login ~/.profile These ...


2

Apple and Unix tools self document themselves, so you can read the manual page of each to understand their role and place. I recommend you start with the korn shell - be different! man ksh I can’t speak for Apple, but the plurality of options helps software evolve and change since scripts based on previous tools can keep working when a change happens to ...


2

There are a lot of different shells available for Unix-like systems, and different users have different preferences. So on most Unix systems you'll find some of the most often used shells installed, to give users a choice in using whatever they prefer. For more information about the differences between various shells see: https://stackoverflow.com/...


2

Thanks to historystamp's comment here is how the problem was solved: Open/Launch Terminal gem uninstall iStats (source) gem install iStats --user-install (source) export PATH="~/.gem/ruby/2.6.0/bin:$PATH" (source) source ~/.bash_profile (source) istats


2

Things you need to make this happen on macos: 1. Terminal emulator that supports sixel iTerm2 recently added sixel support for viewing inline images. You'l need iterm 3.3 or later, which at time of writing is in beta, available in the test releases section of the downloads page. 2. Utility for converting images to sixel format I used img2sixel. git ...


2

The old online index seems have to vanished. You can however find the source code of manual pages on https://opensource.apple.com/. This site hosts historical versions as well. For example: fputs(3) - https://opensource.apple.com/source/Libc/Libc-1272.200.26/stdio/FreeBSD/fputs.3.auto.html ls(1) - https://opensource.apple.com/source/file_cmds/file_cmds-272....


1

Here's a simple solution that I got working, which shows the command output once it's finished: Pass the output of a Run Shell Script action to Set Value of Variable Use that variable to, for example, display a notification. For example, with the test.py Python script, all I'm doing is printing the arguments passed (“Running a script with …”), so when I ...


1

The currently logged in Apple IDs for iCloud are stored in the MobileMeAccounts preferences. You can query the entire store with: defaults read MobileMeAccounts Accounts To return just the first account ID (an email address nowadays): /usr/libexec/PlistBuddy -c "print :Accounts:0:AccountID" ~/Library/Preferences/MobileMeAccounts.plist


1

The closest thing to getting IO r/w info is iotop command, which comes with all Mac OS (see disk_r and disk_w). $ sudo iotop 2019 Jul 15 22:39:17, load: 1.19, disk_r: 0 KB, disk_w: 628 KB UID PID PPID CMD DEVICE MAJ MIN D BYTES 0 1 0 launchd ?? 1 2 W 643072 0 0 ...


1

I came across this page while looking for something related. In my case I needed to be in Verbose mode in Mojave, and it seemed like neither command-s or command-v worked. But I did find an answer elsewhere to the problem. As was said, using command-r and then Terminal from the Utilities menu will give you single user mode. For Verbose mode, the ...


Only top voted, non community-wiki answers of a minimum length are eligible