Skip to content

Commit

Permalink
adding week 4 aliases for days (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
elreydetoda authored Jul 8, 2020
1 parent d092086 commit d2a6c48
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions weekly_lessons/04-aliases/README.md
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit d2a6c48

Please sign in to comment.