我需要删除所有扩展名为 .gif 的文件,除了一个名为“filename.gif”的文件。在终端中执行此操作的最佳方法是什么?
命令 rm*.gif删除所有 gif 文件,包括文件filename.gif.
*.gif
filename.gif
command-line bash
bash ×1
command-line ×1