Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does linux modify file read and write permissions?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

First, let's turn on the UBUNTU 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.

These are the details of how to modify linux files read-only. For more information, please pay attention to other related articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report