List file using ls command in Linux with full path

前端 未结 13 1674
星月不相逢
星月不相逢 2020-12-24 01:02

Many will found that this is repeating questions but i have gone through all the questions before asked about this topic but none worked for me.

I want to print full

13条回答
  •  温柔的废话
    2020-12-24 01:23

    How about:

     du -a [-b] [--max-depth=N] 
    

    That should give you a file and directory listing, relative to your current location. You will get sizes as well (add the '-b' parameter if you want the sizes in bytes). The max-depth parameter may be necessary to "encourage" du to dive deeply enough into your file structure -- or to keep it from getting carried away.

    YMMV!
    -101-

提交回复
热议问题