I have override a file in bin folder and this affect other programs
There's no default ps binary installed in /usr/local/bin. It is installed in /bin.

What happens here is that your /usr/local/bin/ps program seems to take precedence over your /bin/ps program because of your PATH settings.

In order to fix the problem, just delete your newly created shortcut in /usr/local/bin/ps. When you delete the file, the system should return to its former way of working.