pgrep, pkill – find or signal processes by name
NAME pgrep, pkill – find or signal processes by name SYNOPSIS pgrep [-Lafilnoqvx] [-F pidfile] [-G gid] [-P ppid] [-U […]
pgrep, pkill – find or signal processes by name Read More - click »
NAME pgrep, pkill – find or signal processes by name SYNOPSIS pgrep [-Lafilnoqvx] [-F pidfile] [-G gid] [-P ppid] [-U […]
pgrep, pkill – find or signal processes by name Read More - click »
system_profiler SPDisplaysDataType or defaults read /Library/Preferences/com.apple.windowserver.plist Link: https://stackoverflow.com/questions/20099333/terminal-command-to-show-connected-displays-monitors-resolutions
Terminal command to show connected displays/monitors/resolutions? Read More - click »
use -event or -trigger for “Custom Event”, or -id for Policy ID#. Jamf policy -id XXXX sudo jamf policy -id
Jamf Pro – trigger(s) from command line Read More - click »
log stream –predicate ‘(subsystem == “com.apple.CryptoTokenKit”) Link https://support.apple.com/guide/deployment/use-a-smart-card-depc705651a9/web
Troubleshoot Smart Cards Read More - click »
Thanks (again) to Rich Trouton for showing us a way of testing connectivity and uptime You can use curl to
Telnet Connection Testing with curl Read More - click »
Use zgrep to recursively (-R) search the logs directory (/var/log), this doesn’t handle Apple’s asl format nicely zgrep -R that_thing
zgrep search logs Read More - click »
!/bin/sh echo “$(diskutil info / | awk -F’: ‘ ‘/File System/{print $NF}’ | xargs)”
Extension Attribute to list File System Read More - click »
Lookup user information: dscl . -read /Users/whotolookat NFSHomeDirectory Picture PrimaryGroupID UserShell UniqueID UserShell Jamf Pro Extension Attribute #!/bin/sh actstatus=$(dscl .
List users in Terminal Read More - click »
NAME tail – display the last part of a file DESCRIPTION The tail utility displays the contents of file or,
Tail : Prints last 10 lines of log file Read More - click »