A curated collection of Bash scripts designed for Linux system administration, focusing on automation, user management, and file permissions on Red Hat Enterprise Linux (RHEL) 9.6 Plow. This repository serves as a learning lab and portfolio for practical sysadmin tasks.
This repository contains Bash scripts developed to streamline system administration tasks on RHEL 9.6 Plow. Starting with foundational scripts, it aims to grow into a comprehensive toolkit for automation, user management, and system monitoring. Each script is documented with usage instructions and designed for clarity and reusability.
- Basics - Core syntax and introductory scripts.
- File Management - Handling files and directories.
- Process Control - Managing system processes.
- Network Operations - Network diagnostics and tasks.
- User Administration - User and permission management.
- Backup and Recovery - Data protection scripts.
- Monitoring and Logging - System health checks.
- Automation Tasks - Integrated automation workflows.
- Security Utils - Security-related utilities.
- Operating System: RHEL 9 (or compatible Linux distribution)
- Shell: Bourn again Shell
- Scripts are tested with Bats (Bash Automated Testing System).
- Run locally:
./test/libs/bats-core/bin/bats tests/ - Automated via GitHub Actions: See the Tests badge above for CI results.
-
Clone the Repository:
git clone https://github.com/KalharaBatangala/Bash-Script-Lab.git cd Bash-Script-Lab -
Make Scripts Executable:
chmod +x *.sh -
Run a Script:
./hello.sh ./greet.sh ./math.sh
-
Example Output:
$ ./greet.sh Enter your name: Kalhara Welcome, Kalhara! You're the admin!