Scripts for System Administration Tasks

In this chapter, we will introduce the following topics:

  • Gathering and aggregating system information
  • Gathering network information and connectivity diagnostics
  • Configuring basic network connectivity
  • Monitoring directories and files
  • Compressing and archiving files
  • Rotating files from RAM to storage for log rotation
  • Using Linux iptables for a firewall
  • Accessing SQL databases remotely or locally
  • Creating SSH keys for password less remote access
  • Creating and configuring cron jobs for task scheduling
  • Creating users and groups systematically

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.