Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将所有以字符串开头的文件复制到同一目录中的文件夹中。我试过cp foo* backup/foo*但得到
cp foo* backup/foo*
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
我怎样才能复制完成这个?
cp foo* backup/
只需指定目标目录。这不是 DOS 命令窗口。