Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to restore linux files read-only

Shulou Source: shulou.com Published: 2022-05-31 11:21:43 10月02日 Update

Linux files only read how to restore, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Linux file read-only recovery method: 1, use "chmod 666 specify file" command to set read-only file to read-writable file; 2, use "chmod 222specify file" command to set read-only file to writeable but not readable file.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to restore linux file read-only

First, let's turn on the operating system.

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

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

If you open a read-only file, read-only is displayed.

Chmod 666test.txt, at this time to execute the command, the test file means test.txt,666 means to change to a readable and writable file.

There is no prompt to open the file at this time. It belongs to normal mode.

Chmod 222test.txt, which is a writable but unreadable file.

When you open the file at this time, you will be reminded not to open it because it is not readable.

What are the versions of Linux? the versions of Linux are Deepin, UbuntuKylin, Manjaro, LinuxMint, Ubuntu and so on. Among them, Deepin is one of the best-developed Linux distributions in China; UbuntuKylin is a derivative release based on Ubuntu; Manjaro is a Linux release based on Arch; LinuxMint's default Cinnamon desktop is similar to Windows XP's easy-to-use; Ubuntu is the Linux operating system based on desktop applications.

After reading the above, have you mastered the method of how to restore linux files read-only? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: File time command method version system release operating system content more desktop problem helpless for this reason for this reason meaning skills tutorials best Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi NVidia Redmi Huawei Microsoft