您的位置:首页 > 运维架构 > Linux

Linux 批量删除

2017-11-11 23:24 197 查看
批量删除当前目录下的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


可以看到已经删除掉了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: