Home > Backend Development > PHP Problem > Where is the Linux php file installation directory?

Where is the Linux php file installation directory?

藏色散人
Release: 2023-03-02 06:44:02
Original
4253 people have browsed it

The PHP file installation directory is generally in "/var/www" by default. If it is a customized installation, you can use the Linux command to search. The search command is "find / -name "*www*" ".

Where is the Linux php file installation directory?

Linux php file installation directory

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: find / -name " *www*".

Where is the Linux php file installation directory?

Extended information

Linux common commands

1. cd /home to enter the '/ home' directory'.

2. cd .. Return to the previous directory.

3. cd ../.. Return to the directory two levels above.

4. cd to enter your personal home directory.

5. cd ~user1 to enter your personal home directory.

6. cd - Return to the last directory.

7. pwd displays the working path.

8. ls to view the files in the directory.

9. ls -F View the files in the directory.

10. ls -l displays detailed information of files and directories.

11. ls -a displays hidden files.

12. ls *[0-9]* displays file names and directory names containing numbers.

13. tree displays the tree structure of files and directories starting from the root directory.

14. rm -f file1 deletes a file called 'file1'.

15. rmdir dir1 deletes a directory called 'dir1'.

16. rm -rf dir1 deletes a directory called 'dir1' and deletes its contents at the same time.

17. rm -rf dir1 dir2 Delete two directories and their contents at the same time.

18. mv dir1 new_dir renames/moves a directory.

cp file1 file2 Copy a file.

For more related knowledge, please visit PHP Chinese website!

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template