1

I go to the directory containing the file on terminal and enter this command google-chrome index.html and get this error -bash: google-chrome: command not found

3
  • What OS are you using? I think this is a duplicate: superuser.com/questions/350309/… Commented Nov 21, 2019 at 17:34
  • Kind of duplicate - not the same. This one cannot find google-chrome. The other is issuing the command with --args and not working. Commented Nov 21, 2019 at 17:44
  • If it works, mark it as correct answer. Commented Nov 21, 2019 at 17:47

1 Answer 1

2

google-chrome not found should be self-explanatory.

Run this on terminal:

which google-chrome

Use the output as command.

In my Ubuntu, google-chrome is placed here:

/usr/bin/google-chrome

So, in my case I would run:

/usr/bin/google-chrome index.html

If the output of 'which google-chrome' command is empty, you should install google-chrome first.

Considering your comment, perhaps the process has another name. With chrome running, execute in terminal:

ps  -ef | grep chrome

In my output it comes like:

username 32276 22430 0 14:03 ? 00:00:12 /opt/google/chrome/chrome

So, if I run:

/opt/google/chrome/chrome index.html 

Chrome will start and open the index.html.

Check your output and adapt.

Sign up to request clarification or add additional context in comments.

2 Comments

Ran which google-chrome command; no response. Chrome is installed already, in fact i am commenting from google chrome right now.
Check my edit mate. I updated it. Let me know if it helped.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.