Difference between revisions of "Limit the size of .log files & the journal"
Limit the size of .log files & the journal (view source)
Revision as of 05:05, 15 January 2014
, 10 years ago→Basic filtering:
imported>Handy |
imported>Handy |
||
Line 66: | Line 66: | ||
$ journalctl -b -p err | $ journalctl -b -p err | ||
Following is the above command with its output sent to a file called '''-ERRORS''' in your ''/home/<user>'' directory. Having the '''-''' at the beginning of the name should cause the file to be shown at the top of the list of files when viewing the contents of your '''~/''' (''/home/<user>'') directory. This command makes it easy to copy the contents of the -ERRORS file, & then paste it to the forum. Doing so allows us to display ALL of the command's output instead of only being able to cut & paste the truncated lines from our terminal: | |||
$ Journalctl -b -p err > -ERRORS | |||
== Filtering based on time: == | == Filtering based on time: == |