PowerShell How-to
Table of Contents
This chapture covers common tasks for interactive use.
Install and Help
- Download, Install
- Start PowerShell
- Exit, Abort
- Print Version
- Builtin Help
- Name Completion
- List of Aliases
- Find Command
- Case Sensitivity
List Files
- List Files
- Show Fullpath, No Truncate Lines
- List Empty Files 📜
- Count Number of Files
- List Files by Wildcard Name Pattern
- Filter File Name by Regular Expression
- List File by Size
- Sort Files by Size 📜
- List Files by Date Time
- Search Text in Files (grep)
Directory Operations
- Navigate Directory
- Show Current Dir Path
- List Directories
- show directory as tree
- List Empty Dir 📜
- Dir Size 📜
File Operations
- Copy File
- Rename File
- Move File
- Delete File
- Create New File
- Set File Read Only Attribute
- Create File Symbolic Link, Hard Link, Junction
- Get File Content
- Join Files
- Compare Files (Show Difference)
- Open File by Default App
- File Date Time
File Properties, Attributes, Permission
- File Attributes
- List All Possible File Attribute Values
- Show a File's Attributes
- Show Hidden Files
- List Files with Specific Attribute
- Set a File's Attributes
- File Attributes Object Type
Windows config
- Environment Variable
- Session Environment Variable
- Environment Variable in Registry
- Show Path Environment Variable
- Set Path Environment Variable