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 Getting Started with the Console Moving and Deleting Files

Amy McKnight
Amy McKnight
10,124 Points

I lost the hello.txt file how would I find it?

Was learning about the mv command in terminal and some how I have lost the txt file hello.txt. I think I had renamed it hi.txt but now I cant find that either.

have relaunched the console in hope that would reset the terminal but no luck

Any help would be appreciated trying to follow along but can't as my files are all messed up.

Thanks

2 Answers

If you know you gave it a .txt extension you can try running this to search your home directory for files ending in .txt

find ~ -type f -name "*.txt"
Aaron HARPT
Aaron HARPT
19,845 Points

You could run the ls command, which will show all the files in your directory.

Amy McKnight
Amy McKnight
10,124 Points

I tried that in all the directories it is like the file has disapeared. Not sure how I deleted it or where it went.