English 中文(简体)
壳牌——在PATH Variable增加价值
原标题:Shellscript - Adding a value in the PATH Variable
  • 时间:2010-06-18 17:03:35
  •  标签:
  • shell
  • path

在我的公司中,我们使用火鸟,每当我们安装在新的计算机中,我们需要增加火鸟类的路径。 我也想起用手法来增加这一价值。

问题回答

对我先前的回答表示歉意;由于我只谈到这个问题,我不认为需要你的解决办法。

如果我正确理解你的需要,你需要永久改变道路变数,变革需要按计算机进行。 如果是正确的,你需要改变包含路径变量的登记价值。 KongLMSystemCurrentControlSetControlSessionManager Environment 如果你想要它成为用户,则还有一份《香港汇辑》。 CU环境变量储存在香港环境中心。

如果你想要的话,你仍然可以使用一个简单的细数文件,但你必须利用reg子的指挥来改变登记处的设置,而不是为本届会议设定变量的固定指挥。 我认为,下面是你想要的三重档案。

REG ADD HKLMSystemCurrentControlSetControlSessionManagerEnvironment /v Path /t REG_EXPAND_SZ /d "%path%;directoryToAdd"

书写以下一行的文字符合你的需要(不需要指定口译员,也不必使文件可执行):

export PATH=$PATH:<custom_path>

之后,它就投了如下的伤口:

. script.sh

Don tabes to edit one of the script out at room time, such as ~/.bashrc 例如,<代码>/etc/profile。





相关问题
KornShell- Creating a fixed width text file

I need to create a simple fixed width text file in KornShell (ksh). My current attempt using printf to pad the string isn t working out very well. What s the shortest, cleanest way to create a fixed ...

unix find command

how to use the find command to find files/directories which are not matching the pattern. for eg: find <some options > -name "dontfile.txt" should give me output of all the find whose file ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

Case insensitive comparison of strings in shell script

The == operator is used to compare two strings in shell script. However, I want to compare two strings ignoring case, how can it be done? Is there any standard command for this?

1. 露台式照像

在Windows XP中,没有一时出现指挥时,是否有办法操作一种灰色文字? 我常常需要把“善待”(工作)与“灰色”同起来,即使我的文字没有产出,......

热门标签