Forrest logo
back to the vdir tool

vdir:tldr:0a4c2

vdir: List grouping directories first.
$ vdir --group-directories-first
try on your machine

The vdir command is used to list the files and directories in a directory. The --group-directories-first option is a flag that can be passed to the vdir command to prioritize directories and list them first before listing the files.

By default, when you execute the vdir command, it lists both files and directories in an alphabetical order. However, when the --group-directories-first option is used, it organizes the output in such a way that all the directories are grouped together and listed first, followed by the files.

This can be useful when you have a directory with a large number of files and want to quickly identify and access the directories without scrolling through the entire file list.

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 vdir tool