Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
bash: Command not found
« previous
next »
Print
Pages: [
1
]
Author
Topic: bash: Command not found (Read 5595 times)
martin.schaible
Newbie
Posts: 14
Karma: 0
bash: Command not found
«
on:
December 30, 2019, 09:09:06 pm »
Hello
I didn't use the shell never before on my UTM, but now i need to do something.
After successful login, i tried to run a simple "ls -a", but the system can not find the command. In fact, bash finds no command at all.
What can i do to get the command line working?
Thanks!
Martin
Logged
chemlud
Hero Member
Posts: 2486
Karma: 112
Re: bash: Command not found
«
Reply #1 on:
December 30, 2019, 09:30:34 pm »
Might be related to the user rights?
Crude hack: sudo su...
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare
felix eichhorns premium katzenfutter mit der extraportion energie
A router is not a switch - A router is not a switch - A router is not a switch - A rou....
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: bash: Command not found
«
Reply #2 on:
December 30, 2019, 10:54:05 pm »
bash does not exist on OPNsense. use posix shell (/bin/sh) for automation if that is your issue.
f you have bash but other things fail, I would suggest to check the PATH environment variable.
Logged
siga75
Full Member
Posts: 187
Karma: 11
Re: bash: Command not found
«
Reply #3 on:
January 01, 2020, 10:34:40 am »
what Fabian said
echo $PATH
BTW: I hated not having bash, after installing sensei I realized it also provided bash shell, I am happy now
Logged
https://www.signorini.ch
Protectli Pfsense Mi7500L6 Intel 7Th Gen Core I7 7500U 16Gb Ddr4 Ram
512Gb Msata Ssd
6 X Intel Gigabit Ethernet
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: bash: Command not found
«
Reply #4 on:
January 07, 2020, 02:59:18 pm »
Because typing
# pkg install bash
is so hard?
Cheers,
Franco
Logged
siga75
Full Member
Posts: 187
Karma: 11
Re: bash: Command not found
«
Reply #5 on:
January 10, 2020, 08:15:33 am »
Quote from: franco on January 07, 2020, 02:59:18 pm
Because typing
# pkg install bash
is so hard?
LOL, I am quite new to opnsense/freebsd, I didn't realize it was available in the repositories, since I didn't see the option in the WUI, for installing new packages, I assumed there was some kind of restriction
Logged
https://www.signorini.ch
Protectli Pfsense Mi7500L6 Intel 7Th Gen Core I7 7500U 16Gb Ddr4 Ram
512Gb Msata Ssd
6 X Intel Gigabit Ethernet
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: bash: Command not found
«
Reply #6 on:
January 10, 2020, 09:22:40 am »
For portability with BSD in general we do not want bash in core because it would encourage contributors to write bash scripts which won't run if something goes bad with the packages which bash is one of.
And besides bash itself and readily available binary packages you can also install other software from the ports tree as OPNsense provides compilers in the base system.
# opnsense-code tools ports
# cd /usr/ports/your/software
# make install
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
bash: Command not found