Hi all! I was taking the lab: Lab: Manage Processes and Analyze Log Files.
And I got this question:
Analiyze the error logs through journalctl with the priority flag and copy the output to /home/bob/.priority/priority.log.
Not sure which priority flag to apply?
Maybe there’s something missing in the question?
Thanks in advance!
@Santiago Scalzadonna, you would want to use
sudo journalctl -p err to set the priority level to error, and then redirect the output to the indicated location.
oh great! I tried with
sudo journalctl -p 3 and it worked too, thanks so much Aaron!
The numeric priority levels are completely acceptable too. It’s often easier for people to remember named levels, but one of my favorite things about Linux is the number of ways you can do almost everything.
you are right, I do enjoy that level of flexibility too! btw, great course content and explanations, enjoying it a lot!