PowerShell 的常用命令记录

2019-04-17  本文已影响0人  changhr2013
cls
ii .
$ExecutionContext.SessionState.Path.CurrentFileSystemLocation
or
(gi .).FullName
or
($pwd).Path
or
Resolve-Path '.'
or
Get-Location
New-Item newFile.txt
or
ni newFile.txt
Copy-Item file.txt copyFile.txt
or
copy file.txt copyFile.txt
or
cp file.txt copyFile.txt
Move-Item file.txt -Destination D:\target\
or
move file.txt -Destination D:\target\
or
mv file.txt -Destination D:\target\
netstat -ano | findstr 8080
tasklist | findstr 12345
taskkill /F /PID 12345
上一篇下一篇

猜你喜欢

热点阅读