First, the problem found
When installing Jdk.bin in Linux, I found the problem, error./config.sh:line 103:/home/jdk.bin:permission denied
Modify Permissions: chmod 775/home/jdk.bin
Second, the chmod command detailed
File/directory permission settings command: chmod used to change the access rights of a file or directory
usage 1: Its syntax format is: chmod [who] [opt] [mode] File/directory name
Where who represents an object, is one or a combination of the following letters:
U: Represents the file owner
G: Indicates the same group of users
O: Indicates another user
A: Indicates all users
Opt is representative of the operation and can be:
+: Add a permission
-: Cancel a permission
=: gives the given permission and cancels the original permission
Mode represents the permission:
R: Readable
W: Writable
X: Executable
Add read and Write permissions to the file a.txt for the same group of users: chmod g+rw a.txt
Usage 2: Digital setting method
The digital setting rule is simpler: chmod [mode] file name. Typically three digits: The first number represents the permissions of the file owner, the second number represents the permissions of other users who belong to the same user group as the file owner, and the third number represents the permissions of the other user group. The permissions are divided into three categories:
Read r=4=100
Write w=2=010
Executive x=1=001
Combined with a readable executable rx=5=4+1=101, readable writable rw=6=4+2=110, readable writable executable rwx=7=4+2+1=111, each decimal number represents a user's read and write executable permissions. 774 for binary words is 111 111 100 where 1 represents a permission 0 means no. 111 indicates that the user can read and write to the file, and the corresponding 100 indicates that the file has read-only permissions.
Linux installation JDK Permission denied and chmod detailed