PowerShell: Prevent Truncating Lines, Wrap Lines

By Xah Lee. Date: . Last updated: .

PowerShell is very annoying. It truncates file paths if your terminal is not wide enough.

Here's how to make it soft-wrap lines instead.

# list file, show full path
dir -recurse | % {$_.fullname}
dir -recurse | select -property fullname | Format-List

there is no simple way to make any output not truncate.

you can work around by Piping things to Format-List to make paths not truncate.


PowerShell How-To

Install and Help

list files

list dirs

on dir

on file

Windows config

zip tar

misc