Welcome to the new Linux Foundation Forum!
cannot execute binary file
Hi,
I am getting the error message "-bash: /bin/hostname: cannot execute binary file" while login to my server through SSH. Can anyone please help me to resolve this problem? I searched on the web, but not found useful solution.
Also, i could not use the command like,
1. cat /var/log/messages --- its working
2. cat /var/log/messages|more --- it gives the error message bash: /bin/more: cannot execute binary file
I am getting the error message whenever i run the command like, command | more, grep and rpm -qa
Thanks
Tamilselvan
0
Comments
<command>
what is your permission in /bin. maybe files mentioned in that folder are too restrictive. Loosen up a bit the permission and test if its working.