sirayla calisan talimatlar toplami.
calisma alani
Bash
Bash icin sifirdan pratik ogrenme yolu
once tanim
Bash nedir
Bash kesin talimatlar yazmak icindir. Burada onu Bash icin sifirdan pratik ogrenme yolu olarak ogreniyorsun. Baslangic modeli: girdi adimlardan gecer ve cikti olur.
script.shcalistir bash script.shaliskanlik Bash icin kucuk bir parca ogren, minimal ornek yaz ve calistirdeger veridir. degisken bu veriyi tutan isimdir.
girdi alip sonuc ureten isimli kucuk is.
POSIX shell compatible terminal script.sh icindeki kodu calistirir.
ilk okunur kod
Commands
pwd ls cd echoname="Ada" echo "$name"
cikti Adadil soyu
Bash aile agaci
Bash nereden gelir, hangi diller yakindir ve sonra ne ogrenilir.
en iyi alan Bash icin sifirdan pratik ogrenme yolu
sifirdan
Soru bankasi
Once ara sonra calis
Bir asama sec veya bu dilin soru bankasinda ara ve alistirmaya gec.
Bash soru 1
Bash soru 1. echo output icin en uygun ifadeyi sec.
Bash soru 2
Bash soru 2. variable assignment icin en uygun ifadeyi sec.
Bash soru 3
Bash soru 3. pipe icin en uygun ifadeyi sec.
Bash soru 4
Bash soru 4. for loop icin en uygun ifadeyi sec.
Bash soru 5
Bash soru 5. echo output icin en uygun ifadeyi sec.
Bash soru 6
Bash soru 6. variable assignment icin en uygun ifadeyi sec.
Bash soru 7
Bash soru 7. pipe icin en uygun ifadeyi sec.
Bash soru 8
Bash soru 8. for loop icin en uygun ifadeyi sec.
Bash soru 9
Bash soru 9. echo output icin en uygun ifadeyi sec.
Bash soru 10
Bash soru 10. variable assignment icin en uygun ifadeyi sec.
Bash soru 11
Bash soru 11. pipe icin en uygun ifadeyi sec.
Bash soru 12
Bash soru 12. for loop icin en uygun ifadeyi sec.
Bash soru 13
Bash soru 13. echo output icin en uygun ifadeyi sec.
Bash soru 14
Bash soru 14. variable assignment icin en uygun ifadeyi sec.
Bash soru 15
Bash soru 15. pipe icin en uygun ifadeyi sec.
Bash soru 16
Bash soru 16. for loop icin en uygun ifadeyi sec.
Bash soru 17
Bash soru 17. echo output icin en uygun ifadeyi sec.
Bash soru 18
Bash soru 18. variable assignment icin en uygun ifadeyi sec.
coktan secmeli
Bash soru 1
Bash soru 1. echo output icin en uygun ifadeyi sec.
echo "$name"
referans
script.sh kaliplari
bash script.shpwd ls cd echo
Commands
name="Ada" echo "$name"
- Quote variables
- Start with echo
- Run in a small folder first
grep sort uniq wc
Pipes
printf "a\na\nb\n" | sort | uniq
- Pipe output to the next command
- Use rg or grep for search
- Count with wc
shebang variables if loops
Scripts
for file in *.txt; do echo "$file" done
- Use set -e for safer scripts
- Quote paths
- Dry run before deleting