To list only directories using the vdir
command in Unix or Linux, you can use the -d
option.
The vdir
command is similar to the ls
command, but it displays additional information about the files and directories, such as the file size and permissions.
To list only directories using the vdir
command, you can use the following syntax:
vdir -d
This will display a list of directories in the current directory, along with their attributes and metadata.
You can also specify a specific directory to list by providing the directory path as an argument. For example, to list only directories in the /usr/local
directory, you can use the following command:
vdir -d /usr/local
You can also use additional options with the vdir
command to customize the output. For example, you can use the -l
option to display the output in a long format, or the -t
option to sort the output by time.
For more information about the vdir
command and its options, you can consult the documentation for your specific Unix or Linux system.