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?
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.
Use the find command to view the file storage path
Open with editor
I don’t know what editor you have installed! Most systems will definitely come with vi by default
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.