O'Reilly logo

Linux Shell Scripting Cookbook by Sarath Lakshman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Put on the Monitor's Cap

In this chapter, we will cover:

  • Disk usage hacks
  • Calculating the execution time for a command
  • Information about logged users, boot logs, failure boots
  • Printing the 10 most frequently-used commands
  • Listing the top 10 CPU consuming process in 1 hour
  • Monitoring command outputs with watch
  • Logging access to files and directories
  • Logfile management with logrotate
  • Logging with syslog
  • Monitoring user logins to find intruders
  • Remote disk usage health monitoring
  • Finding out active user hours on a system

Introduction

An operating system consists of a collection of system software, designed for different purposes, serving different task sets. Each of these programs requires to be monitored by the operating system or the system administrator ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required