Jump to content

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.

Edited by ThePHPAppprentice
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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.