Dwayne McDaniel – Pantheon
Let’s talk about magic
- Don’t be afraid of bash, just use it
- Stephen R. Bourne Created Unix shell in ’79
- bash “causes actions” its that simple
- Linux ’92 / ’93 Linus Torvalds
- Now you can run in on Windows 😐
- Build Tools
- CirlceCi
- Jenkins
- CI / CD
Bash
- Included in Mac and Linux
- Can install on Windows
- $ prompt
- ~ home directory
- pwd – present working directory
- ls – list contents of directory
- ls -a list contents – all (including hidden files)
- .. – one level up
- mkdir – make directory
- cp – copy
- mv – move
- rm – remove
- rm -rf — remove all recursive (be careful)
- history — show history of commands
- clear — clear screen
- open — Open files and directories
Tools
- grep — general regular expression search
- curl — pull from a url
- curl – I — header
- vi – editor
- nano – editor
- calc – calculator
- git – version control
- ddgr – duck duck go search
- wp – wpcli — WordPress command line
- backstop — automates visual regression
- example image magic — convert images
- .bashrc — create a alias such as ff to open Firefox if you want
- automate bash commands into a sequence
- Scripting
- “hello world”
- use wp-cli to automate stuff you do frequently
- build a script to build websites
- run scripts to update, test, test, move to production all within bash
- ctrl a — move to front of line
Tips
- duck duck go is great for documentation
- watch star wars in asci
Leave a Reply