Yusupov Ulug’bek
Laboratoriya
Powershellda 5 ta dasturlarini kiritib ko’rsating
Disklar ro’yxati
1)
Get-PSDrive
2 )
Get-PSDrive -PSProvider FileSystem
powershell asosiy path ni almashtirish
3)
Set-Location /home/ulugbek/Desktop
Yangi file yaratish va uni edit qilish
4)
New-Item -ItemType File -Path /home/ulugbek/Desktop -Name tizimlar.txt -Value "bu laboratoriya uchun yaratilgan file"
5)
Set-Content -Path /home/ulugbek/Desktop/tizimlar.txt -Value "Laboratoriya ishi bajarildi"
File ma’lumotlarini ko’rish va uni chop etish
6)
Get-Item tizimlar.txt
7)
Get-Content tizimlar.txt
8)
Rename-Item -Path /home/ulugbek/Desktop/tizimlar.txt -NewName Newtizimlar
Do'stlaringiz bilan baham: |