You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-7Lines changed: 49 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1370,7 +1370,7 @@ sudo lsof -Pni TCP:22
1370
1370
1371
1371
Do not leave the computer unattended in unsafe locations. A skilled attacker with unsupervised physical access could install a [hardware keylogger](https://trmm.net/Thunderstrike_31c3) to record keystrokes, including passwords. Using a Mac with a built-in keyboard or a bluetooth keyboard makes this more difficult as many off-the-shelf versions of this attack are designed to be plugged in between a USB keyboard and the computer.
1372
1372
1373
-
To reduce the consequences of theft while a Mac is in use, consider a theft-response tool such as[buskill/buskill-app](https://github.com/buskill/buskill-app) or [Lennolium/swiftGuard](https://github.com/Lennolium/swiftGuard).
1373
+
To reduce the consequences of theft while a Mac is in use, consider using[buskill/buskill-app](https://github.com/buskill/buskill-app) or [Lennolium/swiftGuard](https://github.com/Lennolium/swiftGuard).
1374
1374
1375
1375
Consider purchasing a privacy screen/filter for use in public.
1376
1376
@@ -1380,15 +1380,57 @@ Consider purchasing a privacy screen/filter for use in public.
1380
1380
1381
1381
## Logs
1382
1382
1383
-
Monitor system logs with [Console](https://support.apple.com/guide/console/toc) or the `/usr/bin/log stream` command.
1383
+
Monitor system logs with [Console](https://support.apple.com/guide/console/toc) or the `log stream` command.
1384
1384
1385
-
To show log entries generated by the `audioaccessoryd` process during the last hour:
1385
+
Print all system logs from the last 5 minutes in classic syslog format:
1386
1386
1387
1387
```bash
1388
-
/usr/bin/log show \
1389
-
--last 1h \
1390
-
--predicate 'process == "audioaccessoryd"' \
1391
-
--style compact
1388
+
log show --last 5m --style syslog
1389
+
```
1390
+
1391
+
Output as JSON array:
1392
+
1393
+
```bash
1394
+
log show --last 5m --style json
1395
+
```
1396
+
1397
+
Output newline-delimited JSON (one JSON object per line); required for [jq](https://jqlang.org/download/):
1398
+
1399
+
```bash
1400
+
log show --last 5m --style ndjson
1401
+
```
1402
+
1403
+
Filter messages by subsystem, for example from `com.apple.SoftwareUpdate`:
0 commit comments