Git Bash bash: open: command not found
bash: open: command not found
This error message is trying to tell you that there is no such command called "open". There's nothing wrong with the README.md
.
- OSX -
open
is a universal opener in OSX - Linux - has
xdg-open
- Windows - use
start
But you don't need to take the instructions literally. It's not really important how you open the readme file. You can open it with the less
command to view the content inside the terminal, or you can open it with notepad
for editing in a text editor.
open
is a linux specific command for Git Bash
You can access your file using the start
command likestart filename.extension
this will open your file using Notepad if you are using Windows 10.
To access file with some text editor you can simply write the command as start texteditorname filename.extension
.
To access file with VS Code just simply type start code filename.extension
.
To access file with ATOM just simply type start atom filename.extension
.
I had the same problem at first when I started using Git Bash in my Windows computer.I wanted to open a folder on my Desktop.I specified the current directory, which was cd Desktop/test
and then I gave the command open .
to open the 'test' file, and I received bash: open: command not found
.I searched through the internet to find a way to open the file, and then finally I tried this one and it worked.
Solution :
- Specify the root directory of the file ->
cd Desktop
- use "start" keyword and give the file name that you want to open ->
start test