Retrieve Deleted Mac 10.4.8 /usr/bin Directory

  • Thread starter Thread starter 0rthodontist
  • Start date Start date
  • Tags Tags
    Mac
AI Thread Summary
Deleting the /usr/bin directory on a MacBook can lead to significant issues, although the system may still boot and operate normally for GUI applications. Recovery options include soliciting the /usr/bin directory from other Mac users or reinstalling the operating system. Creating a new partition for a fresh OS installation allows for potential recovery of the directory, but users must be cautious about symlinks and hard links that may need to be manually recreated. Ultimately, reinstalling the operating system is a straightforward solution to restore functionality, emphasizing the importance of avoiding superuser account misuse.
0rthodontist
Science Advisor
Messages
1,229
Reaction score
0
Through an incrediby boneheaded mistake, I have deleted my /usr/bin directory on my MacBook. Fortunately it only had a small number of programs that weren't there by default. Also, most of the GUI seems to run just fine without the bin directory, and the computer boots. But I do not know how to recover the directory. My best guess at this point is to solicit people I know who use macs to give me their /usr/bin directories. Worst case, I could reinstall the whole OS. But before I try that, is there any other way that I can get this directory?
 
Computer science news on Phys.org
If you have enough disk space, or a spare disk, you can create a new partition and install a fresh copy of the OS onto it, then try to copy /usr/bin from it. But watch out for links! An ls -l on mine shows a bunch of symlinks which you'd probably have to recreate by hand. And then you'd have to figure out if there are any hard links, and what they link to, and recreate those, too.
 
I think your best bet may be to try and ether partition your drive, or find an external drive and do a fresh system install, and see if you can salvage that /usr/bin you can maybe then se a program such as OnyX to rebuild the system links. I'd be happy to assist you in anyway, the ls command form my /usr bin yields a list of files much too long to post here, otherwise i'd show you what mine contains. But if you need me to try and copy mine, i'd be happy to help, I have a macbook with OS X.4.8
 
Well, thanks for the offer/information, but I ended up just reinstalling the operating system. It was a nuisance but it's back to normal.
 
As they say.. don't use the superuser account :wink:

You didnt sudo delete that dir did you?
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

Back
Top