在Linux中,可以使用mv命令來移動大量文件。以下是一些常用的方法:
mv old_filename new_filename
mv file1 file2 file3 destination_directory/
mv *.txt destination_directory/
這將移動當前目錄下所有.txt文件到destination_directory。
find /path/to/source -type f -name "*.txt" -exec mv {} destination_directory/ \;
這將查找/path/to/source目錄下所有.txt文件并將它們移動到destination_directory。
find /path/to/source -type f -name "*.txt" | xargs mv -t destination_directory/
這將查找/path/to/source目錄下所有.txt文件并將它們移動到destination_directory。
注意:在執行這些操作之前,請確保你有足夠的權限來移動這些文件。如果需要,可以使用sudo命令來提升權限。