Course 4 - Learning Linux Shell Scripting | Episode 8: System Monitoring, Performance Measurement, and Log Management episode artwork

EPISODE · Nov 13, 2025 · 12 MIN

Course 4 - Learning Linux Shell Scripting | Episode 8: System Monitoring, Performance Measurement, and Log Management

from CyberCode Academy · host CyberCode Academy

In this lesson, you’ll learn about:Resource monitoring & optimization:Using df and du to calculate disk usage and free space, display results in human-readable form (-H), summarize totals, exclude directories, and locate the largest files with du | sort.Tracking disk I/O activity with iotop in both interactive and script modes.Checking filesystem integrity using fsck, with options to simulate or automatically repair issues.Measuring and tuning system power usage with powertop, generating HTML reports, and adjusting power-saving settings.Performance measurement & process analysis:Measuring command execution time via time, interpreting Real, User, and System times, and formatting or appending output to files.Monitoring process activity with ps to track CPU and memory usage, including automated scripts to identify the top resource-consuming processes.Continuously observing system output using watch, with difference highlighting (-d) between updates.System status & user activity tracking:Viewing logged-in users (who, w, users), uptime, and load averages.Reviewing login history with last (reads /var/log/wtmp) and failed logins with lastb.Analyzing session logs to calculate each user’s total activity time, login count, and ranking by usage.Logging techniques & management:Writing custom system log messages using logger, which integrates with syslogd and system-wide log files (boot, kernel, authentication, mail, etc.).Monitoring file and directory activity with inotifywait to detect read, write, create, move, or delete events.Managing log file growth using logrotate, setting parameters for size limits, rotation intervals (daily/weekly), and archived copy counts, with optional compression.Security & health monitoring scripts:Implementing intrusion detection by scanning /var/log/auth.log for repeated failed login attempts, extracting attacker details (user, IP, count) within a time window.Automating remote health checks using SSH to gather disk usage data from multiple hosts, logging device stats and marking alerts for disks above 80% usage.Key outcome:Gain proficiency in maintaining Linux system stability and security by actively monitoring performance, automating diagnostics, and managing logs efficiently through shell scripting.You can listen and download our episodes for free on more than 10 different platforms:https://linktr.ee/cybercode_academy

NOW PLAYING

Course 4 - Learning Linux Shell Scripting | Episode 8: System Monitoring, Performance Measurement, and Log Management

0:00 12:07

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

Lead with Faith: Empowering the Next Generation Jermaine Whiteside The Empowering Future Leaders Podcast – Presented by Anointed Connect Academy and hosted by Jermaine E. Whiteside, Doctoral Candidate in Christian Education, this podcast is your gateway to faith-driven leadership, lifelong learning, and real-world success strategies. Each episode blends inspiration with action, spotlighting career pathways, professional exam preparation, and innovative educational resources designed to equip the next generation of leaders.With candid conversations, expert insights, and transformative stories from students, educators, and industry leaders, we address the challenges facing at-risk and underserved communities while providing tangible tools to overcome them. Rooted in Christian values and a commitment to generational impact, this podcast empowers students, parents, and professionals to break barriers, build skills, and boldly pursue their God-given purpose. Reconnect Radio Tara Kemp, PhD Reconnect Radio is a show for mindful women seeking a more aligned life. Hosted by leading mental health expert, researcher, and coach Tara Kemp, PhD - each episode brings the latest evidence-based tools, practical tips, and personal stories to support you in building a healthy relationship with food, your body, and yourself. If you’re ready to do the inner work that will lead you to thrive in your most authentic and aligned life, hit the follow button and get ready to experience true healing and transformation.Follow Tara on Instagram @tarakemp_ : https://www.instagram.com/tarakemp_Join Reconnect’s FREE Private Facebook Community for Plant-based Women: https://www.facebook.com/groups/reconnectplantbasedwomenSign up for Reconnect Academy: https://www.reconnectcollective.com/reconnect-academyLearn about other Reconnect Collective programs: https://www.reconnectcollective.com Flintoff, Savage and the Ping Pong Guy BBC Radio 5 Live Andrew Flintoff, Robbie Savage and Matthew Syed discuss topical sports talking points.Three-time winners at the Radio Academy Awards: Best Podcast; Best New Show; Best Presenter (Andrew Flintoff)!Keep leaving your reviews and ratings, and don't forget you can get in touch using #FredSavSyed Prepping Academy Prepping Academy The Prepping Academy Radio Show is a live broadcast aimed at discussing various topics related to prepping, survival, and self-reliance, while also serving as a platform for preppers to unite. Our ultimate objective at The Prepping Academy Radio Show is to broaden your perspectives and inspire you to take action, as we strongly believe that preparedness is of the essence.  We welcome preppers of all levels to join us on preppingacademy.com and PrepperNet.com.

Frequently Asked Questions

How long is this episode of CyberCode Academy?

This episode is 12 minutes long.

When was this CyberCode Academy episode published?

This episode was published on November 13, 2025.

What is this episode about?

In this lesson, you’ll learn about:Resource monitoring & optimization:Using df and du to calculate disk usage and free space, display results in human-readable form (-H), summarize totals, exclude directories, and locate the largest files with du |...

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this CyberCode Academy episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!