How to modify the content of php file in linux

angryTom
Release: 2020-02-05 17:44:38
Original
3841 people have browsed it

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!