Skip to content

A collection of cross-distro Linux sysadmin scripts for automation, maintenance, monitoring, and cleanup. Minimal, cron-friendly, and built for real-world use.

Notifications You must be signed in to change notification settings

pro-yash-jects/lin_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

lin_scripts

βš™οΈ A collection of lightweight, practical Bash scripts for Linux system administration.
These tools are built to automate routine sysadmin tasks β€” including monitoring, reporting, archiving, cleanup, and more.

Each script is designed to be cron-friendly, minimal, and compatible with most major Linux distributions (CentOS, Arch, Debian-based systems, etc.).


🧠 Overview

This repository contains scripts aimed at simplifying day-to-day Linux system administration tasks.

These scripts:

  • Require minimal dependencies (only standard Linux CLI tools)
  • Work across multiple distros with adaptive logic
  • Are easy to audit, edit, and plug into cron jobs
  • Follow good practices for security and system compatibility

More scripts will be added over time.


πŸ“¦ Getting Started

Clone the Repo:

git clone https://github.com/pro-yash-jects/lin_scritps.git
cd lin_scritps

Run a Script:

sudo ./script_name.sh

πŸ” Some scripts require root privileges or pre-setup (e.g., email configs).

Make a Script Executable:

chmod +x script_name.sh

πŸ”§ Requirements

Most scripts rely only on standard coreutils like:

  • awk, grep, find, cut, date, etc.

Some optional scripts may require:

  • msmtp + mailx (for sending email alerts)

πŸ” Security Notes

Some scripts use config files (e.g., user-to-email mappings) that should be root-only readable:

sudo chmod 600 /etc/custom_config.conf

Passwords used with msmtp are encrypted using GPG and never stored in plaintext.


πŸš€ Use Cases (Examples)

This repo may include scripts for:

  • Notifying users about upcoming password expiries
  • Archiving stale files
  • Blocking suspicious login attempts
  • System health checks
  • Log parsing & reporting

Each script is self-contained and explained via inline comments.


🀝 Contributing

Want to improve an existing script or add a new one?

  • Fork the repo
  • Create a new branch
  • Open a PR

Ideas, fixes, or feedback are always welcome via issues or discussions.


πŸ“„ License

This project is licensed under the MIT License.
Use it, modify it, redistribute it β€” attribution appreciated, not required.


Built and maintained by Yash

About

A collection of cross-distro Linux sysadmin scripts for automation, maintenance, monitoring, and cleanup. Minimal, cron-friendly, and built for real-world use.

Resources

Stars

Watchers

Forks