I typed rm *


#1

Hey, while I was trying to fully understand the | command, I made some mistakes... I was creating .txt files, in order to try this grep command and, when I type ls, I didn't want to see the other files to appear, so I typed rm *r, thinking this doesn't save... Now, I am stuck, how can I fix this? This one mission, where it wants to me cat mountains.txt, there was no mountains.txt.. How can I fix it?

Unit 3.. I guess in every unit, the machine changes. How can I fix it? Files that are in the geography folder, aren't in there any more.


#2

Soo there's a reset button, but that is just no fun.
Paste this into the terminal:

cd; rm -rf geography; echo H4sIAFEU1lYAA+2aXW7jNhDH/cxT8ALt2pIlPSvefDVrN4i9BrZvE5mRGSukQUrOOrcp0DP0ArlYh9bnFhsYaGO7i84PC4QzJCXB1H84Q20qdGpgvdx+6B2MPhIFgfs7iIJ+929Nb+CFYTAceP3I6/UH3rDv9XhwuEdqKWwOhvNekhRWmLfH7ev/QUmb9X/ShcpBKvtz/jV/13u4BQ6HwzfX3w/Dcv19fAWCAa5/gP093n/Xp3iD//n6z5aCX8knyGALll1JtSj4TWGXfFy/DuxKoBNUxzOTaE6XoNhkK1SyFIrPQKXZElisFsLy5l1icZ6B7UzdtfiNzPCe6hGMZtME1EIq2LiLdiau1/hQyfJb751OVtuOPZXCGOATsYEF8IXgU8AePgaTA5sZUNbZJsll0nkIdupf/b9Dq38jN8K8v/h7+/XvYd/ACwLPCyIvClH/w2FI+j8KE5kJfueWnsVP8KJVZXxBPecvdddYWuv+rdey8twCiuv198oaaZXqeqxYoVUbkKyEepH1hSYyFaZqnxfrpYEcw0V1y2LV3P4aQ07tJ7UekFb/0mYYiA8RAPbqP4pq/Q9Cz3f6D/tD0v8xmBVmZTkuPB+BTLTl1+VrwM6EeSpwT63tWbnTLkTGLwqRaha/aCMsG4ECs22GjWAt+FyYhcDmFvf4picWqeiYF0Za2e1WC+gOH0O2QPlb9htg/LgHw6Zii6lGlon2ISk0/Fta/WPeJkx+Ev33W/0HwXCn/wHp/yjEZW78cbf4bApL3Ne/b8UG7p1gK/NS38u6fYOZOg5t7EsjIOdnYDtX3prO5L9PIB2filb/G51hJabFCer/QZP/D6JhWf/7A9L/MYg3rsZWdrX96UabLaywxXbltHbl9Ei7Qr2q2s9zBewSMmHA7c+FAv5J151j9K5lZUy20kDqioLKcYd1NyYQGFJWhYFHd82mUpfwwbUlpIXM9c6vDQ5nM4CMz8vXks2ExJzicwbPhaou+lm9CMXmwhYbWVAy8I9o9Z/B6gDad+zd/1v9R74fuP3fG/qk/2MwArveneYJYJ/wDeDTYi2M1IaX5lwmTo1V51hisEhBldYMsLmVq6rzDLCZ1Zu/wF/VuauJuOE/y2qaxIwDkmrWBNsYKwog/Z6CVv86wfLsJOd/g07+H4a7/H9I+f9xqPL/X93i7w7rVWteq4ULDaVxC4l8aLqmusiXwtSdJN0flVb/aYYrfJAvAHv3/9Bv6/+o7/Qf+aT/o3CLm32u+VgboTS/LN8BTO5Nih2icVwUJn9+/UOlmPw3zluwuTAv7ag5YIXw+Prnqsiy2snZhf7ajDiT8NDexp0dLqAxvxSZ+3JQm79ovPwCMntvhFCNm2LNe9Lq/8Ed557k/M/36/0/xFBQnv/59P3vKLjv/9WHP6v0c/kSMOctv+l1nPPdibzLCGbiCYsEyEW3+yOW+Dkqtesr0wQMEzzeHfa3Xd/cDe9kwFo+gVxqhUV/PV0qdwL5CPyinHTnjgs3oklGvvcg3StTrNhHq/9EY+qnhHr/ELA//w/q/d8LIqf/wPci0v8xiB8MFuAsrv+XDDZRqSzGn8VAhq3zwui1YBNt8iVGCrEbvtN1Y5HKCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCOK4/AVvEqfRAFAAAA== | base64 -d - | tar xvzf -; cd geography

What I did was to archive my geography directory, then convert the archive file into base64 (a number with 64 different digits, that's the data you're seeing above) And the above command reverses this process (feed the data into a program that decodes it, then feed the result into tar (linux equivalent to zip program) which unpacks the archive)

Oh yeah and you're getting a copy of my directory, not the original files, dunno if they are different.


#4

This is just genius.

Thank you for this but, I think they fixed the problem or the machines just restart every day anyway, problem solved :slightly_smiling: , the folder exists :slightly_smiling: