lc-go is an enhanced Go port of gdm85/lc. lc is a command similar to ls that was originally included with the Coherent Unix clone. lc lists files grou

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2025-01-11 14:00:03

lc-go is an enhanced Go port of gdm85/lc. lc is a command similar to ls that was originally included with the Coherent Unix clone. lc lists files grouped by category: directory, file, symlink, etc. Its output consists of columns after Bill Joy's ls in 1BSD. Unlike ls, lc always lists dot files.

You may wish to symlink ~/go/bin/lc-go to ~/go/bin/lc for a shorter command. make install does this automatically. To avoid name conflict with the original C version of lc, you can rename it to, for example, lco.

lc-go supports FreeBSD, Linux, macOS, NetBSD, and OpenBSD. It is automatically tested on those systems. lc-go builds but doesn't work on Windows.

The file doc/lc-go.1 contains an update of the original manual page, It has been converted to use modern -man macros. You will also find it in Markdown in doc/lc-go.1.md. On a modern Linux or BSD system, it may be viewed with man ./doc/lc-go.1. The original, unaltered manual page source is in doc/lc.orig.troff.

A scanned and OCRed page introducing lc in an early chapter of the Coherent user manual may be viewed in doc/intro.md. The page is also preserved as an image.

Leave a Comment