Difference between revisions of "Limit the size of .log files & the journal/ru"

Created page with "Эта тема будет более глубокой - в ней мы рассмотрим использование команды '''logrotate''', '''logrotate.conf''', '..."
(Created page with "==== Вторая тема будет посвящена работе с файлами журналов ====")
Tags: Mobile web edit Mobile edit
(Created page with "Эта тема будет более глубокой - в ней мы рассмотрим использование команды '''logrotate''', '''logrotate.conf''', '...")
Line 33: Line 33:
==== Вторая тема будет посвящена работе с файлами журналов ====
==== Вторая тема будет посвящена работе с файлами журналов ====


This topic will go into far more depth, covering the use of the '''logrotate''' command, '''logrotate.conf''', the '''/etc/cron.daily cron.weekly cron.monthly cron.yearly''', and some ways to run created scripts, plus a mention of the '''crontab''' method of running a script also. I'll try to make this section accessible to as many people as possible, which means this will be a long page.
Эта тема будет более глубокой - в ней мы рассмотрим использование команды '''logrotate''', '''logrotate.conf''', '''/etc/cron.daily cron.weekly cron.monthly cron.yearly''' и некоторые способы запуска созданных скриптов, а также упомянем метод запуска скрипта '''crontab'''. Я постараюсь сделать этот раздел доступным для как можно большего числа людей, а это означает что страница будет довольно длинная.


<br clear="all"/>
<br clear="all"/>


= The journal & the logs duplicate the same information =
= Журнал и логи дублируют одну и ту же информацию =


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:
translator
10,791

edits