Hello everyone, today i decide to write this tutorial with name 'HOW IT WORKS'
Im going to create many of tutorials in long time, but at first lets start with bash scripts
First point you need to know :
Every single script need to have
#!/bin/bash
WHOLE SCRIPT NEED TO BE IN ONE LINE,
because if you use "Enter" BASH will read it as NEW COMMAND
You need to give permissions for script
My recommendation is : chmod 777 NAMEOFSCRIPT
How to run script?
./NAMEOFSCRIPT
How to see your directory by script:
WRONG EXAMPLE
#!/bin/bash
vdir
/home/GUGI
CORRECT EXAMPLE
#!/bin/bash
vdir /home/GUGI
#!/bin/bash
zmienna="HERE IS YOUR TEXT :)"
echo $zmienna
Komentarze