Q. srwxr-xrw- is a __________
β
Correct Answer: (B)
unix domain socket file
Explanation: The first character can be :
d = directory
– = regular file
l = symbolic link
s = Unix domain socket
p = named pipe
c = character device file
b = block device file
The following characters can be :
r = read permission
w = write permission
x = execute permission
– = 0 permission
With x=1 / w=2 / r=4
The first column defines a directory, file, or link, the next three columns define the permissions for User, Group, and Other.
d = directory
– = regular file
l = symbolic link
s = Unix domain socket
p = named pipe
c = character device file
b = block device file
The following characters can be :
r = read permission
w = write permission
x = execute permission
– = 0 permission
With x=1 / w=2 / r=4
The first column defines a directory, file, or link, the next three columns define the permissions for User, Group, and Other.