I am trying to learn linux file permissions. In this context most of the things are clear to me except (character device) 'c' in crwxrwxrwx, (block device) 'b' in brwxrwxrwx. Wikipedia explains Character Device as:
Character special files or character devices provide unbuffered, direct access to the hardware device. They do not necessarily allow programs to read or write single characters at a time; that is up to the device in question.
and about block device as:
Block special files or block devices provide buffered access to hardware devices, and provide some abstraction from their specifics.[5] Unlike character devices, block devices will always allow the programmer to read or write a block of any size (including single characters/bytes) and any alignment.
This explanation is a bit too much technical for me. Can anyone kindly explain this in more simple manner? Regards
man -s 7 pipe
andman -s 7 socket
are helpful. In general, something likeman -k pipe
will do a keyword search and list a summary of helpful commands and functions. – Paul_Pedant Feb 18 '20 at 17:33