diff --git a/weekly_lessons/04-aliases/README.md b/weekly_lessons/04-aliases/README.md new file mode 100644 index 0000000..ddba549 --- /dev/null +++ b/weekly_lessons/04-aliases/README.md @@ -0,0 +1,64 @@ +# Week 04 ( aliases for days ) + +- [Week 04 ( aliases for days )](#week-04--aliases-for-days-) + - [Pre-reqs](#pre-reqs) + - [Why](#why) + - [Examples](#examples) + - [Resources](#resources) + +## Pre-reqs + +- bash setup + - [video](https://youtu.be/mfP8R1yr80A) + - [writen instruction](/install_methods/) + +## Why + +1. make life easier 😁 +2. nested aliases are bae 🙃 (automate your automation) +3. possible attack +4. how to thwart :arrow_up: + +## Examples + +```bash +help help +help -d *alias* +exit +help alias +alias -p +pe-bash +ls --help | less +ls --help |& less +ls -a +ls -A +la +alias la='ls -A' +la +alias -p +unalias la +alias -p +alias ls='rm -rf /' +ls +exit +pe-bash +ls +ls -a bash_tricks +rm -rf !$ +exit +vagrant provision && vagrant ssh +pe-bash +pe-cleanup +pe-bash +help unalias +alias -p +alias ls='rm -rf /' +alias -p +\unalias -a +alias -p +``` + +## Resources + +- [my vagrant aliases (nesting)](https://github.com/elreydetoda/all-linux-tings)* (work in progress) +- [github dotfiles](https://github.com/search?q=dotfiles)