CommandAliasDescription
Get-ItemgiRetrieve an object (could be a file, folder, registry object, etc.)
Get-ChildItemls / dir / gciLists out the content of a folder or registry hive.
New-Itemmd / mkdir / niCreate new objects. ( can be files, folders, symlinks, registry entries, and more)
Set-ItemsiModify the property values of an object.
Copy-Itemcopy / cp / ciMake a duplicate of the item.
Rename-Itemren / rniChanges the object name.
Remove-Itemrm / del / rmdirDeletes the object.
Get-Contentcat / typeDisplays the content within a file or object.
Add-ContentacAppend content to a file.
Set-Contentscoverwrite any content in a file with new data.
Clear-ContentclcClear the content of the files without deleting the file itself.
Compare-Objectdiff / compareCompare two or more objects against each other. This includes the object itself and the content within.

new-item “readme.md” -ItemType file new-item “anan” -type directory tree /F everything

Add-Content .\Readme.md “Title: Insert Document Title Here cat .\Readme.md

Rename-Item .\Cyber-Sec-draft.md -NewName Infosec-SOP-draft.md

get-childitem -Path *.txt | rename-item -NewName {$_.name -replace “.txt”,“.md”}

select-string (sls) grep