COMPUTER SCIENCE AND ENGINEERING
UNIX
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
rm-r
|
|
rm-i
|
|
del-filename
|
|
del-f
|
Detailed explanation-1: -By adding the-r (-R) option to the rm command, you can remove a directory along with all its contents. This will prompt you for confirmation before deleting.
Detailed explanation-2: -Now, when you delete a file using the “rm” command, a confirmation displays to make sure you want to delete the file. Press “y” to delete the file, or “n” to keep it. When you enter “rm –r” to delete a folder, you will also get the confirmation.
Detailed explanation-3: -Using rm Command with Confirmation Before Deleting Files and Folders.
Detailed explanation-4: -Use the rm command to remove files you no longer need. The rm command removes the entries for a specified file, group of files, or certain select files from a list within a directory. User confirmation, read permission, and write permission are not required before a file is removed when you use the rm command.