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

Created page with "* '''/var/log/*.log {''' указывает файл или файлы, так как в данном примере используется подстановочный зн..."
(Created page with "Например, приведенный ниже блок сценария выполняет следующие действия, перечисленные построчно:")
(Created page with "* '''/var/log/*.log {''' указывает файл или файлы, так как в данном примере используется подстановочный зн...")
Tags: Mobile web edit Mobile edit
Line 241: Line 241:
Например, приведенный ниже блок сценария выполняет следующие действия, перечисленные построчно:
Например, приведенный ниже блок сценария выполняет следующие действия, перечисленные построчно:


* '''/var/log/*.log {''' specifies the file or the files as this example uses a wild card that says all files ending in .log , the '''{''' starts the list of commands that will be used on the file(s) just specified.
* '''/var/log/*.log {''' указывает файл или файлы, так как в данном примере используется подстановочный знак, указывающий на все файлы, заканчивающиеся на .log , '''{''' начинает список команд, которые будут использоваться для только что указанного файла (файлов).


* '''daily''' Here we are saying cycle these commands daily, we can also say weekly, monthly, yearly (or specify other times with crontab)[http://www.adminschoice.com/crontab-quick-reference/].
* '''daily''' Here we are saying cycle these commands daily, we can also say weekly, monthly, yearly (or specify other times with crontab)[http://www.adminschoice.com/crontab-quick-reference/].
translator
11,446

edits