Great to see your new video Shawn! Most of all glad you are feeling better! Interesting staff
@kazami63172 жыл бұрын
Hope you are feeling better! Getting Covid and still teaching us 🙏🏻 Thank you so much!
@shawnp0wers2 жыл бұрын
Slowly getting better. But I missed making videos! :D
@scottb40292 жыл бұрын
Your sounding better. Glad to see a video, well done considering your condition. Btw I made the plunge to totally Linux. I screwed up and overwrote my boot disk partitions. So I tried to recover my Mac OS system. No go. Now I am MX Linux with a 11 year old Mac mini. Works great! Thanks for the hard work. keep getting better.
@shawnp0wers2 жыл бұрын
Oh sweet!!! Bummer of a way to force the switch, hopefully you didn't lose any data. And thanks. I made a 10 minute video, and feel like I ran a marathon. But no regrets. :)
@nikolaidimitrov41562 жыл бұрын
The part for "size 100M" is not completely true. Logrotate is executed via cron. So when logrotate is executed it will check if filesize is 100M and will rotate it. When you have extensive logs 100M every 30 minets for example this will not rotate your logs every 30 minutes but only when cron is executed.
@AndyHeasman2 жыл бұрын
Great video Shawn! Hope you feel better soon.
@shawnp0wers2 жыл бұрын
Thank you! Slowly but surely... still positive, but feeling pretty good. :)
@hw-manojАй бұрын
My Ubuntu doing this filling storage thing and it filled ~100gb.so I stopped rsyslog and deleted all logs.now whenever I open gnome-files it freezes and nothing works except I see mouse cursor movement only that too don't respond to clicks
@leelaprasad4092 жыл бұрын
Hi , I have used same directives but daily is not working for me . What to do pls suggest.
@igors_lv2 жыл бұрын
I think day week month is needed always, size is additional parameter. Rotate daily plus size 10M means it will try every day, but will not rotate if size is less than 10 megabytes Also logrotate has dry run option, it will output what it does, but not touch actual files, good for initial setup.
@jamesmichaels4209 Жыл бұрын
thank you yes i hope you are feeling better
@ahmedw52 жыл бұрын
I will definitely try this out, thanks Shawn!
@shawnp0wers2 жыл бұрын
You bet! I've accidentally filled up too many server hard drives with runaway logs. And this is *so easy* to do. :)
@cr1ss4_yt2 жыл бұрын
With my own script files I use the date command to add an extra information to the output filename, like output_6.log for a log that is created on Saturday (6th day of week). With this you have some old logs and a limit for the total number of this old logs.
@leelaprasad4092 жыл бұрын
Can u share the script here for date command where for each execution it will be like output1.log , output2.log
@cr1ss4_yt2 жыл бұрын
I use this to limit the number of files and disk space without the need to delete old logs. DAYANDHOUR=`date +"%u_%H"` # %u => day of week (1..7); 1 is Monday echo "day of week and hour of day:" $DAYANDHOUR DAYOFYEAR=`date +"%j"` # %j => day of year (001..366) echo "day of year:" $DAYOFYEAR OUTPUT="output_$DAYANDHOUR" echo $OUTPUT day of week and hour of daa: 1_09 day of year: 016 output_1_09 For more information see: man date
@favourdaniel24102 жыл бұрын
I wish you quick recovery, probably hoping you feel a lot better now compared to when you made the video.
@shawnp0wers2 жыл бұрын
Thank you! I'm healed, but still exhausted most of the day. Hopefully I'll get back to normal soon!
@malikon6953 Жыл бұрын
awesome. Thank you.
@JamesStoddah2 жыл бұрын
Sent by #HankGreeen
@laurenlinsalata43282 жыл бұрын
+
@shawnp0wers2 жыл бұрын
Thanks for stopping by! It was pretty surreal to get called out like that. :)