1

假设我有一个包含五个文件和一个文件夹的文件夹。将所有这些文件移动到该子文件夹中的 linux 终端命令是什么?

我试过find . -maxdepth 1 -type f -exec mv {} destination_path \;了,但我得到了错误find: missing argument to -exec

4

2 回答 2

1

Try doing this :

( shopt -s extglob; mv !(destination_path) destination_path )
于 2013-08-14T19:01:00.563 回答
-1

很简单:

mv * destination_path
于 2013-08-14T19:00:08.997 回答