Copy files from one directory into an existing directory

前端 未结 7 1138
野趣味
野趣味 2020-12-07 08:11

In bash I need to do this:

  1. take all files in a directory

  2. copy them into an existing directory

How do I do this? I tried

7条回答
  •  死守一世寂寞
    2020-12-07 08:22

    If you want to copy something from one directory into the current directory, do this:

    cp dir1/* .
    

    This assumes you're not trying to copy hidden files.

提交回复
热议问题