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>
21 lines
563 B
Markdown
21 lines
563 B
Markdown
# rm
|
|
|
|
> Menghapus berkas atau direktori.
|
|
> Informasi lebih lanjut: <https://www.gnu.org/software/coreutils/rm>.
|
|
|
|
- Menghapus berkas dari lokasi manapun:
|
|
|
|
`rm {{alamat/ke/berkas1 alamat/ke/berkas2 ...}}`
|
|
|
|
- Menghapus banyak berkas secara [i]nteraktif, dengan meminta konfirmasi sebelum setiap penghapusan:
|
|
|
|
`rm -i {{(beberapa)_berkas}}`
|
|
|
|
- Menghapus berkas dengan mode verbose, mencetak pesan untuk setiap berkas yang terhapus:
|
|
|
|
`rm -v {{alamat/ke/directori/*}}`
|
|
|
|
- Menghapus direktori dan semua subdirektorinya secara [r]ekursif:
|
|
|
|
`rm -r {{alamat/ke/direktori}}`
|