扫码关注官方订阅号
学习是最好的投资!
man rm一下呗:
man rm
To remove a file whose name starts with a '-', for example '-foo', use one of these commands: rm -- -foo rm ./-foo
执行:
➜ test ll total 4.0K -rw-rw-r--. 1 bob bob 1 Aug 9 09:49 --filename ➜ test man rm ➜ test rm -- --filename ➜ test ll total 0 ➜ test
强删不行吗?rm -rf
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
man rm一下呗:执行:
强删不行吗?rm -rf