Now we are going to have some discussion about the directories and the file folder permission basic. In the linux OS, you need to log in as a super user to chane the file folder permission[root@localhost ~]# cd /
[root@localhost /]# ls
Lets have some knowledge about them:
Bin – binary file of user.
Boot – system boot related file.
Dev – system device file.
Etc – configuration file of all server.
Home – home dir of regular user.
Lib – File location of system library. The files needed to execute, located in /in and /sbin.
Media – Default mount point of system.
Mnt – mount point.
Opt – this is indicated as optional point.
Proc – System process related info (CPU, RAM, Processor etc.) is located here.
Root – the home directory of root user.
Run – Running data of service.
Sbin – root user system binary
Sys – Generally known as system.
Tmp – temporary files (Generally deleted after 10 years)
Usr – Installation location of third party software.
Var – generally known as variable file.
File folder permission :[root@localhost /]# ll
d rwx r-x r-x . 136 root root 8192 May 7 00:16 etc
1 2a 2b 2c 2d 3 4 5 6 7 8
1 >> File / dir types
2 >> File/dir persimmison.
2a >> User/owner permission.
2b >> Group permission.
2c >> Other permission.
2d >> Special permission
3 >> file/dir link (Refer to the figure. Here link is 136)
4 >> Owner of the file / dir
5 >> Group owner of file/dir.
6 >> Size of file / dir (byte)
7 >> modification date of file/dir
8 >> name of file /dir
Now in the next post I’m going to show you how to set permission of a file/folder.