A PowerShell module that displays a list of files and directories in a specified path with additional formatting and color-coding.
This module exports a function, ll
, that provides an enhanced directory listing, similar to the ls
command in Unix/Linux. It displays files and directories with additional details such as file attributes, last modified time, and file size. The output is color-coded to easily distinguish between different types of items, such as directories, hidden files, and symbolic links.
This module can be installed from the PowerShell Gallery with the follwing command:
Install-Module -Name better-ls
Once installed you can use this module by typing ll
in your PowerShell terminal.
See files and folders in current directory
PS> ll
Providing a path
PS> ll C:\Users\MyUser\
To see hidden files and folders
PS> ll C:\Users\MyUser\ -h
The output of ll
is more compact, ordered by file type, and includes symlink destinations.
When viewing hidden files you still see the rest of the files in the directory with appropriate color coding.