tricks:shell
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tricks:shell [2021/02/12 08:22] – created joeleg | tricks:shell [2023/05/30 22:32] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Shell tricks ====== | ====== Shell tricks ====== | ||
| + | {{tag> | ||
| ===== Sudo privilege escalation ===== | ===== Sudo privilege escalation ===== | ||
| <code bash> | <code bash> | ||
| Line 6: | Line 7: | ||
| exit $? | exit $? | ||
| fi | fi | ||
| + | </ | ||
| + | |||
| + | ===== Posix Documentation ===== | ||
| + | [[https:// | ||
| + | ==== Parameter expansion ==== | ||
| + | [[https:// | ||
| + | Expansion can differ depending on parameter value and set status and possibly assign. | ||
| + | Substitution can also provide string length and prefix/ | ||
| + | ===== Useful templates ===== | ||
| + | ==== 7zip compression ==== | ||
| + | <code bash> | ||
| + | 7z a -t7z [OUTPUT FILE].7z -m0=lzma2 -mx=9 [INPUT FILE] | ||
| </ | </ | ||
tricks/shell.1613118148.txt.gz · Last modified: (external edit)