windows:windows_cheatsheet
Table of Contents
[CHEATSHEET] windows
OMG! windows cheatsheet!
history
history list
Get-History
execute history command
Invoke-History 1
find
find -type f
Get-ChildItem -Path . -Recurse -Attributes Archive
grep
grep string file
Select-String -pattern "ams-pve-bamboo" file.log
tail
tail -f file
Get-Content filename.log -Wait
zero/empty a file
Clear-Content C:\Temp\TestFile.txt
windows/windows_cheatsheet.txt · Last modified: 2023/10/25 15:15 by dodger