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 Users and Permissions File Permissions

Philip Bessa
Philip Bessa
5,396 Points

ls -1(one)?

The video at 2:30 in Console Foundations shows the command ls -1, as in the numerical 1, rather than the letter L. Was that just a mistake or does that actually do something?

amathiaitishar
amathiaitishar
13,229 Points

ls = [List directory content] is probably the most used command and for good reason. With it, we can see directory contents and determine a variety of important file and directory attributes. By adding -l to ls command, we change the output to the long format.

Wish this helps to clarify the -l (long format).

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Philip. The number 1 and a lower-case l can be hard to tell apart. I notice you used the upper-case L when you started this thread. It's the lower-case you want. I hope this helps. :)

1 Answer

Sean Do
Sean Do
11,933 Points

I think it was a mistake, because you can hear the teacher saying, "If you use ls -l".