Reset macOS Catalina Printing System

macOS Catalina introduced a new option in their printtool command line tool to reset the printing system. Type the following in Terminal: /System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Versions/A/printtool --reset -f Link: https://babodee.wordpress.com/2019/11/17/reset-the-macos-printing-system-through-the-command-line/

pwpolicy

Find when the user’s password was last changed #!/bin/bash # Get last password change echo; echo Password Last Changed:; u=$(dscl . list /Users | egrep -v '^_|daemon|nobody'); for i in…

Convert timestamps to dates in Bash?

date -r date -r 1267619929 Current timestamp: date +"%s" Links: https://stackoverflow.com/questions/2371248/how-to-convert-timestamps-to-dates-in-bash https://linuxconfig.org/convert-timestamp-to-date