What file types exist in Linux and how do you identify them?
IntermediateConceptFilesystem Hierarchy, Inodes & Links
Answer
The first character of ls -l shows it: - regular, d directory, l symlink, c character device, b block device, p named pipe (FIFO), s socket.
ls -l /dev/sda /dev/null
file /usr/bin/ls # content type (ELF, script, text)
stat -c %F somefile
More on Filesystem Hierarchy, Inodes & Links
Explain the purpose of the main top-level directories in the FHS.BeginnerWhat is the "/usr merge"?IntermediateWhat are /proc and /sys?BeginnerWhat is an inode? What does it store and what does it NOT store?BeginnerA disk shows free space but you get "No space left on device". Why?IntermediateWhat is a hard link?Beginner