ByteByteGo

Linux file permission illustrated.

๐Ž๐ฐ๐ง๐ž๐ซ๐ฌ๐ก๐ข๐ฉ
Every file or directory is assigned 3 types of owner:

๐Ÿ”นOwner: the owner is the user who created the file or directory.
๐Ÿ”นGroup: a group can have multiple users. All users in the group have the same permissions to access the file or directory.
๐Ÿ”นOther: other means those users who are not owners or members of the group.

๐๐ž๐ซ๐ฆ๐ข๐ฌ๐ฌ๐ข๐จ๐ง
There are only three types of permissions for a file or directory.

๐Ÿ”นRead (r): the read permission allows the user to read a file.
๐Ÿ”นWrite (w): the write permission allows the user to change the content of the file.
๐Ÿ”นExecute (x): the execute permission allows a file to be executed.

Over to you: chmod 777, good idea?

--
We just launched the all-in-one tech interview prep platform, covering coding, system design, OOD, and machine learning.

Launch sale: 50% off. Check it out: bit.ly/bbg-yt

#systemdesign #coding #interviewtips
.

6 days ago | [YT] | 2,055