ThePHPAppprentice Posted July 11, 2013 Share Posted July 11, 2013 (edited) 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. Edited July 11, 2013 by ThePHPAppprentice Quote Link to comment Share on other sites More sharing options...
Maq Posted July 11, 2013 Share Posted July 11, 2013 I'm not sure but can't you just user another terminal, something like cygwin or the built in command line? Quote Link to comment Share on other sites More sharing options...
kicken Posted July 11, 2013 Share Posted July 11, 2013 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.