يستخدم الأمر لحذف الملفات او المجلدات أنظر أيضًا:
rmdir
. لمزيد من التفاصيل: https://www.gnu.org/software/coreutils/manual/html_node/rm-invocation.html.
rm {{path/to/file1 path/to/file2 ...}}
rm {{[-f|--force]}} {{path/to/file1 path/to/file2 ...}}
rm {{[-i|--interactive]}} {{path/to/file1 path/to/file2 ...}}
rm {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}
rm {{[-r|--recursive]}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}
rm {{[-d|--dir]}} {{path/to/directory}}