toybox

Updated: May 06, 2022

Access common Linux command line utilities

Runs on:

QNX Neutrino

Description:

The toybox package combines many common Linux command line utilities together into a single, BSD-licensed executable.

The following toybox commands are supported: ascii, base64, basename, bc, bunzip2, bzcat, cal, cat, chgrp, chmod, chown, cksum, clear, cmp, comm, cp, cpio, crc32, cut, date, dd, diff, dirname, dos2unix, du, echo, egrep, env, expand, expr, false, fgrep, file, find, grep, groups, gunzip, gzip, head, id, install, link, ln, logname, ls, md5sum, mkdir, mkfifo, mktemp, more, mv, nice, nl, nohup, od, paste, patch, printf, pwd, readlink, realpath, rm, rmdir, sed, seq, sha1sum, sleep, sort, split, stat, strings, tail, tar, tee, test, time, touch, true, truncate, tty, uname, uniq, unix2dos, unlink, uudecode, uuencode, uuidgen, wc, which, whoami, xargs, xxd, yes, zcat.

QNX Neutrino uses the toybox versions of gzip, gunzip, and zcat.

Using other toybox commands to replace their equivalent QNX Neutrino utilities is optional, but toybox commands will replace their equivalent QNX Neutrino utilities in a future release.

Use one of the following commands to access help for a toybox command:

toybox command_name --help

command_name --help

To enable toybox, add the following line to the appropriate buildfile:

path/to/toybox=usr/bin/toybox

Also add a link for each toybox command you want to enable. QNX recommends that you use a hard link, if the filesystem supports it:

[type=hlink] path/to/command_name=/path/to/toybox

Use the following format if you need to use a symlink or process manager symlink (e.g., an IFS):

[type=link] path/to/command_name=toybox

Documentation

The toybox documentation provided by Rob Landley includes a product overview and a command reference:

Contributing author:

Rob Landley