linux - k ubuntu - 找出命令执行源(cron?)

标签 linux cron ubuntu

我有一个 kubuntu 桌面盒子。这个盒子摆放整齐,可以满足我的所有需求。

但是:前主人为了省电,每天晚上 23:30(晚上 11 点 30 分钟)关闭盒子。

系统日志告诉我:

23:30:02 kubuntu-871263 CRON[17372]: (root) CMD (^I/sbin/poweroff)

因此我调查了一下

crontab -l

17 * * * * root cd/&& run-parts --report/etc/cron.hourly 25 22 * * * 根测试-x/usr/sbin/anacron || ( cd/&& run-parts --report/etc/cron.daily ) 47 22 * * 7 root 测试 -x/usr/sbin/anacron || ( cd/&& run-parts --report/etc/cron.weekly ) 52 22 1 * * 根测试-x/usr/sbin/anacron || ( cd/&& run-parts --report/etc/cron.monthly )

对于 root 和所有用户。

我找不到 poweroff 命令的来源。 23:30 命令的来源的任何想法。

PS 我不能问以前的所有者。

最佳答案

我在/etc 中找到了一个 crontab 文件,它是系统范围的 crontab (/etc/crontab)。该文件包含 23:30 的 poweroff 命令。

关于linux - k ubuntu - 找出命令执行源(cron?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22040557/

相关文章:

返回两个字符串不同之处的 Linux bash 命令

linux - 注册中断以将系统从待机状态唤醒?

php - 如何在 laravel 5.1 中将类的方法作为 cron 任务运行

bash - 使用多行 JSON 进行 curl

c++ - 所有 CopyConstructible 类型都是 MoveConstructible 类型吗?

linux - 使用 csvfix for linux 对数值进行排序 - 将数字转换为字符串

linux - POSIX - 了解非阻塞发送实现

bash - 如何使用Shell脚本每4分钟在HDFS(Hadoop)上的目录中查找是否有新文件

python - 使用 Python 更新媒体维基文章?

ubuntu - 如何从lxc挂载文件夹