Line At A Time
Level 14: Deleting a File
Deleting a File Remove a file you no longer want, carefully.

DEL deletes a file. There is no bin and no undo here: MS-DOS came from a time when the computer assumed you meant what you said. Read the name twice before pressing Enter.

Now put the last two lessons together in your head. A wildcard makes DEL far more dangerous than it looks: DEL *.TXT would take every text file in the folder without asking, and DEL *.* would empty it completely. Both of those were typed by mistake a great many times.

DIR *.TXT afterwards: the file is not in the list any more, and there is nowhere to go looking for it.

DEL OLD.TXTDelete a file. Permanently.
DIR *.TXTSee what is left.
Your task
  • Delete OLD.TXT
  • Check what .TXT files remain

Open this level in your browser to type the commands at a live terminal that answers back.