rm delete file of shell command

1. Delete a single file

rmdir file.*

file.* indicates a certain type of file (eg: file.txt, file.cfg, file.ini, file.db, file.dat, file.xml, etc.);

Delete file.* files in the current directory;

2. Delete multiple files

rm file1.* file2.* file3.*

Delete file1.*, file2.*, file3.* files in the current directory;

The files that need to be deleted together can continue to be added later, and so on;

Guess you like

Origin blog.csdn.net/weixin_44498669/article/details/130009124
Recommended