Sie sind auf Seite 1von 2

pwd

Get-Location

cd
Set-Location

ls
Get-ChildItem

find . -type f -iname "azure"


Get-ChildItem -Filter "*azure*" -Recurse -File

cp
Copy-Item

cp -R Tools ~/
Copy-Item '.\Tools\' $env:USERPROFILE -Recurse

rm
Remove-Item

rm -rf
Remove-Item -Recurse -Force

mkdir -p
New-Item -ItemType Directory -Name 'MyNewFolder'

touch
New-Item

touch MyFile{1..4}
1..4 | ForEach-Object { New-Item -ItemType File -Name "MyFile$_" }

cat
Get-Content

tail
Get-Content

tail -n7 ./MyFile1


Get-Content -Tail 7 .\MyFile1

grep
Where-Object
Select-String

Get-Process | Where-Object WorkingSet -gt 104857600


Select-String -Path 'C:\Windows\iis.log' -Pattern 'Failed'

uname -a
$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture'
Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table
-AutoSize

man
Get-Help

cut
Select-Object

Das könnte Ihnen auch gefallen