In PowerShell, we can easily interact with data and objects, and in order to simplify our access to external data, PowerShell allows us to manipulate data, objects, and so on, as we do with drives and files.
Use this command to view our existing providers:
get-psprovider
In fact, each provider is a dynamic link library (. dll), which can also be called a "snap-in" in PowerShell, with detailed code in the snap-in to implement our various operations. PowerShell even allows us to write our own provider:http://msdn.microsoft.com/en-us/library/cc136763 (vs.85). aspx
We have a lot of ways to manipulate data, such as:
Cmdlet |
Function |
CMD command |
Alias |
Get-location |
Current directory |
Pwd |
Gl |
Set-location |
Change Operation Directory |
Cd,chdir |
Sl |
New-item |
Create a new file or folder |
No |
Ni |
Rename-item |
Renaming |
Rn |
Rni |
Copy-item |
Copy |
Copy |
Cpi |
Move-item |
Move |
Move |
Mi |
Remove-item |
Delete |
Del |
Ri |
Set-item |
Set content |
No |
Si |
Clear-item |
Delete Content |
No |
Cli |
Mkdir |
Create a new Folder |
Md |
No |
Set-content |
Set content |
No |
Sc |
Get-content |
Get content |
Type |
Gc |