自启动和计划任务查询
速查表(一句话版)
系统 | 自启 | 计划任务 |
---|---|---|
Ubuntu | systemctl list-unit-files --state=enabled |
crontab -l && systemctl list-timers |
CentOS/RHEL | systemctl list-unit-files --state=enabled |
crontab -l && systemctl list-timers |
Windows | reg query "HKLM\...\Run" |
schtasks /query |
macOS | ls ~/Library/LaunchAgents/ |
launchctl list && crontab -l |
FreeBSD | service -e |
crontab -l && ls /etc/periodic/ |
Ubuntu / Debian / Linux Mint
1 | # 系统级 systemd 自启服务 |
CentOS / RHEL / Rocky / Alma / Fedora
1 | # 系统级 systemd 自启服务 |
Arch Linux / Manjaro / EndeavourOS
1 | # 系统级 systemd 自启服务 |
Windows 10 / 11 / Server
1 | :: 系统级注册表自启 |
macOS / OS X
1 | # 系统级守护进程(root) |
FreeBSD
1 | # rc.conf 中启用的服务 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 HAHA!