批量删除当前目录下的1,2,3,4,5,6文件
lan@lan-virtual-machine:~/桌面/GNU C$ ls
1 3 5 6 a.out exam5-1-1 exam5-1.c exam5-1.s
2 4 5.o 6.out exam5-1 exam5-1-2 exam5-1.o
输入指令:
rm [1,2,3,4,5,6]
结果:
lan@lan-virtual-machine:~/桌面/GNU C$ ls
5.o a.out exam5-1-1 exam5-1.c exam5-1.s
6.out exam5-1 exam5-1-2 exam5-1.o
可以看到已经删除掉了。