I am using Windows 11. In the terminal, the usual Linux commands are not available. So commands such as chmod and vim return command line errors like:
vim : The term 'vim' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ vim ~/.bashrc
+ ~~~
+ CategoryInfo : ObjectNotFound: (vim:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
How can I fix this? I am using Windows after a gap of a decade, so kindly bear with me!
%PATH%and get quite a lot of the standard things https://gnuwin32.sourceforge.net/packages/coreutils.htm – Michael Harvey Mar 10 '23 at 15:49fmtoruniq. – Austin Hemmelgarn Mar 11 '23 at 00:56chmodis a (presumably thin) wrapper around a system call of the same name which does not even exist under Windows. You could try to write a program that does something semantically close on Windows (cygwin and msys do that), but it will always be a kludge.vim, on the other hand, is a perfectly normal user program which has nothing to do with the operating system it is running on and has, consequently, been ported to many, including Windows. – Peter - Reinstate Monica Mar 11 '23 at 21:40vendor\git-for-windows\usr\binfrom the zip-file and you also get quite a lot of the standard things, incl.awkorvim– Wernfried Domscheit Mar 12 '23 at 19:17vimand the vi improved text editor showed up in vanilla Windows 11, I'd stop using immediately it as it is not Windows 11. – Iuri Guilherme Mar 13 '23 at 14:33