linux查看定时任务
时间: 2023-07-04 14:19:53 浏览: 105
您可以使用以下命令来查看当前系统中的定时任务:
```
crontab -l
```
此命令将显示当前用户的定时任务列表。如果您想查看其他用户的定时任务,可以使用以下命令:
```
crontab -u username -l
```
其中 `username` 是您要查看其定时任务的用户的名称。
相关问题
查看linux定时任务
要查看Linux定时任务,可以使用以下命令:
1. crontab -l:查看当前用户的定时任务列表。
2. crontab -e:编辑当前用户的定时任务列表。
3. crontab -u username -l:查看指定用户的定时任务列表。
4. crontab -u username -e:编辑指定用户的定时任务列表。
5. systemctl list-timers:查看系统级别的定时任务列表。
6. cat /etc/crontab:查看系统级别的定时任务配置文件。
希望对您有所帮助!
linux 查看定时任务
要查看Linux中的定时任务,可以使用以下命令:
1. crontab -l:查看当前用户的定时任务列表。
2. crontab -e:编辑当前用户的定时任务列表。
3. crontab -u username -l:查看指定用户的定时任务列表。
4. crontab -u username -e:编辑指定用户的定时任务列表。
5. systemctl list-timers:查看系统级别的定时任务列表。
6. cat /etc/crontab:查看系统级别的定时任务配置文件。
7. cat /etc/cron.d/*:查看系统级别的定时任务配置文件夹中的所有文件。
希望对您有所帮助!
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)