AdminDev Labs

Shell Scripting


Listen Later

## Shell Scripting

### Why Bother?
- Despite the length of automating or scripting, the time you save in the end is worth it.
- Understanding your system; baseline computer logic; thinking "programatically"
- 31337 f***ing h@x

### Scripting Conventions
- She Bang(s?)
- /usr/bin/env python3
- /usr/bin/env ruby
- chmod u+x ("YOU" can execute) chmod g+x (Your "GROUP" can execute)
- Throw it in a crontab

### Scripting Logic
- variables
- while loops
- for
- until
- if/then/else
- case/switch statements

### Automation
- Reading from files
- Reading from databases
- Arguments, environment variables, and user input

### User tools
- dialog package
- kdialog (KDE is the best, btw ;) )

...more
View all episodesView all episodes
Download on the App Store

AdminDev LabsBy Chris Kennedy