Which of the following commands is used to rotate, compress, and mail system logs?
Suggested Answer: D
Get Premium LFCS Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
33 comments · newest first
BE
Bette
10 months ago
Wait, are we sure about that? What about syslogd?
ED
Edgar
11 months ago
Agreed, logrotate is the go-to for that.
LU
Luisa
11 months ago
It's definitely logrotate!
LA
Lavonna
11 months ago
I thought it was rotatelog at first.
DO
Dominga
11 months ago
Nope, logrotate is the right answer!
RE
Remedios
11 months ago
I feel like "rotatelog" was mentioned in a practice question, but I can't recall if it's the correct one for this context.
CA
Carma
12 months ago
I keep mixing up "syslogd --rotate" and "logrotate." I hope I remember the right command during the exam.
GR
Gregoria
12 months ago
"logrotate" sounds familiar, especially since we practiced that in class. I think it's the right one.
NI
Niesha
1 year ago
I think I remember something about log rotation, but I'm not sure if it's "logrotate" or something else.
GA
Gayla
1 year ago
Hmm, this is a tricky one. I'm leaning towards C - syslogd --rotate, since that sounds like it could be used to rotate logs. But the mailing part has me a bit unsure. I'll have to weigh the options carefully before answering.
MI
Miesha
1 year ago
I'm a bit confused by this question. I know there are commands for managing logs, but I'm not sure which one specifically handles all those tasks. I'll have to think it through or maybe even guess if I can't figure it out.
NA
Nakisha
1 year ago
Okay, I've got this. The answer is clearly D - logrotate. That's the standard Linux tool for automatically rotating, compressing, and even emailing system log files. I'm confident that's the right choice here.
GL
Glenn
1 year ago
Hmm, I'm a bit unsure about this one. Rotating and compressing logs sounds like a system administration task, so I'll have to think through the common commands used for that. Mailing the logs is an interesting twist.
GA
Gail
1 year ago
This looks like a straightforward Linux command question. I'll carefully read through the options and think about which one best matches the description of rotating, compressing, and mailing system logs.
MA
Marvel
1 year ago
I believe C) syslogd --rotate is the correct command for rotating system logs.
MA
Malcolm
1 year ago
I'm not sure, but I think A) rotatelog could also be a possibility.
PO
Portia
1 year ago
D) logrotate is the way to go. It's like the Swiss Army knife of log management - does everything you need and more.
HU
Hubert
1 year ago
C) syslogd --rotate doesn't seem as comprehensive as logrotate. I think D) logrotate is the way to go.
NI
Nickole
1 year ago
D) logrotate is definitely the most versatile choice for managing system logs.
LI
Lilli
1 year ago
A) rotatelog sounds like it could be useful too, but I agree that logrotate is the best option.
SC
Scarlet
1 year ago
D) logrotate, no doubt. I once tried to use B) striplog and ended up with a system that was more stripped than a runway model. Learned my lesson the hard way!
AU
Audrie
1 year ago
Hmm, I'm torn between D) logrotate and E) logger. Can't go wrong with either one, but I think logrotate is the more comprehensive solution.
GE
Genevive
1 year ago
Yeah, logrotate is a powerful tool for managing logs efficiently.
FE
Felton
1 year ago
I agree, logrotate is definitely the way to go for rotating, compressing, and mailing system logs.
HU
Huey
1 year ago
I agree with Sommer, logrotate makes sense for rotating system logs.
RO
Rosalia
1 year ago
I'd go with D) logrotate. It's the industry standard for log management, and I've used it in all my previous jobs.
GL
Glory
1 year ago
Yeah, logrotate is reliable and easy to use.
RO
Royce
1 year ago
I agree, logrotate is definitely the way to go.
SO
Sommer
1 year ago
I think the answer is D) logrotate.
MA
Madelyn
1 year ago
Definitely D) logrotate. That's the command I use to manage my system logs. Works like a charm!
SY
Sylvie
1 year ago
Thanks for the tip! I'll start using logrotate to rotate, compress, and mail my system logs.
CA
Candida
1 year ago
I've never used logrotate before, but I'll give it a try now that I know it's recommended.
SH
Shayne
1 year ago
I agree, D) logrotate is the best command for managing system logs.