'How to remove current path from dir command in PowerShell?

When I type in the dir command in Powershell, it always displays the current path + a few empty lines, which is really unnecessary. I would want to set an alias that removes the current path from the result. But what command/attribute can I use to remove that path? I couldn't find anything on the internet or the man page of dir.

I use Powershell 7.2.1 and am new to PS.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source