man rm

By default, rm does not remove directories. Use the --recursive (-r or -R) option to remove each listed
directory, too, along with all of its contents.

   To remove a file whose name starts with a '-', for example '-foo', use one of these commands:

          rm -- -foo

          rm ./-foo

   Note that if you use rm to remove a file, it might be possible to recover some of its contents, given suffi?
   cient expertise and/or time.  For greater assurance that the  contents  are  truly  unrecoverable,  consider
   using shred.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章