linux - Entered wrong commands quickly - possibly nuked a bunch of files -


i hoping explain me happened here , if there's command can run fix this.

i have chromebook xenial chroot on it, , wanted move sd card. first command ran sudo mv /usr/local/chroots . -v while current directory sd card. finished , output '/usr/local/chroots' => './chroots' , removed '/usr/local/chroots' , perplexed. realize forgot -r wasn't aware create kind of symbolic link instead of failing move folder.

then, ran ls on sd card chroots , 22 ecryptfs folders there. hadn't realized yet had made symbolic link extremely confused why thought data on sd card. ran sudo mv /media/remoable/sdcard/chroots/ . -v inside /usr/local/. started showing moving ton of files - how can moving things sd card chromebook when never on sd card in first place? stopped after minute. thinking there weird symbolic linking going on , wanted started, did quick rm chroots (not -r) in sd card folder.

now, in /usr/local/chroots there's 14 of 22 folders there before , startunity says no installation found. size of folder 1.8gb , i'm more before. i'm in despair.

what did somehow caused me wipe bunch of data, without ever having run rm -r? there can was? data must still there looks somehow nuked directory or something. i'm still confused. there must bunch of orphaned files out there somewhere.


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -