find the install path of some software in linux (ubuntu)

本文介绍了在Linux环境下如何查找已安装软件的路径,包括使用dpkg命令来列出与Python相关的所有文件路径,通过which命令找到Python解释器的具体位置,以及利用locate命令搜索整个系统中包含Python关键字的所有目录和文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

find the install path of some software
    like python:    

点击(此处)折叠或打开

  1. dpkg -L python
    or the start path:

点击(此处)折叠或打开

  1. which python
  2. /usr/bin/python    
    or find all the dir and file use 'locate'

点击(此处)折叠或打开

  1. warrior@warrior:~$ locate python | more -10
  2. /etc/python
  3. /etc/python2.7
  4. /etc/python3
  5. /etc/python3.4
  6. /etc/apparmor.d/abstractions/python
  7. /etc/python/debian_config
  8. /etc/python2.7/sitecustomize.py
  9. /etc/python3/debian_config
  10. /etc/python3.4/sitecustomize.py
  11. /home/warrior/.python-eggs
  12. --More--
    or want to display some system environment variable

点击(此处)折叠或打开

  1. warrior@warrior:~$ echo $PATH
  2. /usr/local/sbin:/usr/local/bin:
阅读(11) | 评论(0) | 转发(0) |
评论热议
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值