Initial Core 2 study project
This commit is contained in:
commit
10de90430c
120 changed files with 12696 additions and 0 deletions
59
notes/OPS-8-scripting-basics.md
Normal file
59
notes/OPS-8-scripting-basics.md
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# OPS-8: Scripting Basics
|
||||
|
||||
Status: not started
|
||||
|
||||
Domain:
|
||||
- 4.0 Operational Procedures
|
||||
|
||||
Objective alignment:
|
||||
- 4.8 Scripting languages, use cases, and risks
|
||||
|
||||
## What You Need To Know
|
||||
|
||||
Scripts automate repeated tasks, but they can also break systems quickly.
|
||||
|
||||
Script types:
|
||||
- `.bat`
|
||||
- `.ps1`
|
||||
- `.vbs`
|
||||
- `.sh`
|
||||
- `.js`
|
||||
- `.py`
|
||||
|
||||
Use cases:
|
||||
- Automation
|
||||
- Restarting machines
|
||||
- Remapping drives
|
||||
- Application installs
|
||||
- Backups
|
||||
- Data gathering
|
||||
- Updates
|
||||
|
||||
Risks:
|
||||
- Introducing malware
|
||||
- Changing system settings
|
||||
- Deleting data
|
||||
- Crashing browsers or systems
|
||||
- Mishandling resources
|
||||
|
||||
## Memory Trick
|
||||
|
||||
Use **A-R-I-B-D**:
|
||||
|
||||
- **A**utomate
|
||||
- **R**estart
|
||||
- **I**nstall
|
||||
- **B**ack up
|
||||
- **D**ata gathering
|
||||
|
||||
Shortcut:
|
||||
- **Scripts are force multipliers for both fixes and mistakes.**
|
||||
|
||||
## Exam Clues
|
||||
|
||||
- PowerShell scripts use `.ps1`.
|
||||
- Bash shell scripts commonly use `.sh`.
|
||||
- Batch files use `.bat`.
|
||||
- Test scripts before broad deployment.
|
||||
- Review scripts from unknown sources before running.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue