Avatar of Olav00007
Olav00007
 asked on

Restore from trash osx commandline

I actually deleted some files (Privateframeworks), so I can only boot to the commandline.
I can see the directory in .Trash.  Is there some command so that I can restore it
(I have tried mv, cp -r etc).

-Alternatively - how can I get to boot so I can use the finder, or make sure I have a backup of the directories in trash?

Mac OS XUnix OSApple OS

Avatar of undefined
Last Comment
Olav00007

8/22/2022 - Mon
et01267

What happened when you tried mv, cp -r, etc ?  
Olav00007

ASKER
for cp
bad filedescriptor, no such file or directory, unable to copy exyened attributes

for mv
Read-only filesystem
nxnw

You do not automatically have a mounted volume and root access when you do a single user login. I think you can boot from the installer disk, run terminal from there and then use mv or cp.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
nxnw

Also, in single user boot:

/sbin/mount -wu

should mount the file system as read write
ASKER CERTIFIED SOLUTION
nxnw

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Mac2010

Booting from the DVD, or connect the Mac to another Mac after booting in target mode (press T on startup) make good sense to me. Then start the Terminal.

It all the commands do not give the desired result, reinstalling the system ('archive and install option', or default option on 10.6) may be the quickest solution.
Olav00007

ASKER
Actually these commands are actually shown when startup is finished.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.