Link to home
Start Free TrialLog in
Avatar of Anthony Lucia
Anthony Lucia

asked on

/bin/bash

I am running Red Hat 6.x

I get the foolowing results from the following command:

[root@mmclnt1 bin]# cd /bin/bash
-bash: cd: /bin/bash: Not a directory

How do I install bash on my machine ?
ASKER CERTIFIED SOLUTION
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ThomasMcA2
ThomasMcA2

Are you sure it's not already installed? The command that you used will always return "Not a directory", even when bash is installed. That's because /bin/bash is an executable file, not a directory.

To run a script using bash, use this syntax:
bash your_script.sh

Open in new window

Do you get an error when you try that?