What does echo do?
echo prints text or the value of variables. With > or >> it writes text into files.
echo [-n] [-e] text
Most useful options
| Option | What it does |
|---|---|
| -n | no newline at the end |
| -e | understand \n and \t |
echo examples
In security work
echo "text" | base64 -d decodes data quickly in CTFs.
Questions about echo
How do I write to a file from the terminal?
echo "text" > file replaces it; echo "text" >> file adds to the end.