Correct option is A
The rm command in Linux is used to delete files or directories. It is a standard command-line utility that removes files or directories specified as arguments.
Important Key Points:
1. The rm command can delete both files and directories. For directories, the -r or --recursive flag is used.
2. Using rm with caution is important, as deleted files are not moved to a trash bin and cannot be easily recovered.
3. Example:
· To delete a file: rm file_name
· To delete a directory: rm -r directory_name
Knowledge Booster:
· Option (b): del is a command used in Windows, not Linux, for deleting files.
· Option (c): erase is not a valid command in Linux for deletion.
· Option (d): remove is not a valid Linux command; the correct command is rm.