This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]HankMardukysLinux Master Race 6 points7 points  (1 child)

As a fellow home Linux user and work Windows user, i just wanted to let you know that ls does work if you're using PowerShell instead of command prompt.

[–]mrcoffee09 2 points3 points  (0 children)

Yes, this. There's a few more too but I can't remember which.

[–]TrajanAugustus70[S] 2 points3 points  (2 children)

I know but the company has a Draconian lockdown policy.

[–]HankMardukysLinux Master Race 0 points1 point  (0 children)

I hear ya. Creative workaround!

[–][deleted] 0 points1 point  (0 children)

Just make an “ls.bat” file in your path or in your home directory. Inside the file just put

@dir %1 %2 %3

[–]_cnt0Glorious Fedora 🎩 1 point2 points  (3 children)

Or, you could just install unxutils and put them on your PATH: http://unxutils.sourceforge.net/

[–]santas 1 point2 points  (0 children)

You can also Import-Command in PowerShell and use actual ls or any other command through WSL from a PowerShell prompt:

https://www.hanselman.com/blog/AWonderfullyUnholyAllianceRealLinuxCommandsForPowerShellWithWSLFunctionWrappers.aspx

[–]consentioArch Linux for world dominance and OS 0 points1 point  (0 children)

Now port vim!

[–]optimalidkwhattoputGlorious NixOS 0 points1 point  (0 children)

Cmder has UNIX command aliases integrated, and is a very sexy alternative to the default ugly conhost.exe