uutils / uutils/coreutils

ls: Windows - Friendlier Windows listing

Open
#3,544 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

U - ls
Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Description

When ls -l is used on a windows system you receive:

---------- 1 somebody somegroup      0 May 19 10:04 ls.exe -> 'C:\Users\andre\Programs\Bin\coreutils.exe'

In powershell using Get-ChildItem (powershell ls) on a linux system this is translated well showing permissions, user and group:

lrwxrwxrwx andre    andre    5/18/2022 10:24    26 coreutils ->  ../lib/coreutils/coreutils

To make ls more NTFS friendly; ls could mirror the powershells output for handling the list output
and utilize the object type indicator instead and ignore USER and GROUP

Below you can see a output using Get-ChildItem on a windows:

la---          2022-05-18    16:06              0 coreutils.exe -> C:\Programs\Lib\coreutils\coreutils.exe

l (link)
d (directory)
a (archive)
r (read-only)
h (hidden)
s (system)
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-childitem?view=powershell-7.2

As a example this could then be the output for a Windows file system:

PS > ls.exe -l
total 2707968
la---    1          0 May 18 16:06 coreutils.exe -> 'C:\Programs\Lib\coreutils\coreutils.exe' 
la---    1          0 May 19 10:04 ls.exe -> 'C:\Users\andre\Programs\Bin\coreutils.exe'
-a---    1      89088 Dec  2 11:57 steam.exe
Screenshots of terminals
Windows - Powershell

2022-05-19-100343_888x950_scrot

Linux - Bash Powershell

2022-05-19-101506_657x245_scrot

2022-05-19-101439_932x304_scrot

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the ls entry point and locate the Windows-specific long-listing behavior. Compare its current output with the requested NTFS attribute indicators, then add or update coverage for Windows listings so links, files, and their attributes use the proposed format.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.