OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

colorls-7.6

ls(1) that can use color to display file attributes

Back to search · Not supplied

Description

This is a simple hack, taken from FreeBSD, to OpenBSD's ls(1) to use ANSI sequences to display file attributes in color. There is a -G flag (somewhat similar to the -F flag). Take a look at the man page for details. The program is called "colorls", so you may want to use an alias such as ls=${PREFIX}/bin/colorls. Note that you need a color-capable terminal to enable colorls. This means you should set your TERM to "wsvt25" on the wscons(4) console and to "sun-color" when using the Sun console, not "vt220" and "sun", respectively, which are not color-capable in termcap(5).

Package information

Ports path
sysutils/colorls
Package architecture
amd64
Maintainer
Christian Weisgerber <naddy@openbsd.org>
Categories
sysutils
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

None listed in sqlports.

Installing and updating packages · Package details as JSON