How to recursively list all files and directories

前端 未结 8 1780
长发绾君心
长发绾君心 2021-02-01 03:32

Using the tcsh shell on Free BSD, is there a way to recursively list all files and directories including the owner, group and relative path to the file?

ls -alR comes cl

8条回答
  •  佛祖请我去吃肉
    2021-02-01 04:08

    Use tree. Few linux distributions install it by default (in these dark days of only GUIs :-), but it's always available in the standard repositories. It should be available for *BSD also, see http://mama.indstate.edu/users/ice/tree/

    Use:

    tree -p -u -g -f -i
    

    or

    tree -p -u -g -f
    

    or check the man page for many other useful arguments.

提交回复
热议问题