简体   繁体   English

在bash中为GNU更改目录

[英]Changing directory in bash for GNU

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. 我从来没有使用过Linux,因此我对命令一无所知,但是,我需要在Win64环境中使用GNU才能使其中一种编程工具起作用。 I have downloaded the GNU from cygwin. 我已经从cygwin下载了GNU。 This package includes gcc and various commands and shells (sh, bash, etc.) that make the PC have a unix like environment. 该软件包包括gcc以及各种命令和shell(sh,bash等),这些命令和shell使PC具有类似于Unix的环境。

I have to change to the directory of the program code MyPrograms and type "make all". 我必须转到程序代码MyPrograms的目录,然后键入“ make all”。 On opening the terminal of cygwin i get this line >> -bash-4.1$ 在打开cygwin的终端时,我得到这条线>> -bash-4.1 $

Question is what is the command for changing to the directory MyPrograms;what do I type in after -bash-4.1$ 问题是切换到MyPrograms目录的命令是什么;在-bash-4.1 $之后键入什么?

If your MyPrograms folder is located at C:\\MyPrograms, then in Cygwin, type: 如果您的MyPrograms文件夹位于C:\\ MyPrograms,则在Cygwin中,键入:

cd /cygdrive/c/MyPrograms

Refer to this FAQ 请参阅此常见问题解答

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM