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

Created page with "Я использую следующий альяс ~/.bashrc: alias errors="journalctl -b -p err|less" При вводе '''errors''' в терминале, все ош..."
(Created page with "===Используйте альяс ~/.bashrc чтобы сделать это проще===")
(Created page with "Я использую следующий альяс ~/.bashrc: alias errors="journalctl -b -p err|less" При вводе '''errors''' в терминале, все ош...")
Tags: Mobile web edit Mobile edit
Line 103: Line 103:
===Используйте альяс ~/.bashrc чтобы сделать это проще===
===Используйте альяс ~/.bashrc чтобы сделать это проще===


I use the following ~/.bashrc alias:
Я использую следующий альяс ~/.bashrc:
   
   
  alias errors="journalctl -b -p err|less"
  alias errors="journalctl -b -p err|less"
   
   
On entering '''errors''' in the Terminal, all errors or worse since the last boot are sent to (piped) to the Terminal based text display tool called '''Less''' which wraps the text output of the journalctl command. Apart from anything else, it makes the errors more useful for anyone reading them in the forum!
При вводе '''errors''' в терминале, все ошибки или проблемы с момента последней загрузки отправляются (передаются) в инструмент отображения текста на базе терминала под названием '''Less''', который оборачивает текстовый вывод команды journalctl. Помимо всего прочего, это делает ошибки более полезными для тех, кто читает их на форуме!


Type '''Q''' (upper or lower case) to close "Less".
Type '''Q''' (upper or lower case) to close "Less".
translator
10,791

edits