Home  >  Article  >  Backend Development  >  Where is the installation path of linux php

Where is the installation path of linux php

藏色散人
藏色散人Original
2020-07-11 09:49:423194browse

The linux php installation path generally defaults to /var/www if there is no custom installation. If it is a custom installation, you can use the "ind / -name "*www*"" command Find the installation path.

Where is the installation path of linux php

linux php installation path

Linux php installation directory without setting a custom installation, generally The default installation path is in /var/www. If it is a customized installation, you can only recall where it is often installed and slowly search for it. You can also use Linux commands to search. The search command is: find / -name "* www*".

Where is the installation path of linux php

Extended information

Linux common commands

1、cd /home 进入 '/ home' 目录' 。
2、cd .. 返回上一级目录 。
3、cd ../.. 返回上两级目录 。
4、cd 进入个人的主目录 。
5、cd ~user1 进入个人的主目录 。
6、cd - 返回上次所在的目录 。
7、pwd 显示工作路径 。
8、ls 查看目录中的文件 。
9、ls -F 查看目录中的文件 。
10、ls -l 显示文件和目录的详细资料 。
11、ls -a 显示隐藏文件 。
12、ls *[0-9]* 显示包含数字的文件名和目录名 。
13、tree 显示文件和目录由根目录开始的树形结构。
14、rm -f file1 删除一个叫做 'file1' 的文件' 。
15、rmdir dir1 删除一个叫做 'dir1' 的目录' 。
16、rm -rf dir1 删除一个叫做 'dir1' 的目录并同时删除其内容 。
17、rm -rf dir1 dir2 同时删除两个目录及它们的内容 。
18、mv dir1 new_dir 重命名/移动 一个目录 。
cp file1 file2 复制一个文件 。

For more related knowledge, please visit PHP Chinese website!

The above is the detailed content of Where is the installation path of linux php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn