Friday 1 July 2016

Fix for error /etc/profile[30]: /bin/cat: not found

While doing switch user on a server the following error was seen:

$ sudo su - pin
Password:
/etc/profile[30]: /bin/cat:  not found
/etc/profile[33]: /bin/mail:  not found

In the above situation /bin directory was deleted from the server.
The /bin was copied from another server with the same OS & patch version which fixed the error.

No comments:

Post a Comment

Using capture groups in grep in Linux

Introduction Let me start by saying that this article isn't about capture groups in grep per se. What we are going to do here with gr...