tabs(1) on Solnix vs Linux and the BSDs
On Solnix, tabs is the illumos tabs at /usr/bin/tabs, a POSIX.1-2024 utility and not the ncurses tabs that Linux and FreeBSD document. It has a -file form that reads a format spec from a file, and no -d or -V.
The manual pages
- Solnix: tabs(1) from
pkgs.solnix.illumos-world-man; the default on Solnix · illumos.org - Solnix: tabs(1) from
pkgs.solnix.ncurses; add the package to get it - Linux: tabs(1) ncurses-6.6
- FreeBSD: tabs(1) 15.1-RELEASE
- NetBSD: tabs(1) 11.0
- Standard: POSIX.1-2024 (IEEE Std 1003.1-2024),
tabs
What Solnix runs
A default Solnix system runs the illumos tabs at /usr/bin/tabs; no other illumos variants are shipped. The ncurses tabs is available as tabs(1) from pkgs.solnix.ncurses; add that package to get it.
Differences
| Compared with | Topic | What differs |
|---|---|---|
| Linux, FreeBSD | same program as the ncurses alternative | The Linux page is the ncurses tabs (ncurses-6.6), the same program as the pkgs.solnix.ncurses tabs, and the FreeBSD 15.1 page has the same text. The illumos tabs on PATH is a different implementation with a different option set. Source: Solnix tabs(1) from pkgs.solnix.ncurses OPTIONS; Linux tabs(1) OPTIONS; FreeBSD tabs(1) OPTIONS; illumos tabs(1) SYNOPSIS |
| Linux, FreeBSD | -n meaning | In the illumos synopsis, -n stands for the repetitive form, a single-digit interval such as -8. In ncurses tabs, -n is a literal flag: check the options and run any debugging, but do not change the terminal.Source: illumos tabs(1) Repetitive; Linux tabs(1) -n; FreeBSD tabs(1) -n |
| Linux, FreeBSD, NetBSD | -file (read spec from a file) | illumos tabs -file reads the first line of the named file for an fspec(5) format and sets tabs from it, defaulting to -8. The Linux, FreeBSD and NetBSD pages list no such option.Source: illumos tabs(1) File; Linux and FreeBSD tabs(1) OPTIONS; NetBSD tabs(1) DESCRIPTION |
| Linux, FreeBSD | -d and -V missing on illumos | The illumos page documents neither -d (show a ruler with expected and actual tab stops) nor -V (print the ncurses version). Both are documented for the ncurses tabs on Linux and FreeBSD.Source: illumos tabs(1) OPTIONS; Linux tabs(1) -d, -V; FreeBSD tabs(1) -d, -V |
| NetBSD | TERM unset or empty | illumos tabs falls back to the ansi+tabs terminal type when -T is absent and TERM is unset or NULL. NetBSD tabs fails if neither TERM nor -T is present.Source: illumos tabs(1) -T, ENVIRONMENT VARIABLES (TERM); NetBSD tabs(1) ENVIRONMENT |
| Linux, FreeBSD | +m margin support | illumos describes +m[n] as working on some terminals. On terminals without margin capabilities, ncurses imitates the margin with tab stops, and it says +m may also reset the right margin. Source: illumos tabs(1) +m[n]; Linux and FreeBSD tabs(1) Margins |
| NetBSD | +m not described on NetBSD | The NetBSD synopsis lists [+m[n]], but its option list does not describe +m. The illumos page describes +m[n] as a margin setting, default 10. Source: NetBSD tabs(1) SYNOPSIS, DESCRIPTION; illumos tabs(1) +m[n] |
| Linux, FreeBSD | limits on the number of tab stops | illumos allows up to 40 numbers in an explicit list, and notes that it clears only 20 tabs (on terminals needing a long sequence) but will set 64. ncurses documents no fixed limit and tries to set tab stops up to the right margin. Source: illumos tabs(1) OPERANDS, NOTES; Linux and FreeBSD tabs(1) DESCRIPTION, HISTORY |
| NetBSD | environment variables | The NetBSD page lists COLUMNS and TERM as affecting tabs. The illumos page lists TERM plus LANG, LC_ALL, LC_CTYPE, LC_MESSAGES and NLSPATH, and does not mention COLUMNS. Source: NetBSD tabs(1) ENVIRONMENT; illumos tabs(1) ENVIRONMENT VARIABLES |
Everyday tasks
| Task | Solnix | Linux | FreeBSD | NetBSD |
|---|---|---|---|---|
| set tab stops every 8 columns | tabs -8 | tabs -8 | tabs -8 | tabs -8 |
| set tab stops at chosen columns | tabs 1,8,36 | tabs 1,8,36 | tabs 1,8,36 | tabs 1,8,36 |
| clear all tab stops | tabs -0 | tabs -0 | tabs -0 | tabs -0 |
Standards
- POSIX: tabs is a POSIX.1-2024 utility.
- Solnix: Interface Stability: Standard. CSI: Enabled.
- NetBSD: The tabs utility conforms to IEEE Std 1003.1 (“POSIX.1”).
Writing portable scripts
- Use a single-digit repetitive spec (for example tabs
-8) or an explicit comma list. Avoid the ncurses-nflag (check only),-d,-V, +m and-file, which differ or are missing between systems. - Make sure TERM is set before running tabs: NetBSD tabs fails if neither TERM nor
-Tis given.
Every difference here is taken from the manual pages linked above: Solnix's published page, Linux (man-pages and the GNU and util-linux manuals), FreeBSD, OpenBSD and NetBSD. Each row names its source. Where a manual is silent, this page is too. Compiled 2026-10-26. Found a mistake? Mail hackers@lists.solnix.io.