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.

minimum calisma bilgisidosya script.shcalistir bash script.shaliskanlik Bash icin kucuk bir parca ogren, minimal ornek yaz ve calistir
program

sirayla calisan talimatlar toplami.

deger ve degisken

deger veridir. degisken bu veriyi tutan isimdir.

fonksiyon

girdi alip sonuc ureten isimli kucuk is.

runtime

POSIX shell compatible terminal script.sh icindeki kodu calistirir.

ilk okunur kod

Commands

pwd ls cd echo
name="Ada"
echo "$name"
cikti Ada

dil soyu

Bash aile agaci

Bash nereden gelir, hangi diller yakindir ve sonra ne ogrenilir.

kokler
shUnixawk
simdiBashotomasyon ve komut dil ailesi
aileotomasyon ve komut dil ailesi
en iyi alan

en iyi alan Bash icin sifirdan pratik ogrenme yolu

sifirdan

1bir kural oku2ciktisini tahmin et3hafizadan yaz4kontrolu calistir5bir degisiklikle tekrarla

Soru bankasi

Once ara sonra calis

Bir asama sec veya bu dilin soru bankasinda ara ve alistirmaya gec.

18 sonuc
Q 1SecimAsama 1 tanimlar

Bash soru 1

Bash soru 1. echo output icin en uygun ifadeyi sec.

Q 2SecimAsama 1 tanimlar

Bash soru 2

Bash soru 2. variable assignment icin en uygun ifadeyi sec.

Q 3SecimAsama 1 tanimlar

Bash soru 3

Bash soru 3. pipe icin en uygun ifadeyi sec.

Q 4SecimAsama 1 tanimlar

Bash soru 4

Bash soru 4. for loop icin en uygun ifadeyi sec.

Q 5SecimAsama 1 tanimlar

Bash soru 5

Bash soru 5. echo output icin en uygun ifadeyi sec.

Q 6SecimAsama 1 tanimlar

Bash soru 6

Bash soru 6. variable assignment icin en uygun ifadeyi sec.

Q 7SecimAsama 1 tanimlar

Bash soru 7

Bash soru 7. pipe icin en uygun ifadeyi sec.

Q 8SecimAsama 1 tanimlar

Bash soru 8

Bash soru 8. for loop icin en uygun ifadeyi sec.

Q 9SecimAsama 1 tanimlar

Bash soru 9

Bash soru 9. echo output icin en uygun ifadeyi sec.

Q 10SecimAsama 1 tanimlar

Bash soru 10

Bash soru 10. variable assignment icin en uygun ifadeyi sec.

Q 11SecimAsama 1 tanimlar

Bash soru 11

Bash soru 11. pipe icin en uygun ifadeyi sec.

Q 12SecimAsama 1 tanimlar

Bash soru 12

Bash soru 12. for loop icin en uygun ifadeyi sec.

Q 13SecimAsama 1 tanimlar

Bash soru 13

Bash soru 13. echo output icin en uygun ifadeyi sec.

Q 14SecimAsama 1 tanimlar

Bash soru 14

Bash soru 14. variable assignment icin en uygun ifadeyi sec.

Q 15SecimAsama 1 tanimlar

Bash soru 15

Bash soru 15. pipe icin en uygun ifadeyi sec.

Q 16SecimAsama 1 tanimlar

Bash soru 16

Bash soru 16. for loop icin en uygun ifadeyi sec.

Q 17SecimAsama 1 tanimlar

Bash soru 17

Bash soru 17. echo output icin en uygun ifadeyi sec.

Q 18SecimAsama 1 tanimlar

Bash soru 18

Bash soru 18. variable assignment icin en uygun ifadeyi sec.

coktan secmeli

Bash soru 1

Q 1Secimyeni

Bash soru 1. echo output icin en uygun ifadeyi sec.

echo "$name"

referans

script.sh kaliplari

POSIX shell compatible terminalbash script.sh
hafizadan cagirkucuk bir noktayi oku sonra bakmadan yaz
kodu izlecalistirmadan once degiskenleri satir satir izle
kendin yazdaha az kopyala daha cok yaz ve bir hatayi duzelt

pwd 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