NFS home / .profile / 3 种风格的 UNIX:最佳实践?

发布于 2024-09-08 16:39:59 字数 170 浏览 3 评论 0原文

UNIX 的三种风格:Linux、Solaris、IRIX...一种 NFS 安装的主目录。

我希望根据我要连接的操作系统有一个(稍微)不同的 .profile 行为。我可以将一些东西组合在一起,但如果没有必要,我不想重新发明轮子。

是否有根据操作系统拆分 .profiles 部分的最佳实践?

Three flavors of UNIX: Linux, Solaris, IRIX... one NFS mounted home directory.

I'd like to have a (slightly) different .profile behavior based on the OS that I'm connecting to. I can hack something together, but I'd like to not re-invent the wheel if it's not necessary.

Is there a best practice for splitting out .profiles sections based on operating system?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

此岸叶落 2024-09-15 16:39:59
#!/bin/sh

case `uname` in
Linux*)
...
esac
#!/bin/sh

case `uname` in
Linux*)
...
esac
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文