shellscript
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| shellscript [2025/01/19 03:22] – 1211112228 | shellscript [2025/01/19 03:25] (current) – 1211112228 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Shell Scripting ====== | ====== Shell Scripting ====== | ||
| - | Execute shell script: ./script.sh, bash script.sh, source script.sh | + | Execute shell script: |
| + | | ||
| + | | ||
| + | | ||
| - | Read user input: read | + | Read user input: |
| + | | ||
| - | Echo text to screen: echo | + | Echo text to screen: |
| + | | ||
| - | Arithmetic operations: let, expr | + | Arithmetic operations: |
| + | | ||
| + | | ||
| - | Conditional statements: if, case | + | Conditional statements: |
| + | | ||
| + | | ||
| - | Loops: for, while | + | Loops: |
| + | | ||
| + | | ||
| - | Array operations: declare, read -a | + | Array operations: |
| + | | ||
| + | | ||
| - | Check file/ | + | Check file/ |
| + | [file] | ||
| + | [file] | ||
| + | [file] | ||
| - | Check file permissions: | + | Check file permissions: |
| - | + | [file] | |
| - | Check file type: -b, -c, -L, -S | + | [file] |
| + | [file] | ||
| + | |||
| + | Check file type: | ||
| + | [file] | ||
| + | [file] | ||
| + | [file] | ||
| + | [file] | ||
shellscript.1737256951.txt.gz · Last modified: 2025/01/19 03:22 by 1211112228
