不知為何主目錄下突然多了個-sV文件,目測是因為nmap的-sV參數產生的。
寫下來權當做個筆記~
現在來模擬下當時的情況
touch -- -sVtouch ./-sV # 兩種都行
現在工作目錄底下會產生一個文件名為-sV的文件
如果執行
rm -sV
會產生一個錯誤
rm: invalid option -- 's'Try 'rm --help' for more information.
原因是無效的參數s
本來打算Google下看看的,結果rm --help就看到答案了
To remove a file whose name starts with a '-', for example '-foo',use one of these commands: rm -- -foo rm ./-foo
新聞熱點
疑難解答