Очевидно, leave (1) является программой FreeBSD, а не командой оболочки.
Вот пакет Ubuntu для него: Результаты поиска пакетов - leave | Ubuntu
Думаю, он не установлен по умолчанию. Вы можете установить его, запустив:
sudo apt-get install leave
Нет, команды типа ps
и top
показывают только текущее состояние процессов. Невозможно узнать, каким был статус процесса в прошлом, если вы еще не настроили систему мониторинга.
В будущем вы можете настроить atop
для регистрации статуса процесса. Из его справочной страницы:
In order to store system- and process level statistics for long-term analysis (e.g. to check the system load and the active processes running yesterday between 3:00 and 4:00 PM), atop can store the system- and process level statistics in compressed binary format in a raw file with the flag -w followed by the filename. If this file already exists and is recognized as a raw data file, atop will append new samples to the file (starting with a sample which reflects the activity since boot); if the file does not exist, it will be created.
By default only processes which have been active during the interval are stored in the raw file. When the flag -a is specified, all processes will be stored. The interval (default: 10 seconds) and number of samples (default: infinite) can be passed as last arguments. Instead of the number of samples, the flag -S can be used to indicate that atop should finish anyhow before midnight.
Понятно, и как уже было сказано, atop
начнет запись только с того момента, как вы его настроите.