Nelua

CoreUserland

nebox

A Unix toolbox written in Nelua.

One static x86-64 binary carries 138 executable applets, including a POSIX shell. Pass a command to nebox or run it through a link named after the applet.

Shell sessionx86-64
$ nebox --list | nebox wc -l
138

$ nebox sh -c 'command -v cd'
cd

BusyBox and Toybox coverage

· b948bce

148 / 524

upstream command names covered

148 of 524
Executables
126
Shell builtins
22
Still missing
376

The catalog combines BusyBox 1.38.0 and Toybox 0.8.15. A name counts when Nebox supports each way upstream invokes it. The check reads --list for executables and uses command -v inside the Nebox shell with external commands off its search path.

Standalone applets

nebox --list

The standalone build lists 138 commands, including 12 outside the two upstream catalogs. Use nebox --install [-s] DIR to create a link for each applet.

[ – C

  • [
  • arch
  • awk
  • b2sum
  • base32
  • base64
  • basenc
  • basename
  • cat
  • chgrp
  • chmod
  • chown
  • chroot
  • cksum
  • clear
  • cmp
  • comm
  • cp
  • csplit
  • cut

D – G

  • date
  • dd
  • df
  • diff
  • dir
  • dircolors
  • dirname
  • dnsdomainname
  • domainname
  • du
  • echo
  • egrep
  • env
  • expand
  • expr
  • factor
  • false
  • fgrep
  • find
  • fmt
  • fold
  • free
  • fsync
  • grep
  • groups
  • gunzip
  • gzip

H – M

  • hd
  • head
  • hexdump
  • hostid
  • hostname
  • id
  • install
  • join
  • kill
  • link
  • ln
  • logname
  • ls
  • lsmod
  • mcookie
  • md5sum
  • mkdir
  • mkfifo
  • mknod
  • mktemp
  • mount
  • mv

N – R

  • nice
  • nisdomainname
  • nl
  • nohup
  • nproc
  • nsh
  • od
  • paste
  • patch
  • pathchk
  • pidof
  • pinky
  • printenv
  • printf
  • pwd
  • pwdx
  • readlink
  • realpath
  • rev
  • rm
  • rmdir

S – T

  • sed
  • seq
  • setsid
  • sh
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
  • shuf
  • sleep
  • sort
  • split
  • stat
  • strings
  • sum
  • sync
  • tac
  • tail
  • tar
  • tee
  • test
  • timeout
  • touch
  • tr
  • true
  • truncate
  • tsort
  • tty
  • ttysize

U – Z

  • umount
  • uname
  • unexpand
  • uniq
  • unlink
  • uptime
  • users
  • usleep
  • uuidgen
  • vdir
  • wc
  • which
  • who
  • whoami
  • xargs
  • yes
  • ypdomainname
  • zcat

Added in this build. clear, egrep, fgrep, fsync, lsmod, mcookie, pidof, pwdx, ttysize, usleep and uuidgen.

The optional Theseus Init build adds init for a total of 139. See what ships in Cascadia.

Using the toolbox

Shell and job control

Start an interactive shell with nebox sh -i. It supports editable history, tab completion, pipelines and background jobs. nsh adds a colored prompt and XDG history and configuration files.

Text and files

Search with grep, edit streams with sed and process records with awk. For larger jobs, sort can spill to disk, diff can compare directory trees, and tail can follow a rotating log.

Archives and checksums

Create or extract a tar archive, compress a stream with gzip, or write decompressed data to standard output with zcat. Use sha256sum to verify a file.

Known limits

Standalone locale data covers C, UTF-8 character handling and German collation. Some commands work byte by byte. Account enumeration reads the local databases. The grep -P option requires a build linked with static PCRE2.

Applet compatibility notes

Build and test

Nebox links against nelibc’s standalone archive. The conformance suite checks command output, exit status and changes to the filesystem. The coverage check tests which commands can be invoked.

git clone https://github.com/Spaceghost/nelibc
make -C nelibc lib-standalone-zig
git clone https://github.com/Spaceghost/nebox
make -C nebox NELIBC=../nelibc
make -C nebox NELIBC=../nelibc test

Counting lines in Nelibc source

Median elapsed milliseconds across 15 measured rounds on an i5-10400. Each process read the same 1,965,199-byte file. The line-only path now counts newline bytes directly.

OptionsPrevious Nebox (ms)Updated Nebox (ms)GNU wc 9.1 (ms)
-l4.6631.6120.965
-lc4.6591.5980.948
-w4.6894.2189.762