Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Console Foundations Users and Permissions Sudo

Tommy Tayler
Tommy Tayler
11,549 Points

accidentally typed in: cd / sudo rm -rf *

How to fix?

2 Answers

I did exactly the same thing. I would never do this on a "real" machine, but I assumed the Treehouse console wasn't a "real" machine in the sense that I could get a fresh one if needed. Turns out I can't. You all should definitely fix this: The whole point of workspaces is to be a playground where mistakes are encouraged, no?

Jose Soto
Jose Soto
23,407 Points

rm -rf is a powerful tool that should be use cautiously.

There is no undo command for that. Your best bet is to recover from backup if you have one.

Tommy Tayler
Tommy Tayler
11,549 Points

Is there a way i can get my console to work again from team treehouse?