1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh_TW/common/rm.md
Sebastiaan Speck dcb53c85a0
pages*: update outdated pages (#11821)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: Isaac Vicente <isaacvicentsocial@gmail.com>
2023-12-28 16:48:20 +01:00

481 B

rm

移除檔案或目錄。 更多資訊:https://www.gnu.org/software/coreutils/rm.

  • 移除位於指定路徑的檔案:

rm {{檔案一/完整/路徑 檔案二/完整/路徑 ...}}

  • 移除檔案,且每次移除都會進行確認:

rm -i {{檔案一}} {{檔案二}}

  • 移除目錄中的所有檔案,並顯示每個檔案的移除資訊:

rm -v {{目錄/完整/路徑/*}}

  • 遞迴移除目錄與其所有子目錄:

rm -r {{目錄/完整/路徑}}