This is to let the program to delete the logging of the library running road.

This way to delete the library is, which is also a way to be a self-extracting of the programmer. It is really going to play basic programs that this programmer does not have to be mixed in the software industry. It is not only the problem of professional qualities, but also people The problem of the product, the programmer who has heard the deletion library, the basic outsourcing company is more, the end is late, the contradiction is integrated to a certain extent, and the database is given away. There is also a precedent in this kind of thing. I really want to delete the library must be committed to criminal responsibility.

By the way, recommend a super easy to use tool.

Linux Command Query Tool: https://linux.gaomeluo.com/

“Delete Library Run Road” is a stalk, but we still have to understand the command of the library running road: rm command

RM: Used to delete a given file and directory

Supplementary description

The RM command can delete one or more files or directories in a directory, or you can delete all the files and their subdirectories in a directory and their subdirectories. For link files, just delete the entire link file, and the original file remains unchanged.

Note: Be careful with the RM command. Because once a file is deleted, it can’t restore it. So, before deleting the file, you’d better look at the contents of the file, determine if you really want to delete. The RM command can be used with the -i option, which is especially useful when using the file extension character to delete multiple files. Using this option, the system will ask you to determine if you want to delete one by one. At this time, Y and press Enter to delete files. If you press only ENTER or other characters, the file will not be deleted.

grammar

RM (option) (parameter)

Option

-d: Delete the hard connection data of the directory you want to remove to delete to 0, delete the directory;

-f: Forced to delete files or directories;

-i: Inquire about the user before deleting an existing file or directory;

-r or -r: recursive processing, handle all files in the specified directory with subdirectories;

–preserve-root: Recursive operation of the root directory;

-v: The detailed execution process of the display instruction.

parameter

File: Specifies the list of files that is deleted. If you contain a directory in the parameter, you must add -R or -r option.

Example

Interactive delete files in the current directory TEST and EXAMPLE

RM-Test Example

REMOVE TEST? N (does not delete file test)

REMOVE EXAMPLE? Y (Delete File EXAMPLE)

Delete all files and subdirectories in the current directory except for implicit files

# rm -r *

It should be noted that this is very dangerous!

RM command delete file

# r r Îļþ 1 file 2 …

RM testfile.txt

RM command delete directory

RM -R [directory name] -r means recursively deleting all files and directories in the directory. -f means forced deletion

RM-RF TestDir

RM -R TestDir

There is a confirmation prompt before deleting the operation

Rm -i [file / directory]

RM -R-TestDir

RM ignores files or directories that do not exist

-f option (LCTT translation: “force”) allows this operation to force execution, ignore error prompts

RM -F [file …]

Confirm the deletion only under certain scenes

Option -i, ensures that only 3 files are deleted or when the recursive delete is deleted (LCTT Translation: If the delete directory) is only a confirmation.

Rm -i file1 file2 file3

Delete root directory

Of course, the delete root directory (/) is the least unwanted operation of Linux users, which is why the default RM command does not support performing recursive deletion operations on the root directory. However, if you do this, you need to use the –no-preserve-root option. When this option is provided, the RM will not have a special processing of the root directory (/).

Do not give an example, the operating system is deleted by you, you are too bad.

RM displays the details of the current delete operation

RM -V [file / directory]

Ok, “Delete Library Run Road” is completed.

Details Page Reference: https://linux.gaomeluo.com/c/rm.html

Related Posts