在 bash 中更改 GNU 的目录

发布于 2025-01-06 14:38:54 字数 303 浏览 4 评论 0原文

我从未使用过 Linux,因此对命令一无所知。但是,我需要使用 GNU for win64 环境才能使其中一种编程工具发挥作用。我已经从 cygwin 下载了 GNU。该软件包包括 gcc 和各种命令以及 使 PC 具有 unix 的 shell(sh、bash 等) 喜欢环境。

我必须更改到程序代码 MyPrograms 的目录并输入“make all”。 打开 cygwin 的终端后,我得到这条线 >> -bash-4.1$

问题是切换到 MyPrograms 目录的命令是什么;在 -bash-4.1$ 之后输入什么

I have never worked with Linux and hence I am ignorant in the commands.However, I need to use the GNU for win64 environment for one of the programming tools to function. I have downloaded the GNU from cygwin. This package includes gcc and various commands and
shells (sh, bash, etc.) that make the PC have a unix
like environment.

I have to change to the directory of the program code MyPrograms and type "make all".
On opening the terminal of cygwin i get this line >> -bash-4.1$

Question is what is the command for changing to the directory MyPrograms;what do I type in after -bash-4.1$

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悟红尘 2025-01-13 14:38:54

如果您的 MyPrograms 文件夹位于 C:\MyPrograms,则在 Cygwin 中键入:

cd /cygdrive/c/MyPrograms

请参阅此 常见问题解答

If your MyPrograms folder is located at C:\MyPrograms, then in Cygwin, type:

cd /cygdrive/c/MyPrograms

Refer to this FAQ

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文