File types for Linux
- Normal file
- Directory Files/Folders directory
- Equipment file Device
- Block Device File Block
- Character Device file code
- Piping file Pipe
- Connection File Link
In a Linux system, each user has read, write, and execute permissions on the file or directory.
different users have different access rights .
User type
- User owner/Master of the file
- The group owner of the file
- Other users of the system
ls-l command, displaying details of files and directories
Second line :-rw-r--r-- to the last line of drwxr-xr-x representing file types and file permissions
Total 10 bits, first bit : attribute symbol. Represents a file type
post 9-bit : Represents file permissions. The last 9 bits, each 3 for a group , represent different permissions for the above three types of users .
R:read read; w:write write; X:excute execute;-: no permissions.
Writable and readable
Permissions Modification:
chmod command (digital setting method)
(That is, every 3 bits, has a permission of 1, no permission is 0, with a binary representation, every 3 bits into decimal)
chmod Digital Permission file name
chmod 777 One.txt
Picture Permission modification:
1: log in as root user
2: Go to the folder to find the picture
3: Right-click, properties, permissions, modify, OK
Above.
Linux file types and permissions