How to modify Linux file read-only

藏色散人
Release: 2020-05-25 10:32:04
Original
19623 people have browsed it

How to modify Linux file read-only

How to modify read-only files in Linux?

First we open the UBUNTU operating system.

Recommended: "linux tutorial"

How to modify Linux file read-only

Find the terminal window in the menu bar and click to enter.

How to modify Linux file read-only

We create a new file as an example and set it as a read-only file.

How to modify Linux file read-only

How to modify Linux file read-only

If you open a read-only file, read-only will be displayed.

How to modify Linux file read-only

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.

How to modify Linux file read-only

No prompt will be displayed when opening the file at this time. Belongs to normal mode.

How to modify Linux file read-only

chmod 222 test.txt is a file that is made writable but unreadable.

How to modify Linux file read-only

#When you open the file at this time, you will be reminded that it cannot be opened because it is not readable.

How to modify Linux file read-only

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!

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!