listdir
is a simple and intuitive CLI command that lists the content of a directory, including information like file type, size and last modified time.
Make sure you have Node.js installed and run the following command :
npm install -g @soniix/listdir
Once installed, use the listdir
command followed by the directory path :
listdir /directory/path
If no directory path is provided, the current directory will be listed :
listdir
You can choose to show all files including hidden files using the -a
option :
listdir -a /directory/path
This will also work :
listdir /directory/path -a
Here is an example of the listdir
command output :