O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Providers

Did you know that PowerShell has no concept of files or folders? That's why all the operations that involve files and folders seem to be referring to items: Get-Item, Get-ChildItem, Get-ItemProperties. When I first saw that dir was actually an alias for Get-ChildItem, I screamed. I felt as if the cmdlet naming convention has been conceived by a really sick mind. But, later as I was learning more about the shell, I found out that the reasoning behind the item concept is that PowerShell works with all types of objects that look like files. Instead of taking the UNIX shells' approach and calling everything a file, even things that are obviously not files, the language designers have come up with the item concept.

An item is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required