Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What do you think \" recursive delete\" means? To move up a directory, use cd ..

ID: 3746709 • Letter: W

Question

What do you think " recursive delete" means?

To move up a directory, use cd .. (as with Linux). Let’s go up two levels. Recall to use instead of /. 38.) What command did you enter?  Enter dir. 39.) In what directory are in you now in? What does your prompt say?  Change directory to /Windows/System32. Do a directory listing.

The following commands are similar:

Linux commands:         mv, cp, rm, man, mkdir, rmdir:

Window commands:     move, copy, del, help, mkdir, rmdir


Change directory to your Documents subdirectory within your home directory. 40.) What command(s) did you use? Type dir to see what files are there. There should be two.  Delete the file foo.txt. 41.) What command did you use?

Create a subdirectory called temp2. 42.) What command did you enter?  Copy the file foo1.txt into temp2 using the copy command. 43.) What command did you enter?  Switch to your temp2 directory. Using move, rename this file to be foo3.txt. 44.) What command did you enter?  Move up one directory (up to documents).  Attempt to delete the temp2 directory. 45.) What command did you enter? What happened?

Explanation / Answer

Recursive delete means deleting the contents of the folder before deleting the folder, means the command does the same thing with inner folder as with outer folder.

If we enter cd .. as cd .. then the directory will be changed to Root of the hierarchy, means to goes to C: (C directory)

38). Entered cd .. command

39).Currently we are in C: i.e., in C directory. Prompt says C:>

cd Windows/System32 - To change to this directory.

To change to Documents directory: C:\Users\YOUR_USERNAME\Documents

40). Used C:\Users\YOUR_USERNAME\Documents command to change to Documents directory.

Used dir command to list the files.

41). To delete file foo.txt: del /f foo.txt

42). To create a directory: mkdir temp2

43). copy foo1.txt C:\Users\YOUR_USERNAME\Documents\temp2

44). rename foo1.txt foo3.txt

45). Command to move up: cd ..

Command to delete temp2: del temp2

  Then got a prompt to delete recursively as the folder is not empty.

Then entered Y, saying that to delete the files inside folder along with the folder.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote