Recursive File Listings

Learn how to recursively list files in a working directory.

Let’s take a look at how we can list files recursively.

The -R flag

We can use the -R flag to make the ls command list the contents of the current folder and the contents of each folder within the current folder.

$ ls -lhR

Get hands-on with 1400+ tech skills courses.