A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.
cannot execute binary file
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