Forrest logo
back to the gdu tool

gdu:tldr:a8201

gdu: Ignore paths by regular expression.
$ gdu --ignore-dirs-pattern '${-*[abc]+}'
try on your machine

The command you provided is using the gdu command with the --ignore-dirs-pattern option and the argument '${-*[abc]+}'.

gdu is a tool used for disk usage analysis, similar to the du command. It displays summarized and sorted information about the disk space usage in a directory tree.

The --ignore-dirs-pattern option allows you to specify a regular expression pattern that matches directory names to be ignored during the disk usage analysis. In this case, the pattern is '${-*[abc]+}'.

The pattern '${-*[abc]+}' is a regular expression that matches directories whose names contain any combination of letters 'a', 'b', and 'c'. The * indicates that there can be zero or more characters before and after the pattern.

When this command is executed, it will perform a disk usage analysis using gdu, excluding directories whose names match the given regular expression pattern.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gdu tool