File permission and ownership is very important in linux system.
- (-) = regular file : text/js//html/css/any file
- (d) = directory : regular directory
- (l) = link file : ls -l /dev/stdin
- (b) = block devices : ls -l /dev/sda --> (CD/DVD/HDD/ISO/USB)
- (s) = socket : ls -l /sun/rpcbind.sock
- (p) = pipe file : ls -l /run/initctl
- (c) = character device : ls -l /dev/tty
Here, s - A socket file that is used to pass information between applications/process for communication purpose.
c - printer, sound card, virtual terminal, serial port, parallel port.
l - link file -->(softlink/symbolik link).