Please enable JavaScript.
Coggle requires JavaScript to display documents.
Lunix - Coggle Diagram
Lunix
Shell Scripting
command
I/O
print to console
echo "Hello world"
read input from console
read name_var
variable
$BASH
file level
view all files & permission
ls -al
add execute a file permission
chmod +x hello.sh
create a file
touch hello.sh
check if file is exist
create a directory
mkdir dictory_name
append text to an existed file
pass arguments to sh
args = ("$
")
$@ : list of args
$# : number of args
logic
if statement