luofachao 发表于 2022-5-21 09:50

(求助)在终端输入了这行代码没反应

Last login: Fri May 20 20:17:04 on consolelfc@lfcdeAir ~ % log show --last 1d | grep "Wake reason"lfc@lfcdeAir ~ %

复制代码等了一会没有什么结果就一个空白,怎么办睡眠重启又看不到什么问题

nsby494 发表于 2022-5-21 10:57

log show --style syslog | fgrep "Wake reason"
再试试这个

luofachao 发表于 2022-5-22 00:17

你是笨鱼 发表于 2022-5-21 10:57 https://bbs.pcbeta.com/static/image/common/back.gif
log show --style syslog | fgrep "Wake reason"
再试试这个

我在终端输入你给我的代码就显示这代码没看懂
"

lfc@lfcdeMacBook-Air ~ % log show --style syslog | fgrep "Wake reason"
2022-05-20 21:23:50.289771+0800localhost powerd: Wake reason: "<private>"identity: "<private>"
2022-05-20 22:58:25.880006+0800localhost powerd: Wake reason: "<private>"identity: "<private>"
2022-05-21 10:11:41.636110+0800localhost powerd: Wake reason: "<private>"identity: "<private>"
2022-05-21 10:37:02.695658+0800localhost powerd: Wake reason: "<private>"identity: "<private>"
2022-05-21 11:09:27.816954+0800localhost powerd: Wake reason: "<private>"identity: "<private>"
2022-05-21 14:16:50.128964+0800localhost powerd: Wake reason: "<private>"identity: "<private>"
lfc@lfcdeMacBook-Air ~ %

luofachao 发表于 2022-5-22 00:19

你是笨鱼 发表于 2022-5-21 10:57 https://bbs.pcbeta.com/static/image/common/back.gif
log show --style syslog | fgrep "Wake reason"
再试试这个

我输入了你给我的代码后,我在输入这个代码log show --last 1d | grep "Wake reason"
就显示代码了也不知道什么问题

lfc@lfcdeMacBook-Air ~ % log show --last 1d | grep "Wake reason"
2022-05-21 10:11:41.636110+0800 0x338      Default   0x0                  67   0    powerd: Wake reason: "<private>"identity: "<private>"
2022-05-21 10:37:02.695658+0800 0x2249   Default   0x0                  67   0    powerd: Wake reason: "<private>"identity: "<private>"
2022-05-21 11:09:27.816954+0800 0x320      Default   0x0                  67   0    powerd: Wake reason: "<private>"identity: "<private>"
2022-05-21 14:16:50.128964+0800 0x35b      Default   0x0                  69   0    powerd: Wake reason: "<private>"identity: "<private>"
lfc@lfcdeMacBook-Air ~ %

macmax522 发表于 2024-6-4 13:19

我的也是这个,是什么情况
页: [1]
查看完整版本: (求助)在终端输入了这行代码没反应