Java中的字符串常量池具體引見。本站提示廣大學習愛好者:(Java中的字符串常量池具體引見)文章只能為提供參考,不一定能成為您想要的結果。以下是Java中的字符串常量池具體引見正文
過濾管道成果
應用Get-Process前往一切確當進步程 ,然則你能夠其實不對一切的過程感興致,然後經由過程每一個Process對象的屬性停止過濾。起首得曉得每一個對象支撐那些屬性。
PS C:Powershell> Get-Process | select -First 1 | fl *
__NounName : Process
Name : AcroRd32
Handles : 287
VM : 234819584
WS : 32616448
PM : 63488000
NPM : 14584
Path : C:Program FilesAdobeReader 10.0ReaderAcroRd32
.exe
Company : Adobe Systems Incorporated
CPU : 96.5334188
FileVersion : 10.1.2.45
ProductVersion : 10.1.2.45
Description : Adobe Reader
Product : Adobe Reader
Id : 4820
PriorityClass : Normal
HandleCount : 287
WorkingSet : 32616448
PagedMemorySize : 63488000
PrivateMemorySize : 63488000
VirtualMemorySize : 234819584
TotalProcessorTime : 00:01:36.5334188
BasePriority : 8
ExitCode :
HasExited : False
ExitTime :
Handle : 3568
MachineName : .
MainWindowHandle : 198686
MainWindowTitle : Mastering PowerShell - Adobe Reader
MainModule : System.Diagnostics.ProcessModule (AcroRd32.exe)
MaxWorkingSet : 1413120
MinWorkingSet : 204800
Modules : {System.Diagnostics.ProcessModule (AcroRd32.exe),
System.Diagnostics.ProcessModule (ntdll.dll), Syst
em.Diagnostics.ProcessModule (kernel32.dll), Syste
m.Diagnostics.ProcessModule (KERNELBASE.dll)...}
NonpagedSystemMemorySize : 14584
NonpagedSystemMemorySize64 : 14584
PagedMemorySize64 : 63488000
PagedSystemMemorySize : 302460
PagedSystemMemorySize64 : 302460
PeakPagedMemorySize : 75399168
PeakPagedMemorySize64 : 75399168
PeakWorkingSet : 87871488
PeakWorkingSet64 : 87871488
PeakVirtualMemorySize : 257703936
PeakVirtualMemorySize64 : 257703936
PriorityBoostEnabled : True
PrivateMemorySize64 : 63488000
PrivilegedProcessorTime : 00:00:27.7057776
ProcessName : AcroRd32
ProcessorAffinity : 3
Responding : True
SessionId : 1
StartInfo : System.Diagnostics.ProcessStartInfo
StartTime : 2012/1/13 10:25:34
SynchronizingObject :
Threads : {4376, 6636, 8096, 5136...}
UserProcessorTime : 00:01:08.8276412
VirtualMemorySize64 : 234819584
EnableRaisingEvents : False
StandardInput :
StandardOutput :
StandardError :
WorkingSet64 : 32616448
Site :
Container :
依據過程名過濾一切記事本過程。
PS C:Powershell> Get-Process | Where-Object {$_.Name -eq "notepad"}
Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
------- ------ ----- ----- ----- ------ -- -----------
158 7 8800 37264 114 18.41 6204 notepad
依據過程名過濾一切IE過程。
PS C:Powershell> Get-Process | Where-Object {$_.Name -eq "iexplore"}
Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
------- ------ ----- ----- ----- ------ -- -----------
710 23 12832 18160 175 10.51 4204 iexplore
971 39 81000 107580 399 22.20 6764 iexplore
336 13 28516 20096 187 0.34 6792 iexplore
929 35 51020 46568 314 10.42 7192 iexplore
835 26 49200 32360 308 7.82 7952 iexplore
依據company過濾一切產物宣布者以”Microsoft”打頭的過程:
PS C:Powershell> Get-Process | Where-Object {$_.company -like '*Microsoft*' }|
select Name,Description,Company
msseces Microsoft Security Clie... Microsoft Corporation
notepad 記事本 Microsoft Corporation
ONENOTEM Microsoft OneNote Quick... Microsoft Corporation
OUTLOOK Microsoft Outlook Microsoft Corporation
powershell Windows PowerShell Microsoft Corporation
prevhost Preview Handler Surroga... Microsoft Corporation
RDCMan RDCMan Microsoft Corporation
SearchProtocolHost Microsoft Windows Searc... Microsoft Corporation
taskhost Windows 義務的主機過程 Microsoft Corporation
應用別號
由於Where-Object的應用幾率比擬高,所以有一個很抽象的別號 ? 可使用:
PS C:Powershell> Get-Service | ? {$_.Name -like "B*"}
Status Name DisplayName
------ ---- -----------
Running BDESVC BitLocker Drive Encryption Service
Running BFE Base Filtering Engine
Running BITS Background Intelligent Transfer Ser...
Stopped Browser Computer Browser
Stopped bthserv Bluetooth Support Service