linux:bash
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:bash [2022/12/03 12:51] – bstafford | linux:bash [2023/07/25 15:20] (current) – [Read File] bstafford | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======BASH====== | ======BASH====== | ||
| + | ===== Set VIM as visudo ===== | ||
| + | Run as root | ||
| + | < | ||
| + | |||
| + | From | ||
| + | < | ||
| + | EDITOR=" | ||
| + | |||
| + | ===== Read File ===== | ||
| + | Read a list of words from a file [[https:// | ||
| + | |||
| + | < | ||
| + | domainsfile=" | ||
| + | |||
| + | while read domain | ||
| + | do | ||
| + | echo " | ||
| + | echo " | ||
| + | echo " | ||
| + | |||
| + | host -W 5 -t txt " | ||
| + | done < " | ||
| + | < | ||
| + | ===== Sudo ===== | ||
| + | Add user to sudo list in '' | ||
| + | < | ||
| + | The add user where they don't need password, use the following. | ||
| + | |||
| + | REMEMBER: put this at the bottom of the file or other lines may get applied after this and change the user permission. | ||
| + | < | ||
| =====Toggle Bash History===== | =====Toggle Bash History===== | ||
| Turn Off< | Turn Off< | ||
linux/bash.1670071875.txt.gz · Last modified: by bstafford
