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!

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 Git Basics Getting Started With Git Working With Git Repositories

Adam Rubinson
Adam Rubinson
4,286 Points

Touch Command

how do I use the touch command? Like in the video when it was 1 click and then "my_really_cool_project" appeared?

You 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

Chris Komaroff
Chris Komaroff
Courses Plus Student 13,673 Points

Let'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).