Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17903

I need to clone an empty set of directories

$
0
0

I need to clone an empty set of directories

In Windows/DOS, the xcopy command can copy a tree structure of directories, but leave out the files:

 xcopy /t /e "C:\Documents" "C:\Clone\Documents" 

/t = Copies the sub-directory structure, but not the files

/e = Copies sub-directories, including any empty ones

Can cp or rsync (or something else) do this, too?

Thanks!

submitted by /u/Happy_Phantom
[link] [comments]

Viewing all articles
Browse latest Browse all 17903

Trending Articles