Home  >  Article  >  Operation and Maintenance  >  How to modify the content of php file in linux

How to modify the content of php file in linux

angryTom
angryTomOriginal
2020-02-05 17:44:383775browse

The vim command is mainly used to modify the content of files in Linux, and nano can also be used. Let’s introduce in detail the method of modifying the content of PHP files in Linux!

How to modify the content of php file in linux

How to modify the content of php files in Linux

1. First use the ls command to view the files in the current directory,

You can see that there is a file called l.php in the php directory

How to modify the content of php file in linux

2. Use vim l.php to modify the content of the php file and press i Enter "Insert Mode"

How to modify the content of php file in linux

How to modify the content of php file in linux

3. Use the arrow keys to move the cursor. After the modification is completed, press ESC , then enter :wq to save.

How to modify the content of php file in linux

The above is the detailed content of How to modify the content of php file in linux. 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