Nguyễn Tuấn Dương
New member
How do I make a text file read only in Linux?
Answer
You can alter a file’s permissions with the ‘
chmod ‘ command: Read-only to your UID (userid): chmod 400 <filename> Read-only to you and your GID (group): chmod 440 <filename>
Answer
You can alter a file’s permissions with the ‘
chmod ‘ command: Read-only to your UID (userid): chmod 400 <filename> Read-only to you and your GID (group): chmod 440 <filename>