list of commands

Started by router, May 22, 2023, 04:34:36 PM

Previous topic - Next topic
May 22, 2023, 04:34:36 PM Last Edit: May 22, 2023, 04:49:18 PM by router
Hello,

Where can I see a list of commands which can be executed from the opnsense shell?

Thanks

Press the TAB key ...

But I guess you might want to start here: https://docs.freebsd.org/en/books/handbook/
And possibly read an introductory book about Unix?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I meant the commands which are pre installed with opnsense, not all commands. thanks

What do you mean? There is a complete FreeBSD installed "under" OPNsense. Did you try pressing TAB twice? That's all commands in the current (presumably root) user's search path.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Pressing tab twice doesnt do anything on my shell. I just wondered if there was a command which lists all commands eg. sysctl, free, cp, mv, ls, etc. thanks

Ah ... yes, the root shell does not support TAB.

Try this:
root@opnsense:~ # bash -l
[root@opnsense ~]# <<-- press TAB here
Display all 1477 possibilities? (y or n)
!                                   gvirstor                            postdrop
./                                  gzcat                               postfix
2to3-3.9                            gzexe                               postkick
:                                   gzip                                postlock
CC                                  h2ph                                postlog
[                                   h2xs                                postmap
[[                                  halt                                postmulti
]]                                  hash                                postqueue
ac                                  hastctl                             postsuper
accton                              hastd                               posttls-finger
acpiconf                            hccontrol                           powerd
acpidb                              hcsecd                              powerman
acpidump                            hcseriald                           powermand
addr2line                           hd                                  poweroff
adduser                             head                                ppm2tiff
adjkerntz                           help                                ppp
agentxtrap                          hexdump                             pppctl
alias                               history                             pr
ancontrol                           hmac256                             printenv
annotate                            host                                printf
apm                                 hostapd                             proccontrol
apply                               hostapd_cli                         procstat
apropos                             hostname                            prometheus_sysctl_exporter
--More-- <<-- press the space bar here to page through the list
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)