Search for something in a file grep something file Search for something in multiple files grep something file file1 file2 file 3 Search for something everywhere in the current directory…
Use zgrep to recursively (-R) search the logs directory (/var/log), this doesn't handle Apple's asl format nicely zgrep -R that_thing /var/log Log for softwareupdate in log zgrep -R softwareupdate /var/log…
in bbedit for macos how can i remove all the lines in a file that have the sting "[StringToRemoveHere" In BBEdit for macOS, you can remove all lines containing a…
a jamf pro bash script that utilizes script options and subsequent parameter labels to call out the ip and tab to hostname for adding custom entries to the macos client…
This script: An Apple script to check the 256 hash value, 512 hash value, and developer id, from a macintosh software folder named Ed_Software filled with software on the users…
sudo touch /var/db/MDM_EnableDebug In macOS 10.12 you can configure the logging subsystem via a configuration profile (as above) or by using the log utility like so: sudo log config --subsystem…
Rich Trouton just posted this article on Providing Jamf Pro computer inventory information via macOS configuration profile This made me think this could be leveraged to name a computer very…
Use the following command in Terminal.app: codesign -dv /Path/To/Some.app 2>&1 | grep TeamIdentifier A sample terminal command to find the Team ID of the Google Chrome app is given below:…
To check the state of the system, run the following command(s): /bin/launchctl list | /usr/bin/grep -c com.apple.timed If the result is not 1, this is a finding. Remediation Description Perform…