How to show recursive directory listing on Linux or Unix

How to show recursive directory listing on Linux or Unix

To show a recursive directory listing on Linux or Unix, you can use the ls command with the -R option. This option tells the ls command to list the contents of directories recursively, including all subdirectories and files.

For example, to show a recursive directory listing of the /var/www directory, you can use the following command:

ref‮l:ot re‬autturi.com
ls -R /var/www

This will list the contents of the /var/www directory, as well as all subdirectories and files under it.

You can also use the find command to show a recursive directory listing. The find command is a powerful tool that allows you to search for files and directories based on various criteria, such as name, size, and type.

To show a recursive directory listing using the find command, you can use the following command:

find /var/www

This will list the contents of the /var/www directory and all subdirectories recursively.

Created Time:2017-10-29 22:08:38  Author:lautturi