Jump to content


PowerShell - Question for a Newbie

  • Please log in to reply
2 replies to this topic

#1 ThePHPAppprentice

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 11 July 2013 - 02:08 PM



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.

Edited by ThePHPAppprentice, 11 July 2013 - 02:09 PM.

#2 Maq

  • Administrators
  • Advanced Member
  • 9,410 posts
  • LocationPennsylvania, USA

Posted 11 July 2013 - 10:30 PM

I'm not sure but can't you just user another terminal, something like cygwin or the built in command line?

ini_set ("display_errors", "1");

#3 kicken

  • Gurus
  • Wiser? Not exactly.
  • 3,317 posts
  • LocationBonita, FL

Posted 11 July 2013 - 11:29 PM

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.
Did I help you out? Feeling generous? I accept tips via Bitcoin @ 14mDxaob8Jgdg52scDbvf3uaeR61tB2yC7
Kicken's World⦄ ⦃Recycle old CD's

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users