Home > Article > Operation and Maintenance > How to modify the content of php file in linux
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 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
2. Use vim l.php to modify the content of the php file and press i Enter "Insert Mode"
3. Use the arrow keys to move the cursor. After the modification is completed, press ESC , then enter :wq to save.
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!