Study Area Facebook粉絲團http://www.facebook.com/sataiwan
0 會員 與 1 訪客 正在閱讀本文。
今天考了 101, 有條問題想和大家分享一下:(not exact wordings)How to remove the file called '-file-' in the current directory?a. rm -file-b. rm '-file-'c. rm -f filed. rm -- -file-當時答錯了... 現在試到了.
引述: "101test"今天考了 101, 有條問題想和大家分享一下:(not exact wordings)How to remove the file called '-file-' in the current directory?a. rm -file-b. rm '-file-'c. rm -f filed. rm -- -file-當時答錯了... 現在試到了.剛剛查了一下rm --help要移除第一個字元為‘-’的檔案 (例如‘-foo’),請使用以下其中一種方法: rm -- -foo rm ./-foo這題好像考的有點細..