当您希望临时切换目录然后返回原始目录时,通常使用此目录功能。
The directory functionality is most often used when you want to temporarily change your directory and then go back to the original directory.
通过切换目录并再次压入目录,您可以更清楚地看到这点(请参见清单7)。
You can see this more clearly by changing the directory and pushing it again (see Listing 7).
通常,成功的目录切换将不会产生输出,只会产生一个新的、很可能更改过的提示。
Normally, a successful directory change results in no output other than a new, and possibly changed, prompt.
将一个连字符(-)作为参数意味着切换到前一个工作目录。
A single hyphen (-) as a parameter means to change to the previous working directory.
当两个目录路径只有一个区别(比如一个单词不同)时,这个是从旧目录切换到新目录的一种简单方法。
It's a simple way of switching from an old directory to a new one when the two directory paths have only one difference, such as a single word.
在管道符后面,切换到另一个目录,然后从标准输入提取字节流。
After the pipe, change to a different directory and then extract the byte stream again from the standard input.
例如,假设在新年的开始,您希望将应用程序切换到新的子系统,以便于目录管理。
For example, imagine that at the start of the New Year (after all the confetti has been cleaned up) you want to switch your application over to a new subsystem for inventory management.
大部分需要的组件使用make系统,可以通过切换到未打包的源代码所在的目录来在您的系统上编译和安装,如清单4所示。
Most of the needed components use the make system and can be compiled and installed on your system by switching to the directory of the unpacked source code, as shown in Listing 4.
or g的每个用户都必须将目录切换到(cd)开始时的安装位置并进行用户设置。
Each OpenOffice.org user must change directory (CD) to the base install location and run the user setup.
然后切换到新创建的openssh目录。
如果您最后需要或者希望切换到一个更新的或者更旧的Perl版本,那么您只需删除该符号链接,并重新创建一个指向不同目录的符号链接即可。
If you eventually need or want to switch to a newer or older version of Perl, you can simply delete the symbolic link and recreate it to point to a different directory.
切换到Variables选项卡,编辑MQ _ INSTALL_ROOT环境变量来指向您的WebSphere MQ安装目录。
Switch to the Variables TAB, and edit the MQ_INSTALL_ROOT environment variable to point your WebSphere MQ installation directory.
接下来,打开命令提示符,切换到SpringProject4目录,并在命令提示符下输入以下命令。
Next, open up the command prompt and change the directory to SpringProject4 and type the following at command prompt.
将恢复系统根目录切换为sysroot,以便您可以访问问题服务器系统的根文件系统。
Switch your rescue system root to your sysroot so that you can access the root file system of the problem server system.
在安装了Geronimo 之后,打开命令行控制台并切换到 GERONIMO_HOME/bin目录,然后运行startup.sh。
With Geronimo installed, open a command-line console and change to the GERONIMO_HOME/bin directory, then run startup.sh.
如果要从控制台command -shell中启动服务端的话,打开shell(或者在windows系统中叫做命令提示行),切换到FinchSync目录下并敲入一下命令来启动服务端。
To start the server from a command-shell, open the shell (or so called 'DOS-box' on Windows systems), change to the 'FinchSync' directory and start the server using the following command.
切换到保存.gem的目录,并输入geminstallstreamlined。
Change into the directory where you saved the.gem and type gem install streamlined.
切换到由cvs创建的Anacron目录。
单击“ Add ”并切换到在上面配置的安装阶段所安装的JRE目录,如图3所示。
Click Add and navigate to the JRE directory of the SDK you installed during the installation phase of the configuration above, as shown in Figure 3.
您可以使用这两个变量实现在两个目录之间的快速切换,如清单7所示。
You can use both variables to quickly go back and forth between two directories, as shown in Listing 7.
清单16展示了两个目录之间的切换。
要在目录和检索结果间切换,只需单击左窗格下方的按钮即可。
To move between the contents and search results, click the buttons at the bottom of the left pane.
您看到了如何使用绝对路径和相对路径更改目录,如何显示所在的工作目录,以及如何在两个目录之间来回切换。
You saw how to change directories using the absolute path and the relative path, and you learned how to display the working directory you are in and toggle back and forth between two directories.
输入下面的命令,将当前目录切换到发布目录中的bin子目录。
Change the current directory to the bin subdirectory in the release directory by entering the following.
正如您可以从系统的不同目录中执行程序一样,您也可以使用cd命令来切换当前工作目录。
Just as you can execute programs from various directories in the system, so too can you change your current working directory using the CD command.
您看到了引用主目录的不同方法,了解了鲜为人知的cd转移特性,该特性允许替换当前路径中的字符串并切换到新路径。
You saw different ways of referring to home directories, and you learned about the little-known CD shuffle, which allows you to substitute a string in your current path and switch to a new path.
切换到sphinx 4 - beta目录,然后切换到lib子目录。
Change to the sphinx4-beta directory, then to the lib subdirectory.
使用这个cddashback的结果是:如果两次输入该命令,就可以在两个目录之间来回切换。
A consequence of this CD dashback is that if you enter it twice, you can toggle back and forth between two directories.
现在切换到包含新下载的内核的目录中。
Now change into the directory containing the newly downloaded kernel.
现在切换到包含新下载的内核的目录中。
Now change into the directory containing the newly downloaded kernel.
应用推荐