Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 329 Bytes

linux-admin-script-cheat-sheet.md

File metadata and controls

21 lines (15 loc) · 329 Bytes

LINUX ADMIN - SCRIPTING

# shebang - To be launched with bash => chmod +rx script_name => ./script_name
#!/bin/sh

# Color
echo -e "\033[1;34;43m TEST \033[0m  "

# Special variables
First argument: $1 
Third argument: $3
Number of Arguments: $#
All Arguments: $@
Script Name: $0
Process ID: $$
Exit Code: $?