In: Computer Science
Describe PowerShell and give examples of the syntax.
**********************************************************************************************************************************
PowerShell - Windows PowerShell is a command-line shell and scripting language designed and created mainly for system administration. It is a task-based command-line shell and scripting language built on .NET framework. It is open-source. It is designed to improve the command line and scripting environment by eliminating long-standing problems and adding new features. Also provides consistency as a feature. Also PowerShell is based mainly on object and not text. The output of a command is an object. You can send the output object, through the pipeline, to another command as its input.
***********************************************************************************************************************************
Examples of PowerShell Syntax:
1) Set-Location ( cd, chdir, sl ) - Sets the
current working location to a specified location.
2) Add-Content (ac) - Adds content to the
specified items, such as adding words to a file
3) Copy-Item ( copy, cp, cpi ) - Copies an item
from one location to another.
4) Remove-Item ( del, erase, rd, ri, rm, rmdir ) -
Deletes the specified items.
5) Move-Item ( mi, move, mv ) - Moves an item from one location to
another.
********************************************************************************************************************************** That's all for the answer. Hope it helps. Thank you :-) |