linux - How to recursively list all files and directories -


There is no way to re-index all files and directories including owner, group, and relative to use the TCS SHELL on free BSD.

LS-LL comes close, but it does not show the relative path in front of each file, it shows the path at the top of a group i.e.

  the owner% ls -alR total 0 drwxr-xr-x 3 Owner group 102 Feb 1 10:50. Drwx ------ + 27 Owning Group 918 February 1 10:49 .. drwxr-xr-x 5 Owner group 170 Feb 1 10:50 Subfolder ./subfolder: Total 16 drwxr-xr-x 5 Owner Groups 170 February 1 10:50 Drwxr-xr-x 3 Owners Group 102 Feb. 1 10:50 .. -R-R-R1 Owning Group 0 Feb 1 10:50 file1-rw-r - r-- 1 Owning Group 0 February 1 10:50 file2  

What kind of output do I like:

  Owner group. / Relative / path / to / file  

Shows relative path of a file, but does not show owner and group.

How about:

  find -exec ls -dl \ {\} \; | Awk '{Print $ 3, $ 4, $ 9}' ' 

Comments