Home
Random
Recent changes
Special pages
Community portal
Preferences
About WIKI TKJ
Disclaimers
WIKI TKJ
Search
User menu
Talk
Contributions
Log in
Editing
Linux : Perintah rm
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[File:Tux.png|thumb|tux]] <code>rm</code> digunakan untuk '''menghapus file atau direktori'''. '''Hati-hati!''' Semua penghapusan bersifat permanen (tidak masuk recycle bin). {| class="wikitable" !'''Atribut <code>rm</code>''' !'''Keterangan''' !'''Contoh Aplikatif''' |- |''(tanpa opsi)'' |Menghapus file biasa tanpa konfirmasi |<code>rm file.txt</code> β Menghapus file bernama ''file.txt'' |- |<code>-f</code> ''(force)'' |Menghapus tanpa konfirmasi, walaupun file read-only atau tidak ada |<code>rm -f laporan.pdf</code> β Memaksa hapus ''laporan.pdf'' tanpa pertanyaan |- |<code>-i</code> ''(interactive)'' |Meminta konfirmasi sebelum menghapus setiap file |<code>rm -i data.txt</code> β Menampilkan "rm: remove regular file βdata.txtβ?" |- |<code>-r</code> / <code>-R</code> / <code>--recursive</code> |Menghapus direktori beserta seluruh isinya (recursive) |<code>rm -r folderku</code> β Menghapus folder ''beserta semua file & subfolder'' |- |<code>-d</code> ''(dir)'' |Menghapus direktori kosong |<code>rm -d kosong</code> β Menghapus direktori ''kosong'' jika tidak ada isinya |- |<code>-v</code> ''(verbose)'' |Menampilkan proses penghapusan secara detail |<code>rm -v file.txt</code> β Output: <code>removed 'file.txt'</code> |- |<code>-rf</code> ''(recursive + force)'' |Menghapus folder dan isinya tanpa konfirmasi (berbahaya!) |<code>rm -rf /home/user/tmp</code> β Menghapus folder ''tmp'' beserta semua isinya tanpa tanya |- |<code>--one-file-system</code> |Tidak mengikuti filesystem lain saat menghapus recursive |<code>rm -r --one-file-system /data</code> β Menghapus <code>/data</code> tanpa merusak mount lain |- |<code>--help</code> |Menampilkan bantuan penggunaan <code>rm</code> |<code>rm --help</code> |- |<code>--version</code> |Menampilkan versi program <code>rm</code> |<code>rm --version</code> |} Contoh penggunaan:<syntaxhighlight lang="shell"> rm -rf / </syntaxhighlight>** :-)
Summary:
Please note that all contributions to WIKI TKJ may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
WIKI TKJ:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)