I'm running Windows 10, and have BASH terminal in VisualStudioCode. My problem is that commands such as LS do not work. After some googling, i found that using this command fixes it:
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
This however breaks some other stuff, and so, I copied output of echo $PATH
, amalgamated the result with above-mentioned export
command, and saved it into the file. Pasting resulting command into terminal fixes everything.
And I have to do that every single time I open new terminal, which is awkward.
Is there any way to add parts from the first export
command to PATH? I know about "Edit the enviroment variable" option in windows, but either that does not work, or i'm doing it wrong, so telling me how to apply, eg. /usr/bin
in there so that it works the same way as if I entered export PATH=/usr/bin
into command line would help. Eventually, is there perhaps a way to autorun specific command each time new terminal is opened? That would help too.
.bashrc
. Also, you can skip theecho
part if you extendPATH
instead of overwriting, like so:PATH=$PATH:/new/stuff/goes/here:/more/new/stuff
bash: cut: command not found
- any idea where does that come from?/etc
(the shell documentaion will tell you which files and their names).