translator
10,791
edits
(Created page with "==== Вторая тема будет посвящена работе с файлами журналов ====") Tags: Mobile web edit Mobile edit |
(Created page with "Эта тема будет более глубокой - в ней мы рассмотрим использование команды '''logrotate''', '''logrotate.conf''', '...") |
||
Line 33: | Line 33: | ||
==== Вторая тема будет посвящена работе с файлами журналов ==== | ==== Вторая тема будет посвящена работе с файлами журналов ==== | ||
Эта тема будет более глубокой - в ней мы рассмотрим использование команды '''logrotate''', '''logrotate.conf''', '''/etc/cron.daily cron.weekly cron.monthly cron.yearly''' и некоторые способы запуска созданных скриптов, а также упомянем метод запуска скрипта '''crontab'''. Я постараюсь сделать этот раздел доступным для как можно большего числа людей, а это означает что страница будет довольно длинная. | |||
<br clear="all"/> | <br clear="all"/> | ||
= | = Журнал и логи дублируют одну и ту же информацию = | ||
You can read the text of the log files in a text editor, or using the '''cat''', '''more''', '''less''' & such commands as you would on any other text file. The journal on the other hand requires the '''journalctl''' command to be able to access its contents. The following is a good way to read the journal: | You can read the text of the log files in a text editor, or using the '''cat''', '''more''', '''less''' & such commands as you would on any other text file. The journal on the other hand requires the '''journalctl''' command to be able to access its contents. The following is a good way to read the journal: |