Linux - File Permissions

.There are 3 different permissions ​you can have in Linux. 

  1. ​Read, this allows someone to ​read the contents of a file or folder. 
  2. ​Write, this allows someone to ​write information to a file or folder. 
  3. ​Execute, this allows someone to execute a program. 

Let’s take a look at this with the ls command. ​We’ll use the long flags so we ​can see the permissions on the file. Pasted image 20260622184129 ​The first trio refers to ​the permission of the owner of the file. ​The second trio refers to ​the permission of the group that this file belongs to. ​The last trio refers to ​the permission of all other users. ​The r stands for readable, ​w stands for writable, ​and x stands for executable

  • Like in binary, if a bit is set, ​then we say that it’s enabled. 
  • ​For our permissions, if a bit is a dash, it’s disabled.
  • ​If it has something other than a dash, it’s enabled.