Jump to content

PowerShell - Question for a Newbie


ThePHPAppprentice

Recommended Posts

Hello,

 

I am going trough an online course which is teaching me how to handle files with PHP. The chapter I am in right now has introduced Windows Powershell as a way to list file permission settings.

 

The instructor is using the command 'ls -a' which displays the files and the permission settings. However, when I try it myself I get this error and do not understand why: Get-ChildItem : A parameter cannot be found that matches parameter 'a'.

 

I searched high and low for an hour on Google about that but cannot find anything useful.

Can someone concisely explain that to me or what I am doing wrong? I would like to go over that hump in order to resume with the chapter.

 

The sooner the better,

 

Thanks a bunch in advance.

Link to comment
https://forums.phpfreaks.com/topic/280066-powershell-question-for-a-newbie/
Share on other sites

It sounds to me like your getting confused between Windows's Powershell and a Unix/Linux shell. The command ls -a is a unix/linux shell command to list all files. Get-Childitems will list all the files in windows powershell, it needs no parameters though.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.