Search code examples
mongodbubuntuservicerecover

mongod file got deleted by mistake in ubuntu


By mistake i deleted the mongod file present in /usr/bin/ . I'm now unable to run the mongo command. I tried reinstalling mongodb, but mongod file is still absent. How can I get it back? Couldn't find suitable answers anywhere.


Solution

  • I just recovered my lost file using testdisk, and reinstalled mongodb. It worked. I dont know if the recovery was required or not, but reinstalling mongodb hadnt worked for me earlier.