copy a directory structure with file names without content

后端 未结 3 1243
北海茫月
北海茫月 2020-12-30 04:25

I have a huge directory structure of movie files. For analysis of that structure I want to copy the entire directory structure, i.e. folders and files however I don\'t want

3条回答
  •  一生所求
    2020-12-30 04:34

    On ubuntu you can try:

    cp -r --attributes-only  
    

    It doesn't copy file data. From manpage of cp

    --attributes-only
              don't copy the file data, just the attributes
    

    Note: I'm not sure this option available for other distributions, if anybody can confirm please update the answer.

提交回复
热议问题