Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-08-2017, 03:03 AM
|
#1
|
LQ Newbie
Registered: May 2017
Posts: 6
Rep: 
|
Keep on getting error message Bash Command Not Found
Hello Community,
You will probably notice from the question I'm very new to Linux.
Each time I enter any command I keep on getting the error message Bash command not found.
My suspicion is that I'm not in the right directory, however I could be wrong.
Can someone please let me know how to overcome this problem?
[Expert@chkptvmaa:0]# save config
bash: save: command not found
[Expert@chkptvmaa:0]# show command
bash: show: command not found
[Expert@chkptvmaa:0]# show all
bash: show: command not found
[Expert@chkptvmaa:0]# show commands
bash: show: command not found
[Expert@chkptvmaa:0]#
Thanks
Carlton
|
|
|
05-08-2017, 03:12 AM
|
#2
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,613
|
Bash is telling you that commands named save and show do not exist in any location included in the default path of the logged in user. Try cat instead of show, and touch instead of save, and you shouldn't get command not found messages. Try 'echo $PATH' to see the locations bash tried to find save and show commands to run.
|
|
|
05-08-2017, 03:23 AM
|
#3
|
LQ Newbie
Registered: May 2017
Posts: 6
Original Poster
Rep: 
|
Mazda,
Thanks for responding. I get the following when I type echo PATH
[Expert@chkptvmaa:0]# echo $PATH
/opt/CPinfo-10/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/CPshrd-R77/bin:/opt/CPshrd-R77/util:/opt/CPshrd-R77/web/Apache/2.2.0/bin:/opt/CPsuite-R77/fw1/bin:/opt/CPsuite-R77/fw1/oracle_oi/sdk:/opt/CPsuite-R77/fg1/bin:/opt/CPda/bin:/opt/CPppak-R77/bin:/opt/CPportal-R77/webis/bin:/opt/CPportal-R77/portal/bin:/opt/CPrt-R77/bin:/opt/CPuepm-R77/bin:/opt/CPuepm-R77/engine/jre/bin:/opt/CPshrd-R77/database/postgresql/bin:/opt/CPcvpn-R77/bin:/opt/CPSmartLog-R77/bin:/home/admin/bin
[Expert@chkptvmaa:0]#
What do you suggest?
Cheers
|
|
|
05-08-2017, 03:29 AM
|
#4
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,389
|
There is nothing to suggest, that is simply telling you where bash will look to find commands, and in what order.
I would suggest that you do some reading to become familiar with the Linux operating system. Otherwise you will not know what questions to ask, and will not understand many of the answers you receive.
A very good place to start is with the LINUX: Rute User's Tutorial and Exposition.
Welcome to LQ, and good luck!
|
|
|
05-08-2017, 03:29 AM
|
#5
|
LQ Newbie
Registered: May 2017
Posts: 6
Original Poster
Rep: 
|
Hell Mazda,
According to the following guide http://dl3.checkpoint.com/paid/66/66...86a7a&xtn=.pdf should I point the directory to cd /bin/bash and I should be able to issue the commands, see attachment for a screen shot
|
|
|
05-08-2017, 03:30 AM
|
#6
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,613
|
Quote:
Originally Posted by cpatte7372
What do you suggest?
|
Tell us what it is you are trying to accomplish with those non-existent save and show commands. You could also try the help command.
|
|
2 members found this post helpful.
|
05-08-2017, 03:43 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,678
|
it is not related to bash anyhow. You need to execute clish first and show/save will work in it. Just read the pdf you posted (page 20)
|
|
|
05-08-2017, 03:49 AM
|
#8
|
LQ Newbie
Registered: May 2017
Posts: 6
Original Poster
Rep: 
|
So, I issued the clish first as you suggested, but it didn't work:
[Expert@chkptvmaa:0]# clish save config
Usage-
clish [-d DebugLevel -i -l ExtLck -s -o OutFmt { -c Cmd | -f File }]
-c Cmd ;Single command to execute.
-d N ;Debug Level in which shell should operate.
-f File ;File to load configuration from.
-i ;Ignore cmd failure in batch and continue.
-l ExtLck ;Use the given lock-id.
-o OutFmt ;Output format (pretty, xml, structured).
-s ;Issue 'save' at the end.
[Expert@chkptvmaa:0]#
|
|
|
05-08-2017, 03:53 AM
|
#9
|
LQ Newbie
Registered: May 2017
Posts: 6
Original Poster
Rep: 
|
Hi Mazda,
The following didn't work either:
[Expert@chkptvmaa:0]# clish show commands
Usage-
clish [-d DebugLevel -i -l ExtLck -s -o OutFmt { -c Cmd | -f File }]
-c Cmd ;Single command to execute.
-d N ;Debug Level in which shell should operate.
-f File ;File to load configuration from.
-i ;Ignore cmd failure in batch and continue.
-l ExtLck ;Use the given lock-id.
-o OutFmt ;Output format (pretty, xml, structured).
-s ;Issue 'save' at the end.
I'm sure there is something very simple that I'm missing here....
Cheers
|
|
|
05-08-2017, 03:53 AM
|
#10
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,678
|
I would first try to execute clish only and next comes save or whatever....
or clish -c command as you posted it.
|
|
2 members found this post helpful.
|
05-08-2017, 03:58 AM
|
#11
|
LQ Newbie
Registered: May 2017
Posts: 6
Original Poster
Rep: 
|
pan64,
That was the correct answer... I was certain it was something as simple as that.
Thanks mate
|
|
|
All times are GMT -5. The time now is 05:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|