Ref: Internet, Google Images, Google Search
Category: Operating Systems
Operating Systems
Dec 04
History of Linux
Nov 25
Misc. on Power Shell Script
Misc. on Power Shell Script How to read data from users? Read-Host How to write/print output data/text to the user: Write-Output How to Check if a file exists? Test-Path $filePath How to append data to a file? Add-Content -Path $filePath -Value “x: $x, y: $y” How to create a file? New-Item -Path $filePath -ItemType File …
Nov 24
Linux Script: Read Data from User and Show Some Columns
read -p “Give me some data: ” user_data echo $user_data echo $user_data | cut -d ‘ ‘ -f 1,3
Nov 22
Power Shell and Process
Get-Process Get-Process winword, explorer | Format-List * Get-Process | Where-Object {$_.WorkingSet -gt 20000000} $A = Get-Process $A | Get-Process | Format-Table -View priority Get-Process pwsh -FileVersionInfo (did not work) Get-Process SQL* -Module Stop-Process -Name “notepad” Stop-Process -Id 3952 -Confirm –PassThru calc $p = Get-Process -Name “calc” Stop-Process -InputObject $p Get-Process | Where-Object {$_.HasExited} Get-Process -Name …