linux-shell-scripting

Solid

This skill should be used when the user asks to "create bash scripts", "automate Linux tasks", "monitor system resources", "backup files", "manage users", or "write production she...

Web & Frontend 353 stars 29 forks Updated today

Install

View on GitHub

Quality Score: 86/100

Stars 20%
85
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
0
Description 5%
100

Skill Content

# Linux Production Shell Scripts ## Purpose Provide production-ready shell script templates for common Linux system administration tasks including backups, monitoring, user management, log analysis, and automation. These scripts serve as building blocks for security operations and penetration testing environments. ## Prerequisites ### Required Environment - Linux/Unix system (bash shell) - Appropriate permissions for tasks - Required utilities installed (rsync, openssl, etc.) ### Required Knowledge - Basic bash scripting - Linux file system structure - System administration concepts ## Outputs and Deliverables 1. **Backup Solutions** - Automated file and database backups 2. **Monitoring Scripts** - Resource usage tracking 3. **Automation Tools** - Scheduled task execution 4. **Security Scripts** - Password management, encryption ## Core Workflow ### Phase 1: File Backup Scripts **Basic Directory Backup** ```bash #!/bin/bash backup_dir="/path/to/backup" source_dir="/path/to/source" # Create a timestamped backup of the source directory tar -czf "$backup_dir/backup_$(date +%Y%m%d_%H%M%S).tar.gz" "$source_dir" echo "Backup completed: backup_$(date +%Y%m%d_%H%M%S).tar.gz" ``` **Remote Server Backup** ```bash #!/bin/bash source_dir="/path/to/source" remote_server="user@remoteserver:/path/to/backup" # Backup files/directories to a remote server using rsync rsync -avz --progress "$source_dir" "$remote_server" echo "Files backed up to remote server." ``` **Backup Rotatio...

Details

Author
aiskillstore
Repository
aiskillstore/marketplace
Created
5 months ago
Last Updated
today
Language
Python
License
None

Similar Skills

Semantically similar based on skill content — not just same category