How to modify read-only files in Linux?
First we open the UBUNTU operating system.
Recommended: "linux tutorial"
Find the terminal window in the menu bar and click to enter.
We create a new file as an example and set it as a read-only file.
If you open a read-only file, read-only will be displayed.
chmod 666 test.txt. At this time, execute the command. The test file is test.txt. 666 means to change it to a readable and writable file.
No prompt will be displayed when opening the file at this time. Belongs to normal mode.
chmod 222 test.txt is a file that is made writable but unreadable.
#When you open the file at this time, you will be reminded that it cannot be opened because it is not readable.
The above is the detailed content of How to modify Linux file read-only. For more information, please follow other related articles on the PHP Chinese website!