Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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?