Does LINUX/UNIX support any file types? If so, name them. Does LINUX/UNIX support file extensions?
What will be an ideal response?
Yes, LINUX/UNIX supports five file types. They are: ordinary file, directory, device/special file (block special and character special), symbolic link, and named pipe. BSD compliant LINUX/UNIX system support an additional file type, called socket. You can determine the type of a file by using the ls -l file_name command and observing the first character of the output line. The following characters are used to represent the file types.
- ordinary
d directory
b block special file (a block device)
c character special file (a character device)
l symbolic link
p named pipe (FIFO)
s socket
No, LINUX/UNIX does not support file extensions. Some LINUX/UNIX applications support/require file extensions. For example, C compilers require the .c extension, C++ compilers require the .cpp extension, and the Java compilers require the .java extension.