Belajar Sendiri

Commands

rm

rm [-r] <name>

Risk: Can lose work

What it does

Deletes files for good. There is no bin and no undo.

When to use it

Only after ls shows exactly what you will delete.

Example

$ rm a.tmp b.tmp

Delete two temp files.

$ rm -r old

Delete a folder and everything inside it.

$ rmdir old

Delete a folder only if it is empty.