In another thread (in fact I think this issue has come up several times), there was the problem that the date command built into the CF can only parse some weird date-time format even though it can generate the standard formats. This led me to check what you actually get if neither the busybox nor the coreutils package is installed.
As well as having only the differently functional date command, you don't have these normally expected commands (as well as lots of less expected commands):
Possibly some commands implemented in CF3.13 busybox were not available in earlier versions? That would extend the list.
od is hexdump -o and less is (mostly) more. Things like true, false, yes can be trivially implemented as shell functions (but true and false are shell builtins in CF busybox ash), while sed can be used to implement head, tac, wc. pgrep is more tricky but can be emulated with a shell function, and similarly basename, uniq and xargs. realpath and readlink are really quite tricky to emulate, especially without stat. stat is irreplaceable.
This post compared the commands provided by the built-in busybox with those from the busybox package.
Code:
for pp in coreutils busybox; do opkg files $pp | tail -n +2; done |
sed 's@^/.*/@@g' | sort -u |
while read -r nn _; do [ -e /bin/$nn -o -e /sbin/$nn ] || echo $nn; done
Code:
ar
arp
awk
basename
cmp
cpio
diff
dos2unix
ed
false
gzip
head
install
join
less
nohup
nslookup
od
paste
patch
pgrep
pkill
readlink
realpath
sort
stat
strings
tac
tar
telnet
traceroute
true
uname
uniq
unix2dos
unlink
uptime
wc
whoami
xargs
yes
od is hexdump -o and less is (mostly) more. Things like true, false, yes can be trivially implemented as shell functions (but true and false are shell builtins in CF busybox ash), while sed can be used to implement head, tac, wc. pgrep is more tricky but can be emulated with a shell function, and similarly basename, uniq and xargs. realpath and readlink are really quite tricky to emulate, especially without stat. stat is irreplaceable.
This post compared the commands provided by the built-in busybox with those from the busybox package.
Last edited: