标签归档:rm

rm -f的哲学

rm -f “hello.*” 然后查看(返回值)$?,返回值为0。因为“-f, –force           ignore nonexistent files, never prompt”,虽然要删除的文件不存在,但也不报错。

发表在 shell, 代码人生 | 标签为 | 留下评论