A
A
Alexey Pateleev2016-06-19 04:11:09
linux
Alexey Pateleev, 2016-06-19 04:11:09

What is the command in the console to make multiple copies of the directory?

There is a directory: dir needs to make n-number of copies of dir1, dir2, and so on. Which team can do it quickly and correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2016-06-19
@031071

for i in {1..n}; do cp -r dir ./dir${i}; done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question