The project is migrated to a new codebase, the ''old_project'' directory must be deleted. The directory has multiple read-only files, and it must be deleted recursively without prompting for confirmation. Which bash command must be used?
To delete a directory and all of its contents (including read-only files) recursively without prompting for confirmation, the rm command with the -rf flags should be used.
rm -r: This option tells rm to remove directories and their contents recursively.
rm -f: This option tells rm to force the removal of files, ignoring nonexistent files and never prompting for confirmation.
Therefore, the correct command is rm -rf old_project. This command will recursively remove the old_project directory and all its contents without any confirmation prompts, regardless of file permissions.
Topic 2, Exam Pool B
Maryanne
5 months agoPercy
5 months agoMiesha
5 months agoShaun
5 months agoGalen
5 months agoCorazon
5 months agoTrinidad
6 months agoMalika
6 months agoPatti
6 months agoArlene
7 months agoKirk
7 months agoWai
7 months agoLynelle
7 months agoPansy
7 months agoFrancesco
7 months agoLeoma
8 months agoThersa
8 months agoAnnita
8 months agoIsabella
8 months agoLenna
8 months agoLucina
9 months agoKris
9 months agoDevora
9 months agoRaymon
9 months agoJunita
10 months agoEvangelina
4 months agoBrandon
4 months agoJillian
4 months agoChaya
8 months agoLeah
9 months ago