简体   繁体   English

当我包含git bash命令行时,pwd在Windows中不起作用?

[英]pwd doesn't work in windows when I include the git bash command line?

I add the bin of git bash into my path in windows7 for the purpose of using linux command in windows. 我将git bash的bin添加到Windows7的路径中,目的是在Windows中使用linux命令。 Other commands like ls, mkdir work fine but when I run "pwd" windows can't execute it. 其他命令,例如ls,mkdir都可以正常运行,但是当我运行“ pwd”时,Windows无法执行它。 I found there is no pwd.exe in the bin directory. 我发现bin目录中没有pwd.exe。 So I want to ask where I could download this file or if there is any better way to fix it? 因此,我想问一下我可以在哪里下载此文件,或者是否有更好的修复方法? Thanks. 谢谢。

in windows de equivalent command for pwd is path. 在Windows中,pwd的等效命令是path。 Change pwd with path 用路径更改密码

A better way of using linux commands on windows is using Cygwin. 在Windows上使用linux命令的一种更好的方法是使用Cygwin。 It will not only allow you to run pwd and other linux commands but it will also make your windows command line as powerful as the linux terminal. 它不仅允许您运行pwd和其他linux命令,而且还使Windows命令行功能与linux终端一样强大。

Check out the link below: https://www.cygwin.com 查看以下链接: https : //www.cygwin.com

对于与Terminal等效的Windows中的命令提示符 ,可以使用cd ,代替pwd ... cd ,而使用dir代替ls

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 调用shell脚本时bash中的exec命令不起作用 - exec command in bash doesn't work when calling a shell script BASH:grep 在 shell 脚本中不起作用,但 echo 显示正确的命令并且它在命令行上起作用 - BASH: grep doesn't work in shell script but echo shows correct command and it works on command line Curl命令在bash脚本中不起作用 - Curl command doesn't work in bash script 为什么正则表达式在 bash/ksh 中不起作用,而在命令行中却可以正常工作 - Why Regex doesn't work in bash/ksh while it works fine in command line Linux bash脚本无法正常运行,但是在命令行运行时一切正常 - Linux bash script doesn't run correctly, but when run at the command line everything is fine 当调用`shell`以显示Bash命令的输出时,Tmux不显示换行符 - Tmux doesn't show line breaks when calling `shell` to display output from Bash command bron脚本中的一个特定命令在由cron运行时不起作用,所有其他命令都可以 - one particular command in bash script doesn't work when run by cron, all other commands do 在 Docker 中安装 Rust 工具链时,Bash `source` 命令不起作用 - When installing Rust toolchain in Docker, Bash `source` command doesn't work 我试图阻止在 BASH 中执行命令.. 并不总是有效 - I'm trying to prevent the execution of a command in BASH.. Doesn't work always Bash 超时命令在脚本中不起作用 - Bash timeout command doesn't work within a script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM