Home  >  Q&A  >  body text

ubuntu16.04 - How to open a file under ubuntu? ?

For example, I want to open the php.ini file and the httpd.conf file of apache, but I forgot where to install these two files. How should I find and open these two files in this case?

滿天的星座滿天的星座2691 days ago875

reply all(2)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-06-06 09:54:37

    Use the find command to view the file storage path

    find / -name "php.ini"
    find / -name "httpd.conf"

    Open with editor

    I don’t know what editor you have installed! Most systems will definitely come with vi by default

    vi path/php.ini path/httpd.conf

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-06-06 09:54:37

    If you install the software using apt-get (apt), you can search the Internet for the default installation path of the software. Also pay attention to the Ubuntu version, which is not necessarily the same, and then just remember the path. Generally, configuration files are in the /etc/ directory.

    reply
    0
  • Cancelreply