programming:bash:hello_world
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
programming:bash:hello_world [2022/04/06 08:39] – created ateixeira | programming:bash:hello_world [2022/04/06 09:04] (current) – [The basics] ateixeira | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Take a look at the linux help sheets | * Take a look at the linux help sheets | ||
* Open a terminal | * Open a terminal | ||
- | * Try it ! | + | |
If you don't know what a command means, don't forget the linux help sheets or the really useful Manual pages directly on the terminal | If you don't know what a command means, don't forget the linux help sheets or the really useful Manual pages directly on the terminal | ||
<code bash> | <code bash> | ||
Line 14: | Line 14: | ||
<code bash> | <code bash> | ||
pwd | pwd | ||
+ | cd | ||
ls | ls | ||
cd Documents/ | cd Documents/ | ||
+ | ls -la | ||
mkdir <your folder> | mkdir <your folder> | ||
- | ls | + | ls -la |
cd <your folder> | cd <your folder> | ||
pwd | pwd | ||
- | ls -la | + | ls |
</ | </ | ||
Line 113: | Line 115: | ||
#!/bin/bash | #!/bin/bash | ||
- | echo "Choose | + | echo -e "Hello !\nChoose |
read number | read number | ||
+ | echo " | ||
for x in $(seq 1 $number); | for x in $(seq 1 $number); | ||
do | do | ||
- | echo "Hello $x" | + | |
done | done | ||
</ | </ |
programming/bash/hello_world.1649234392.txt.gz · Last modified: 2022/04/06 08:39 by ateixeira