2

I recently try to install ionCube loader and when I tried to check my PHP version via Terminal, it gave me an -bash: $: command not found.

How can I fixed that?

6

The $ is just an example for the shell prompt in whatever instruction guide you are reading (used to indicate that you should run the command from your standard user account. A # would indicate that you should run the command as an admin/root user). Just run

php -v

instead.

  • 1
    It might be worth pointing out that the $ is included to indicate that the command should be run as the user, as opposed to # which indicates the command should be run as root. – Liam Nov 26 '17 at 15:09
  • @Liam Good point, even though I assume that people who are aware of the difference between $ and # also know how to copy/paste commands from an instruction page :-) – nohillside Nov 26 '17 at 15:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .