FUNDAMENTALS OF COMPUTER

OPERATING SYSTEMS FOR COMPUTERS

COMMAND LINE INTERFACE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which would provide help or syntax using a PowerShell cmdlet?
A
get-childitem /?
B
get-childitem-help
C
help get-childitem
D
get-help get-children
Explanation: 

Detailed explanation-1: -The Get-Help cmdlet displays information about PowerShell concepts and commands, including cmdlets, functions, Common Information Model (CIM) commands, workflows, providers, aliases, and scripts. To get help for a PowerShell cmdlet, type Get-Help followed by the cmdlet name, such as: Get-Help Get-Process .

Detailed explanation-2: -Description. The Get-ChildItem cmdlet gets the items in one or more specified locations. If the item is a container, it gets the items inside the container, known as child items. You can use the Recurse parameter to get items in all child containers and use the Depth parameter to limit the number of levels to recurse.

Detailed explanation-3: -The Get-Help cmdlet displays comment-based help in the same format in which it displays the cmdlet help topics that are generated from XML files. Users can use all of the parameters of Get-Help, such as Detailed, Full, Examples, and Online, to display the contents of comment-based help.

Detailed explanation-4: -The Get-Command cmdlet gets all commands that are installed on the computer, including cmdlets, aliases, functions, filters, scripts, and applications. Get-Command gets the commands from PowerShell modules and commands that were imported from other sessions.

There is 1 question to complete.