redhat suse_查找在Solaris,Ubuntu,Suse或Redhat Linux上运行的应用程序的路径

redhat suse

redhat suse

If you have installed multiple versions of an application into your system, you may wonder which command is being run from the command line when you launch it. This is especially useful to figure out the path of php when running on a shared server, as many shared servers have both php4 and php5 installed.

如果您已在系统中安装了一个应用程序的多个版本,则您可能想知道启动该命令时正在从命令行运行哪个命令。 这对于找出在共享服务器上运行时php的路径特别有用,因为许多共享服务器都同时安装了php4和php5。

which <commandname>

哪个<命令名>

To find the path of the application, you can use the which command, followed by the executable that you would have run.

要查找应用程序的路径,可以使用which命令,后跟要运行的可执行文件。

Example:

例:

# which svn/usr/bin/svn

#其中svn / usr / bin / svn

# which php/usr/local/bin/php

#哪个php / usr / local / bin / php

翻译自: https://www.howtogeek.com/howto/ubuntu/find-path-of-application-running-on-solaris-ubuntu-suse-or-redhat-linux/

redhat suse

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值