Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to find and delete duplicate files in Linux

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to find and delete duplicate files in Linux, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this to learn, I hope you can gain something.

FSlint has both GUI and CLI modes. Therefore, it is a user-friendly tool for beginners. FSlint can be used not only to find duplicates, but also to find incorrect symbolic links, incorrect names, temporary files, incorrect IDS, empty directories, unstripped binaries, and more.

Install FSlint

archlinux:

$ yay -S fslint

Debian, Ubuntu, Linux Mint:

$ sudo apt-get install fslint

Fedora:

$ sudo dnf install fslint

RHEL, CentOS:

$ sudo yum install epel-release

$ sudo yum install fslint

After installation, launch it from the menu or application launcher.

This is what the FSlint graphical user interface looks like.

As you can see, FSlint's interface is user-friendly and straightforward. In the Search Paths tab, add the path to the directory you want to scan, and then click the Find button in the lower-left corner to find duplicates. Check the Recursion option on the right to recursively search directories and subdirectories for duplicates. FSlint will quickly scan a given directory and list them.

Select duplicates to clean from the list and choose any of Save, Delete, Merge and Symbolic Link.

Also, in the Advanced Search Parameters tab, you can specify paths to exclude when searching for duplicates.

FSlint Command Line Options

FSlint provides the following command line to find duplicates in the file system:

findup-Find duplicate files

findnl-Find the file name in question.

findu8-Find invalid utf8 encoded filenames

findbl-Wrong link found

findsn-Find files with conflicting names

found-Find empty directories

finid-Find files for invalid user id

findns-Find unstripped executables

findrs-Find redundant white space in a file

findtf-Find temporary files

find-Find libraries that may not be in use

zipdir-Reclaim wasted space in ext2 directory entries

All of these utilities are available in/usr/share/flint/flint/flint.

For example, to find duplicates in a given catalog, do the following:

$ /usr/share/fslint/fslint/findup ~/Downloads/

To find an empty directory, do the following:

$ /usr/share/fslint/fslint/finded ~/Downloads/

To find duplicate files, do the following:

$ /usr/share/fslint/fslint/findup --help Others are similar.

Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report