I need a copy of the binary file /bin/cat

I called apple support and the server section is closed so I was wondering if anyone could help me replace the actual cat command file as I accidentally deleted mine.

Mac mini, Mac OS X (10.7.3)

Posted on Nov 23, 2013 6:54 PM

Reply
1 reply

Nov 23, 2013 8:18 PM in response to Iggy Pelman

I answered my own question by downloading the cat folder from http://www.opensource.apple.com/source/text_cmds/text_cmds-81/ and then compiling the cat.c file using gcc and placing it into the /bin folder as "root".


If you ever corrupt or delete a unix command (or are missing one or more such files) I recommend going there. It took me well over an hour to find the site (mostly because I had no idea what keyword to use to find what I was looking for) but a relatively short period locating the specific directory. It did take me some time to find the specific directory it was in as there were several posibilities.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

I need a copy of the binary file /bin/cat

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.