sirayla calisan talimatlar toplami.
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.
script.ps1calistir pwsh script.ps1aliskanlik PowerShell icin kucuk bir parca ogren, minimal ornek yaz ve calistirdeger veridir. degisken bu veriyi tutan isimdir.
girdi alip sonuc ureten isimli kucuk is.
PowerShell 7 script.ps1 icindeki kodu calistirir.
ilk okunur kod
program ciktisi
entry point output syntax Write-OutputWrite-Output 42
cikti 42dil soyu
PowerShell aile agaci
PowerShell nereden gelir, hangi diller yakindir ve sonra ne ogrenilir.
sifirdan
Soru bankasi
Once ara sonra calis
Bir asama sec veya bu dilin soru bankasinda ara ve alistirmaya gec.
PowerShell soru 1
PowerShell soru 1. deger yazdirma icin en uygun ifadeyi sec.
PowerShell soru 2
PowerShell soru 2. degeri adlandirma icin en uygun ifadeyi sec.
PowerShell soru 3
PowerShell soru 3. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
PowerShell soru 4
PowerShell soru 4. temel koleksiyon icin en uygun ifadeyi sec.
PowerShell soru 5
PowerShell soru 5. deger yazdirma icin en uygun ifadeyi sec.
PowerShell soru 6
PowerShell soru 6. degeri adlandirma icin en uygun ifadeyi sec.
PowerShell soru 7
PowerShell soru 7. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
PowerShell soru 8
PowerShell soru 8. temel koleksiyon icin en uygun ifadeyi sec.
PowerShell soru 9
PowerShell soru 9. deger yazdirma icin en uygun ifadeyi sec.
PowerShell soru 10
PowerShell soru 10. degeri adlandirma icin en uygun ifadeyi sec.
PowerShell soru 11
PowerShell soru 11. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
PowerShell soru 12
PowerShell soru 12. temel koleksiyon icin en uygun ifadeyi sec.
PowerShell soru 13
PowerShell soru 13. deger yazdirma icin en uygun ifadeyi sec.
PowerShell soru 14
PowerShell soru 14. degeri adlandirma icin en uygun ifadeyi sec.
PowerShell soru 15
PowerShell soru 15. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
PowerShell soru 16
PowerShell soru 16. temel koleksiyon icin en uygun ifadeyi sec.
PowerShell soru 17
PowerShell soru 17. deger yazdirma icin en uygun ifadeyi sec.
PowerShell soru 18
PowerShell soru 18. degeri adlandirma icin en uygun ifadeyi sec.
coktan secmeli
PowerShell soru 1
PowerShell soru 1. deger yazdirma icin en uygun ifadeyi sec.
Write-Output 42
referans
script.ps1 kaliplari
pwsh script.ps1entry 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