ubuntu16.04 - How to open a file under ubuntu? ?
滿天的星座
滿天的星座 2017-06-06 09:52:37
0
2
869

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?

滿天的星座
滿天的星座

reply all(2)
淡淡烟草味

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
给我你的怀抱

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!