Shell Standard Commands in FreeBSD

Hello EveryOne😊🙏🏽,

currently am exploring the default Command Lines of FreeBSD 14.0-RELEASE-p2


From POSIX XCU standard, there is 160 commands

Reference :

Based on test script posix, FreeBSD 14.0-RELEASE-p2 having 134 commands

./posix | wc -l
134
sh:
#!/bin/sh
xcu="
admin
alias
ar
asa
at
awk
basename
batch
bc
bg
c99
cal
cat
cd
cflow
chgrp
chmod
chown
cksum
cmp
comm
command
compress
cp
crontab
csplit
ctags
cut
cxref
date
dd
delta
df
diff
dirname
du
echo
ed
env
ex
expand
expr
false
fc
fg
file
find
fold
fort77
fuser
gencat
get
getconf
getopts
grep
hash
head
iconv
id
ipcrm
ipcs
jobs
join
kill
lex
link
ln
locale
localedef
logger
logname
lp
ls
m4
mailx
make
man
mesg
mkdir
mkfifo
more
mv
newgrp
nice
nl
nm
nohup
od
paste
patch
pathchk
pax
pr
printf
prs
ps
pwd
qalter
qdel
qhold
qmove
qmsg
qrerun
qrls
qselect
qsig
qstat
qsub
read
renice
rm
rmdel
rmdir
sact
sccs
sed
sh
sleep
sort
split
strings
strip
stty
tabs
tail
talk
tee
test
time
touch
tput
tr
true
tsort
tty
type
ulimit
umask
unalias
uname
uncompress
unexpand
unget
uniq
unlink
uucp
uudecode
uuencode
uustat
uux
val
vi
wait
wc
what
who
write
xargs
yacc
zcat
"
bsd=`ls /bin /sbin /usr/bin /usr/sbin`
for i in $xcu
do
for j in $bsd
do
if [ $j = $i ]
then
echo $i
fi
done
done


Commands in /bin /sbin /usr/bin /usr/sbin : 976 Commands
root@m:/home/m # ls /bin /sbin /usr/bin /usr/sbin | wc -l
976
root@m:/home/m #

pkg based 3rd party commands are dependeds upon user needs.

so 976 commands is total commands in default FreeBSD Base System?

there is /rescue commands - am not counted

Nice to see removal of GPLinBase, Great work.

Also among that commands,

POSIX standard - 134
Data Storage & File System - zfs, zpool, ...
Virtualization - bhyve, jail, ...
Networking - ifconfig, dhclient, ping, ...
Programming - cc, ...
Scripting - sh, csh, tcsh,
...

have any one tried to categorize those default commands ?

Thanks a lot in Advance😊🙏🏽👍🏽
 
I picked off the top two missing commands from your posix script - 'admin' and 'cflow'. cflow is available as a port. Per wikipedia, 'admin' is to "Create and administer SCCS files". This predates rcs, cvs, svn and git. I'd consider it very obsolete. There are likely more obsolete commands further down in your list.

This is a bit like shopping for a new car. Do you really want a cigarette lighter plug or a USB port?
 

unitrunker 😊🙏🏽👍🏽


Yes, there is some installable POSIX XCU Optional, ports in FreeBSD14

cflow
cxref
uucp, uustat, uux from freebsd-uucp


Source Code Control System : Optional, but not in FreeBSD14 except "what"

sccs
admin
val
delta
get
sact
unget
rmdel
prs
what

Batch Processing | Services : Obsolescent, not in FreeBSD14

qalter
qdel
qhold
qmove
qmsg
qrerun
qrls
qselect
qsig
qstat
qsub
 
Back
Top