Which file extensions are the most common in a directory?

Get the most common file extensions in a given directory to understand the types of files it contains

Run this query

To run this query, you can use the following command:

anyquery run which_files_extension_are_the_most_common_in_a_directory <directory_path>

Arguments

Directory Path

The directory path to list files from

Additional informations

Source code Author

Tip

You can limit the number of results returned by a query using the --limit flag. For example, to limit the results to 10 rows, run anyquery run --limit 10.