Certain commands on the Terminal not recognized - terminal

I have Windows 10 as an operating system, when I use the Node.js command prompt and type in the commands 'ls' or 'touch' I get a notification that it is not recognized as an internal or external command. However, when I use Windows Powershell those commands seem to be working. Should I install MINGW64? I attached a picture of what I am experiencing enter image description here

Perhaps I misunderstand the question - but touch and ls are Linux terminal commands
It appears you are typing them in a windows command prompt window which would yield:-
C:\Users\xxx>ls
'ls' is not recognized as an internal or external command,
operable program or batch file.
(in PowerShell at least, ls works)

Related

why command are not recognized by the command prompt?

I have tried several times to type the command 'ls' at the command prompt of Windows 10 but it shows me that the command is not recognized as an internal or external command, an executable program or a batch file.
The "is" command is for Linux, not for Windows, and like Kraigolas said, the Windows OS command is "dir". Hope this helped.
The ls command is for linux and it's equivalent for windows command prompt is dir. But if you are more of a linux user then you can try using power-shell on windows where ls command works just like the way it works in linux. Power-shell is like a hybrid between windows command prompt and linux terminal.

'C:\Program' is not recognized as an internal or external command, operable program or batch file' error in Windows

I am getting this error "'C:\Program' is not recognized as an internal or external command,
operable program or batch file" for most of the commands that I run in PowerShell or command prompt. It appears when I run any code , no matter what language it is. In flutter, it appears 3 times and once in c or cpp. Though, it does not interrupt the program but I'm wondering what is causing this issue. Whenever I start command prompt. This error appears first and then command prompt works normally however it does not appear on starting PowerShell or Git bash. Any fix for this?

How can I let jenkins run `bash` command on windows?

I have setup a jenkins server on windows10 pro and installed ubuntu bash on the system. And I created a Executable windows batch command and put the command bash -c ls there. When executing this job I got below error:
c:\jenkins\workspaces>bash -c ls
'bash' is not recognized as an internal or external command,
operable program or batch file.
It says that bash is not recognized as an internal or external command. Then I tried to use the absolute path but still not work. The error is shown as below:
c:\jenkins\workspaces>C:\Windows\System32\bash.exe -c ls
'C:\Windows\System32\bash.exe' is not recognized as an internal or external command,
operable program or batch file.
I can run the command manually on windows. How can I configure this on jenkins? I need to run the build command from windows normal command window and in my build script it needs to launch a process inside bash.
You could install MsysGit, which includes bash, and in Jenkins you have to set the shell executable, which is the path to the sh.exe
You could also install cygwin, but i think this uses high amount of RAM for just running bash scripts.
similiar to what #Borislav said, a migrated shell might help, if you had mingw or msys2 and start your java -jar slave.jar from that bash console, you should be able to directly chose to execute shell, just considering it to be a linux node at your jenkins
Try to install git. Git hold a minimal bash environment which can help in your case.
https://git-scm.com/

External commands not available in gvim on windows

When starting a gvim session on windows 7, it appears that globally available commands like autopep8 or pylint cannot be executed. I.e. the command :!pylint opens up a console windows saying 'pylint' is not recognized as an internal or external command.
However, I can execute these commands from cmd.exe by just typing the respective names.
This is because I have added the path C:\Program Files (x86)\Python 3.5\Scripts; to the System Path environment variable. For some reason this is not picked up by the shell behind gvim.
The weird thing is that typing :echo $PATH shows a list or folders which includes C:\Program Files (x86)\Python 3.5\Scripts;.
I should also note that this problem does not occur when starting normal vim in a terminal like cmd.exe or git bash.
Any hints on what might be going wrong?

Why can Windows command prompt run this file?

I have a ./configure file that I'm supposed to run by putting it in the command prompt. It works when I run it in the git prompt but when I run it in the Windows command prompt it gives me:
C:\cygwin\home\doxygen\configure> configure
'configure' is not recognized as an internal or external command,
operable program or batch file.
Even though I'm in the correct directory (and running dir shows me that the file is there) it still stays that it cannot find the file. This is the same for all files that don't have an extension on them. Why does this happen and how can I get this to work?
./configure is not a program. It's more of a shell script usually. My analogy may not be good but consider it to be the equivalent of windows batch files (in this case you can say it's a .sh without the extension).
It will only run from a cygwin/unix shell.

Resources