Video Coming Soon...

Created by Zed A. Shaw Updated 2026-11-26 20:48:52
 

55: ls

WARNING: This is from the Go course but I'm rewriting the code and the description to fit C. If you want to attempt it go ahead. The challenge is the same, just no examples yet.

The ls command lists the contents of a directory. That's it. You can get extremely fancy with ls, but at its core it's just a lister of the files.

The Challenge

The biggest challenge with this is you'll have to reconcile listing the current directory vs. listing an entire directory tree with the -R option. You've done directory walking in another command, so hopefully you remember doing that. Right?

Here's the documentation for ls:

Previous Lesson Next Lesson

Register for From Impostor to Programmer

Register today for the course and get the all currently available videos and lessons, plus all future modules for no extra charge.