Lệnh tìm và xóa tất cả file có đuôi (phần mở rộng) bất kỳ trên Windows và Linux

TricksMMO

Administrator
Staff member
đuôi ** Cách xóa tất cả các tệp với bất kỳ đuôi nào trên Windows và Linux **

Hôm qua, một người bạn đã hỏi TrickSmmo nếu có cách nào để xóa tất cả các tệp bằng tiện ích mở rộng *.abxyz?Đột nhiên, thiết bị của cô xuất hiện một số tệp đuôi lạ?

Tất nhiên, có một cách, nhưng không phải bằng cách nhấp vào từ tệp, chúng tôi sẽ sử dụng lệnh.

Nếu bạn muốn xóa tất cả các tệp có cùng đuôi (phần mở rộng), còn được gọi là tiện ích mở rộng, chúng ta có thể sử dụng CMD trên Windows hoặc Terminal trên Linux để thực hiện xóa nhanh.

** Trong trường hợp bạn gặp các tệp có tiện ích mở rộng lạ, nó có thể được gây ra bởi virus hoặc phần mềm khác.Việc xóa tệp nên được xem xét chắc chắn không ảnh hưởng đến hoạt động của hệ điều hành.Khuyến khích bạn sao lưu trước khi thực hiện các hướng dẫn bên dưới. **

## Lệnh xóa tất cả các tệp với bất kỳ đuôi nào trên Windows

Việc loại bỏ này sẽ xóa tệp, không còn trong thùng rác.

Đầu tiên, bạn cần mở CMD lên (nhấn phím Windows + R, nhập trên CMD, Enter).

Truy cập ổ đĩa chứa các tệp với tiện ích mở rộng bạn muốn xóa.Ví dụ: nếu bạn thấy ổ D: chứa nhiều tệp có đuôi .abxyz, thì hãy nhập D: và nhập

Tiếp tục nhập lệnh tìm kiếm và xóa các tệp đuôi mở rộng bằng lệnh: `del /s /f *.abxyz` (thay thế đuôi ABCXYZ bằng đuôi bạn muốn tìm và xóa).

Trong đó:

* `Del`: Xóa tệp trong Windows
* `/s`: Tìm và xóa trong các phần phụ
* `/f`: xóa các tệp với các thuộc tính chỉ đọc
* `* .`: Tất cả các tệp có bất kỳ tên nào.Ví dụ: nếu bạn chỉ muốn xóa tệp TrickSmmo.Abcxic, hãy thay thế `*.` bằng` TrickSmmo.`
* `abcxyz`: đuôi của tệp để xóa

Kết quả sẽ được liệt kê các thư mục chứa tệp có đuôi *.abxyz và đã bị xóa:

## Lệnh xóa tất cả các tệp với bất kỳ đuôi nào trên Linux

Trên Linux, thủ quỹ thường có các lỗi tạo ra các tệp rác do sử dụng sai plugin.Một thảm họa khi sử dụng chức năng sai để tạo các tệp hình ảnh trang web, mà không cần xóa tệp gốc, làm cho công suất ổ cứng tăng gấp đôi.Do đó, tôi phải tìm một giải pháp để xóa tất cả các tệp bằng đuôi web.

Tương tự như CMD trên Windows, Linux có loại cửa sổ gõ tên của terimal hoặc bạn sử dụng putty to ssh để gõ lệnh:

`Tìm.-Name '*.webp' -delete`

Trong đó:

* `Find`: lệnh tìm kiếm trong linux
* `.`: đại diện cho thư mục hiện tại.Nếu bạn muốn kiếm từ root, hãy thay thế `.` thành`/`
* `-Name`: Tìm kiếm theo tên hoặc đuôi mở rộng.
* `'* .Webp'`: Tìm tất cả các tệp có bất kỳ tên nào và có một trang web.
* `-Delete`: Nếu bạn tìm thấy nó, hãy xóa nó.

Chỉ với 1 dòng lệnh cơ bản, bạn có thể nhanh chóng tìm thấy và xóa các tệp với bất kỳ đuôi nào chỉ trong vài giây.Sử dụng lệnh rất nguy hiểm, bạn nên tìm hiểu thêm các lệnh trên CMD hoặc Linux để hỗ trợ công việc của bạn.
=======================================
the tail **How to delete all files with any tail on Windows and Linux**

Yesterday, a friend asked Tricksmmo if there was a way to delete all files with the extension *.abxyz? Suddenly, her device appeared some strange tail files?

Of course, there is a way, but not by clicking from the file, we will use the command.

If you want to delete all files with the same tail (extension), also known as extension, we can use CMD on Windows or Terminal on Linux to perform deletion for fast.

**In case you encounter files with strange extensions, it may be caused by viruses or other software. The deletion of the file should be considered to definitely not affect the operation of the operating system. Encourage you to back up before performing the instructions below.**

## The command deletes all files with any tail on Windows

This removal will delete the file, no longer in the trash bin.

First, you need to open CMD up (press Windows + R key, type on CMD, Enter).

Access the drive containing files with the extension you want to delete. For example, if you see drive D: contains many files with tail .abxyz, then type D: and Enter

Continue to type the search command and delete the extended tail files with the command: `del /s /f *.abxyz` (replace the ABCXYZ tail with the tail you want to find and delete).

In there:

* `Del`: File delete in Windows
* `/s`: Find and delete in sub-folders
* `/f`: Delete files with Read-only properties
* `*.`: All files have any name. For example, if you just want to delete the tricksmmo.abcxic file, replace the `*.` with `tricksmmo.`
* `abcxyz`: the tail of the file to delete

The result will be listed which folders containing the file with the tail *.abxyz and have been deleted:

## The command deletes all files with any tail on Linux

On Linux, Tricksmmo often has errors that generate garbage files due to the wrong use of the plugin. A disastrous when using the wrong function to create Webp image files, without deleting the original file, making the hard drive capacity doubled. Therefore, I have to find a solution to delete all files with webp tail.

Similar to CMD on Windows, Linux has a window type typing the name of Terimal or you use Putty to SSH to type the command:

`find . -Name '*.webp' -Delete`

In there:

* `Find`: Search command in Linux
* `.`: Representing the current folder. If you want to earn from root, replace the `.` into `/`
* `-Name`: Search by name, or extended tail.
* `'*.Webp'`: Find all files with any name and have a webp.
* `-Delete`: If you find it, delete it.

With just 1 basic command line, you can quickly find and delete files with any tail within just a few seconds. Using the command is very dangerous, you should learn more commands on CMD or Linux to support your work.
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top