Sign in

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.

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 withTopicWhat differs
Linux, FreeBSDsame program as the ncurses alternativeThe 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 meaningIn 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 illumosThe 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
NetBSDTERM unset or emptyillumos 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 supportillumos 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 NetBSDThe 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, FreeBSDlimits on the number of tab stopsillumos 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
NetBSDenvironment variablesThe 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

TaskSolnixLinuxFreeBSDNetBSD
set tab stops every 8 columnstabs -8tabs -8tabs -8tabs -8
set tab stops at chosen columnstabs 1,8,36tabs 1,8,36tabs 1,8,36tabs 1,8,36
clear all tab stopstabs -0tabs -0tabs -0tabs -0

Standards

Writing portable scripts

  • Use a single-digit repetitive spec (for example tabs -8) or an explicit comma list. Avoid the ncurses -n flag (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 -T is 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.