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 trialSofya Lopatina
6,525 Pointshow to add hello.txt if i haven't got it
Please help me with my problem. I have deleted the file by accident.
2 Answers
Mike Atkinson
6,882 PointsFirst check you are in the home directory. Try typing cd ~
, then type pwd
.
Now type ls
to see if the file is there.
Depending what you want to do with the file, if it's not there, you could create your own using the touch command.
touch aNewFile.txt
Gloria Dwomoh
13,116 PointsI suggest you launch a new console or create that file. You might like to follow the 1st option if you don't remember what the file contains.