开发者

what is the script command for /etc on ubuntu

开发者 https://www.devze.com 2023-02-09 02:32 出处:网络
i need to access /etc through script command in ubuntu. for example, home is${user.home} and tomcat home is ${catalina.home}开发者_如何学Python, if i wanted to access /etc what should it be? also if

i need to access /etc through script command in ubuntu. for example, home is ${user.home} and tomcat home is ${catalina.home}开发者_如何学Python, if i wanted to access /etc what should it be? also if i wanted to access a custom folder under /etc, how should i do it? do i have to set up an environment variable to access it?

thanks in advance....


No need to use a variable, just use "/etc". All *nix systems have it, it's pretty much guaranteed to exist.


I would declare another variable ${xxxservice.etc} because you never know when someone (or some distribution group) will have moved your configuration (etc) directory to some other location other then "/etc".

My 2 cents.

0

精彩评论

暂无评论...
验证码 换一张
取 消