在Linux中找到安装路径 [英] Find installation path in linux

查看:45
本文介绍了在Linux中找到安装路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这样做的时候

apt-get install <service-name>

 yum install <service-name>

服务会自动安装.如何找到安装任何服务及其配置文件的确切路径?

services are automatically installed. How to find exact path where any service is installed and their configuration files??

推荐答案

有很多找到此方法的方法,但我通常更喜欢以下方法

There are quite a few ways to find this but I usually prefer following

whereis <service-name>
e.g whereis java

要找到程序正在使用的路径,我使用

and to find from which path program is using, I use

which <service-name>
e.g which java

这篇关于在Linux中找到安装路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆