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 trialJohn Crillo
8,293 PointsConsole Foundations
I removed to many things from the console. Is there any way to get it back to default so i have the original files back?
4 Answers
Jeff Busch
19,287 PointsHi John,
If you mean removed with the rm command just re-create them.
You can use the touch command "touch someFile.php" or use redirection "> someFile.php". Either of these will create an empty file.
Jeff
John Crillo
8,293 Pointsi tried exiting out and logging back in but to no avail. I'm wondering if there is a way to permanently delete then re-download it. I no longer have the hello.txt file pr the how_to etc.. file.
John Crillo
8,293 PointsThank you Jeff... I recreated the file, just have to live with the fact the data inside the file is gone which isn't a huge deal.
Jonathan Grieve
Treehouse Moderator 91,253 PointsHello John,
I'm doing Console Foundations at the moment and as far as I'm aware any changes you make to the environment gets reset whenever you log back in, so you shouldn't cause too much long term damage to your terminal. :)
Jeff Busch
19,287 PointsJeff Busch
19,287 PointsOr you can create a file with a text editor such as nano: "nano someFile.php". If you use this method, for fun, I'll let you figure out how to exit the program. Better yet, replace nano with vim.