简体   繁体   English

“ pwd”命令将在所有linux类型的linux上工作吗?

[英]“pwd” command will work all linux type of linux?

I have .sh file to run application. 我有.sh文件来运行应用程序。 In that file, I want to set server name dynamically instead of configuring every time. 在该文件中,我想动态设置服务器名称,而不是每次都配置。

I tried the following and it is working fine in CentOS. 我尝试了以下方法,它在CentOS中工作正常。

nohup /voip/java/jdk1.8.0_71/bin/java -server  -Xss256k -Xms500m -Xmx500m -DServerName=`pwd`/application com.application

But will it work with all type of the Linux and Unix version?? 但是它将适用于所有类型的Linux和Unix版本吗? (sorry, I am beginner to Linux). (对不起,我是Linux的初学者)。

Yes, it's part of the core commands: https://en.wikipedia.org/wiki/List_of_GNU_Core_Utilities_commands 是的,它是核心命令的一部分: https : //en.wikipedia.org/wiki/List_of_GNU_Core_Utilities_commands

As such, it will work with all GNU/Linux. 因此,它将与所有GNU / Linux一起使用。 It is also part of the Unix usual commands. 它也是Unix常用命令的一部分。

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

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