I did this command on ubuntu echo php phpinfo(); > a.txt
and this changed the php command on my pc. So whenever I run which php
I get php () {> a.txt}
Asked
Active
Viewed 56 times
0

Hilal Najem
- 25
- 5
-
Please `ls -la` in the directory you did the original command. There will probably be a file a.txt. If so, removing it might fix this – G4Hu May 10 '18 at 09:35
-
A restart to the computer solved the problem. – Hilal Najem May 10 '18 at 11:35
-
I am now looking for a.txt to delete it – Hilal Najem May 10 '18 at 11:35
-
if you want to be sure: `sudo find
-name a.text` replace – G4Hu May 10 '18 at 11:37with a path