Neurohazard
暮雲煙月,皓首窮經;森羅萬象,如是我聞。

Filename “-h” is hard to delete.

wpadmin~May 22, 2018 /System Management

Contents

难以删除的文件名 “-h”

文件建立

#
#
echo "abc" > -h

错误的删除操作

#
#
rm -rf -h
rm -rf "-h"

正确的删除操作

#
#
rm -rf ./-h
rm -rf -- -h

Leave a Reply

Your email address will not be published. Required fields are marked *