Devops Shack: Linux Commands Documentation
Devops Shack: Linux Commands Documentation
1. Introduction to Linux
Linux is an open-source operating system that manages hardware and software
resources on a computer. It provides a user interface and a range of utilities to
perform system tasks.
6. Network Commands
Commands to manage and troubleshoot network settings.
• #!/bin/bash
echo "Hello, World!"
• Running a script
• chmod +x script_name.sh
./script_name.sh
• Variables
• name="John"
echo "Hello, $name"
• Conditional Statements
• if [ condition ]
• then
• # commands
fi
• Loops
• for i in {1..5}
• do
• echo "Iteration $i"
done