Let's talk about Scripting - Learning it

I use CentOS and Ubuntu on a daily basis but with the availability of Cpanel and Webmin or other panels most of these things I never need to touch or make a script for. Even with most popular applications the scripts are all included.
I just want to know some good resources or books for learning bash | perl that focus on system administration. I absolutely suck at this kind of stuff because to me it all seems like programming. In order to move up I need to learn this skill.
The resources I have been able to find are either too basic (usually web sites) or books geared to either users learning the command line or programming. Where is the middle ground?
I just want to know some good resources or books for learning bash | perl that focus on system administration. I absolutely suck at this kind of stuff because to me it all seems like programming. In order to move up I need to learn this skill.
The resources I have been able to find are either too basic (usually web sites) or books geared to either users learning the command line or programming. Where is the middle ground?
Comments
Pick O'Reilly bash books, read it and workout all the examples. Then pick O'Reilly cookbook and do the same.
Use it actively at work, and Google things when you get stuck (Stack exchange will be your best friend).
Enjoy.
For general administration, bash would be easier to apply.
Certs: RHCSA, LFCS: Ubuntu, CNCF CKA, CNCF CKAD | AWS Certified DevOps Engineer, AWS Solutions Architect Pro, AWS Certified Security Specialist, GCP Professional Cloud Architect
Learn: Terraform, Kubernetes, Prometheus & Golang | Improve: Docker, Python Programming
To-do | In Progress | Completed
use "Pro Bash Programming" by OReilly, it's a pretty good book for shell scripting.
Unix Shell Programming (3rd Edition): Stephen G. Kochan, Patrick Wood: 9780672324901: Amazon.com: Books
Certs: RHCSA, LFCS: Ubuntu, CNCF CKA, CNCF CKAD | AWS Certified DevOps Engineer, AWS Solutions Architect Pro, AWS Certified Security Specialist, GCP Professional Cloud Architect
Learn: Terraform, Kubernetes, Prometheus & Golang | Improve: Docker, Python Programming
To-do | In Progress | Completed
My shelf is getting massive here at work. >.<
Advanced Bash-Scripting Guide
Python course at Codeacademy (free online)
Understanding how to:
for x in `sed | awk | sort `; do something $x; done
is the basics for bash
There is expect scripting if you need to login to servers to do commands (think no root logins)
Python for more advanced scripting and/or reading comprehension for linux errors because many linux programs are python.
Since you're doing web admin apparently, learning to use scripting to parse your logs is a good real world scenario.
nixCraft — Linux Tips, Hacks, Tutorials, And Ideas In Blog
As others have hinted at, bash/linux shell scripting is focused on text manipulation to do things. Grep, sed, awk, cut, sort, etc will take you far.
+1 for lsud00d on promoting the nixCraft web site.
Both are excellent resources.
" Embrace, evolve, extinguish "
ally_uk, I've seen you post a lot about scripting for months and asking for resources. Have you gone thru any of the suggestions we've provided yet?
Certs: RHCSA, LFCS: Ubuntu, CNCF CKA, CNCF CKAD | AWS Certified DevOps Engineer, AWS Solutions Architect Pro, AWS Certified Security Specialist, GCP Professional Cloud Architect
Learn: Terraform, Kubernetes, Prometheus & Golang | Improve: Docker, Python Programming
To-do | In Progress | Completed
I have been watching some Python 3 videos recently am currently making my way through the CBT videos, and other videos I am just having trouble getting
focused though and knuckling down.
" Embrace, evolve, extinguish "
--
Regards
The Geek Stuff - Great Source of Linux and Oracle knowledge
The Geek Stuff
Commandlinefu.com - All CLI stuff from Linux to Mac OS X to HP Linux
All commands | commandlinefu.com
"Its easier to deceive the masses then to convince the masses that they have been deceived."
-unknown
The linux command dialog is perfect for this--I made a "GUI"-driven shellscript for admin'ing Squid proxy that centered around either one or multiple one-liners as functions that did common tasks like emptying cache, rotating log files, re-read config (after config is updated), etc.
UNIX Command Line: Linux dialog utility short tutorial
Bash display dialog boxes - Linux Shell Scripting Tutorial - A Beginner's handbook
found the above resource on Bash Scripting, Also more videos on different Linux subjects could be useful for some people
" Embrace, evolve, extinguish "
I need to take things down a level and start with the basics and gradually inc operate concepts.
" Embrace, evolve, extinguish "