From the course: PowerShell 7 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Navigate the file system - PowerShell Tutorial
From the course: PowerShell 7 Essential Training
Navigate the file system
- [Instructor] A core feature of PowerShell is the ability to navigate through the file system. Now, of course, when we talk about this, especially with PowerShell 7, we obviously need to understand the difference between PowerShell and Bash and where this kind of flows together. Now, first off, if you're executing the Bash ls command in Linux inside the PowerShell window, then this would return only file names. If you run Get-ChildItem command, which is a PowerShell cmdlet, this will display more information such as last modified location and file size. Bash commands, however, only we turn string values, whereas PowerShell returns an entire object. So depending on what you're using, it's important to note the difference between the two. And this is where PowerShell would be the better option when trying to work with the file system. Now, there are common directory and file commands that are available for us in PowerShell.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.