gpt4 book ai didi

Linux/unix sleep 命令 : How do I check the time remaining for queued processes in a task manager such as 'top' ?

转载 作者:太空宇宙 更新时间:2023-11-04 11:11:14 25 4
gpt4 key购买 nike

命令:

sleep 3600 && ls

将在 3600 秒后运行命令“ls”。但是当我使用命令“top”运行任务管理器时,这些排队的进程当然不会出现。我如何找出排队的进程以及它们运行前剩余的时间?

最佳答案

ps aux|grep sleep 将为您提供“ sleep ”实例列表、它们的持续时间以及它们何时开始。我不知道有什么方法可以查看“ sleep ”命令到期时将运行的进程。

关于Linux/unix sleep 命令 : How do I check the time remaining for queued processes in a task manager such as 'top' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23040927/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com