ls command

Hi there,
I am using command "ls -Rl" so it is giving me complete listing of directories including subdirectories,
can we modify the above ls command so that we can get the complete path alog with the directory name and subdirectory name.

thanks in advance

Manvar

It depends on your distro, Fedora has this, example :
If I invoke "ls -lR" at my home folder I will see :

So, if you enter certain folder, and invoke just "ls -lR" it will print the full path, but if you do "ls -lR some-folder" it will accept "some-folder" as base, and will lsit everything after with "some-folder" considered as main one.
For this issue, you should be able to find the answer in "man ls" once again, it depends on the distro.

This should do the trick: ls -Rl `pwd`

With zsh:

print -l **/*

If you want hidden (dot) files to be included:

print -l **/*(D)

There isn't really a need to run a command here. Most shells set the $PWD variable. You can just use that:

ls -lR $PWD