Joke Collection Website - Mood Talk - How to delete directories and files with rm under linux? Don't prompt.

How to delete directories and files with rm under linux? Don't prompt.

The materials to be prepared are: computer and linux connection tools.

1. First connect the linux host and enter the linux command line state waiting for input instructions.

2. In the command line state, enter the directory of the file to be deleted through cd command, and print the contents of the directory through ls command.

3. Enter: rm -f old.txt and press Enter.

4. At this time, it is found that old.txt has indeed been deleted by the ls command.