journalctl -u service_name
покажет стандартный вывод и стандартную ошибку этого сервиса. Другие методы ведения журнала, такие как logger
, можно настроить для направления содержимого в журналы systemd. journalctl
(какой смысл в избыточности? ), но мог . Создать отчет для последующей проверки, содержащий информацию о текущем каталоге (и подкаталогах ), сохраненных вreportfile
:
ncdu -o reportfile
Открытие ранее созданного отчета:
ncdu -f reportfile
Изman ncdu
:
-f FILE
Load the given file, which has earlier been created with the "-o" option. If FILE is equivalent to "-", the file is read from standard input.
[...]
-o FILE
Export all necessary information to FILE instead of opening the browser interface. If FILE is "-", the data is written to standard output. See the examples section below for some handy use cases.
Be warned that the exported data may grow quite large when exporting a directory with many files. 10.000 files will get you an export in the order of 600 to 700 KiB uncompressed, or a little over 100 KiB when compressed with gzip. This scales linearly, so be prepared to handle a few tens of megabytes when dealing with millions of files.
For the sake of preventing a screw-up, the current version of ncdu will assume that the directory information in the imported file does not represent the filesystem on which the file is being imported. That is, the refresh and file deletion options in the browser will be disabled.