calisma alani

PowerShell

PowerShell icin sifirdan pratik ogrenme yolu

once tanim

PowerShell nedir

PowerShell kesin talimatlar yazmak icindir. Burada onu PowerShell icin sifirdan pratik ogrenme yolu olarak ogreniyorsun. Baslangic modeli: girdi adimlardan gecer ve cikti olur.

minimum calisma bilgisidosya script.ps1calistir pwsh script.ps1aliskanlik PowerShell 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

PowerShell 7 script.ps1 icindeki kodu calistirir.

ilk okunur kod

program ciktisi

entry point output syntax Write-Output
Write-Output 42
cikti 42

dil soyu

PowerShell aile agaci

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

kokler
shell.NETC#
simdiPowerShellotomasyon ve komut dil ailesi
aileotomasyon ve komut dil ailesi
en iyi alan

en iyi alan PowerShell 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

PowerShell soru 1

PowerShell soru 1. deger yazdirma icin en uygun ifadeyi sec.

Q 2SecimAsama 1 tanimlar

PowerShell soru 2

PowerShell soru 2. degeri adlandirma icin en uygun ifadeyi sec.

Q 3SecimAsama 1 tanimlar

PowerShell soru 3

PowerShell soru 3. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.

Q 4SecimAsama 1 tanimlar

PowerShell soru 4

PowerShell soru 4. temel koleksiyon icin en uygun ifadeyi sec.

Q 5SecimAsama 1 tanimlar

PowerShell soru 5

PowerShell soru 5. deger yazdirma icin en uygun ifadeyi sec.

Q 6SecimAsama 1 tanimlar

PowerShell soru 6

PowerShell soru 6. degeri adlandirma icin en uygun ifadeyi sec.

Q 7SecimAsama 1 tanimlar

PowerShell soru 7

PowerShell soru 7. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.

Q 8SecimAsama 1 tanimlar

PowerShell soru 8

PowerShell soru 8. temel koleksiyon icin en uygun ifadeyi sec.

Q 9SecimAsama 1 tanimlar

PowerShell soru 9

PowerShell soru 9. deger yazdirma icin en uygun ifadeyi sec.

Q 10SecimAsama 1 tanimlar

PowerShell soru 10

PowerShell soru 10. degeri adlandirma icin en uygun ifadeyi sec.

Q 11SecimAsama 1 tanimlar

PowerShell soru 11

PowerShell soru 11. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.

Q 12SecimAsama 1 tanimlar

PowerShell soru 12

PowerShell soru 12. temel koleksiyon icin en uygun ifadeyi sec.

Q 13SecimAsama 1 tanimlar

PowerShell soru 13

PowerShell soru 13. deger yazdirma icin en uygun ifadeyi sec.

Q 14SecimAsama 1 tanimlar

PowerShell soru 14

PowerShell soru 14. degeri adlandirma icin en uygun ifadeyi sec.

Q 15SecimAsama 1 tanimlar

PowerShell soru 15

PowerShell soru 15. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.

Q 16SecimAsama 1 tanimlar

PowerShell soru 16

PowerShell soru 16. temel koleksiyon icin en uygun ifadeyi sec.

Q 17SecimAsama 1 tanimlar

PowerShell soru 17

PowerShell soru 17. deger yazdirma icin en uygun ifadeyi sec.

Q 18SecimAsama 1 tanimlar

PowerShell soru 18

PowerShell soru 18. degeri adlandirma icin en uygun ifadeyi sec.

coktan secmeli

PowerShell soru 1

Q 1Secimyeni

PowerShell soru 1. deger yazdirma icin en uygun ifadeyi sec.

Write-Output 42

referans

script.ps1 kaliplari

PowerShell 7pwsh script.ps1
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

entry point output syntax Write-Output

program ciktisi

Write-Output 42
  • Run the smallest file first
  • Print one known value
  • Check the output before adding more code

variables assignment types $

degerler ve isimler

$total = 42
Write-Output $total
  • Give values readable names
  • Keep one idea per line while learning
  • Trace the value before changing it

function collection Array

fonksiyonlar ve koleksiyonlar

function Add($a, $b) {
  return $a + $b
}

$scores = @(40, 2)
Write-Output $scores.Count
  • Keep functions small
  • Return useful values
  • Use the common collection before reaching for frameworks