🐚

Shell Reference

The command-line interface used for automating tasks and managing server environments. Essential syntax and code samples for professional development.

Variables

NAME="Bash" echo "Hello $NAME"

Loops

for i in {1..5}; do echo $i done

Conditionals

if [ "$A" == "$B" ]; then echo "Match" fi

Functions

greet() { echo "Hi $1" }

Piping

cat logs.txt | grep "Error" | wc -l

Redirects

echo "content" > output.txt echo "more" >> output.txt