我使用的是Windows 11。在终端中,常用的Linux命令不可用。因此,诸如chmod和vim之类的命令会返回如下命令行错误:
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
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?我时隔十年才使用 Windows,请多多包涵!