LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-08-2017, 03:03 AM   #1
cpatte7372
LQ Newbie
 
Registered: May 2017
Posts: 6

Rep: Reputation: Disabled
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
 
Old 05-08-2017, 03:12 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
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.
 
Old 05-08-2017, 03:23 AM   #3
cpatte7372
LQ Newbie
 
Registered: May 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-08-2017, 03:29 AM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
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!
 
Old 05-08-2017, 03:29 AM   #5
cpatte7372
LQ Newbie
 
Registered: May 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
Attached Thumbnails
Click image for larger version

Name:	shel.png
Views:	52
Size:	56.9 KB
ID:	24959  
 
Old 05-08-2017, 03:30 AM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
Quote:
Originally Posted by cpatte7372 View Post
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.
Old 05-08-2017, 03:43 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,923

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
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)
 
Old 05-08-2017, 03:49 AM   #8
cpatte7372
LQ Newbie
 
Registered: May 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
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]#
 
Old 05-08-2017, 03:53 AM   #9
cpatte7372
LQ Newbie
 
Registered: May 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-08-2017, 03:53 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,923

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
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.
Old 05-08-2017, 03:58 AM   #11
cpatte7372
LQ Newbie
 
Registered: May 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
pan64,

That was the correct answer... I was certain it was something as simple as that.

Thanks mate
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash error message when command string is quoted eldiener Programming 5 12-29-2013 11:39 AM
no error message from PERL when i use bash command visva Linux - Newbie 2 11-26-2009 05:47 PM
command not found error message dcarlis Linux - Newbie 3 10-21-2004 07:30 PM
Error Message gcc: Command not found Schmurff Fedora 2 09-27-2004 12:23 PM
bash: command not found error ksgill Linux - Newbie 10 07-01-2003 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration