In the older Windows command prompt dir /w formatted the directory output in wide format, providing a more at-a-glance view of contents to pick out folder names without having to scroll through the larger output that happens when they are all stacked vertically. This is especially useful when in VS Codes integrated terminal where the terminal window size is often restricted. Does PowerShell have an equivilent?
Is there a PowerShell equivalent to the dir /w of the old Windows command prompt?
314 Views Asked by Darren Evans At
3
This final, and my preferred, solution involves creating a function in my Powershell profile:
Then, further down in my profile script, setting an alias to call this function: