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 trialAdam Rubinson
4,286 PointsTouch Command
how do I use the touch command? Like in the video when it was 1 click and then "my_really_cool_project" appeared?
Chris Komaroff
Courses Plus Student 14,198 PointsLet's say a file with name test.txt exists with 12/27/17 21:20 time stamp. The current date/time is 12/28/17 08:30 Then enter this in same directory as test.txt: touch test.txt Then enter this to see current info on file: ls -al test.txt .... .... Dec 28 08:30 test.txt ...
The time stamp of test.txt was just updated to current date/time (now).
Alexander La Bianca
15,959 PointsAlexander La Bianca
15,959 PointsYou can use the touch command to create a new file in the current directory. Let's say you are in the MySites directory. You can then do: 'touch app.js' which will create a file app.js in the MySites directory. Its like the mkdir command. Which lets you create a directory in the current direcotry