Skip to content

Commit

Permalink
Add fdupes commands to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
paulstothard committed Feb 3, 2024
1 parent 7e66483 commit b18c3c0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3403,6 +3403,28 @@ The command can be stopped using `kill` and the PID, e.g.:
kill -9 1963
```

### Remove duplicate files

Use [fdupes](https://github.com/adrianlopezroche/fdupes) to find and remove duplicate files.

The following command finds duplicate files in the current directory and its subdirectories:

```bash
fdupes -r /path/to/directory
```

Use the `-d` option to delete duplicates (you will be prompted to confirm each deletion):

```bash
fdupes -d -r /path/to/directory
```

To delete duplicates without being prompted, use the `-N` option:

```bash
fdupes -dN -r /path/to/directory
```

### Reverse the order of lines in a file

```bash
Expand Down

0 comments on commit b18c3c0

Please sign in to comment.