OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: router on May 22, 2023, 04:34:36 PM

Title: list of commands
Post by: router on May 22, 2023, 04:34:36 PM
Hello,

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

Thanks
Title: Re: list of commands
Post by: Patrick M. Hausen on May 22, 2023, 04:41:55 PM
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?
Title: Re: list of commands
Post by: router on May 22, 2023, 04:45:06 PM
I meant the commands which are pre installed with opnsense, not all commands. thanks
Title: Re: list of commands
Post by: Patrick M. Hausen on May 22, 2023, 04:56:24 PM
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.
Title: Re: list of commands
Post by: router on May 22, 2023, 05:05:58 PM
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
Title: Re: list of commands
Post by: Patrick M. Hausen on May 22, 2023, 05:14:08 PM
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
Title: Re: list of commands
Post by: router on May 22, 2023, 05:43:35 PM
perfect. thanks