WINDOWS POWERSHELL | GET-CHILDITEM, GET-ALIAS

This blog post covers two commands from windows power shell, get-childitem and get-alias.

Get-alias command gives details about alias name correspond to different cmdlets. for example ls command can be used in place of dir. To get the list of all alias simple execute get-alias command. to get the command page by page get-alias | more command can be used.

get alias

Get-childitem (gci) gives the list of files and directories on given path.

gci 300x168 1

Results provided by get-child item can be formatted as per requirement by using formatl-ist

gci format list 300x225 2

format-list can be further formatted by using – property <propertyname1>, for example following command gives output of gci c: |format-list -property name

gci format list name 300x225

format-list can be further formatted by using – property <propertyname1>,<propertyname2> for example following command gives output of gci c: |format-list -property name,creationtime

gci format list name date 300x168

Tags

What do you think?

Related articles