Which Linux File Types Do You Know?
Contents

How do I tell a file type in Linux?

To determine the file type of a file pass the name of a file to the file command . The file name along with the file type will be printed to standard output. To show just the file type pass the -b option. The file command can be useful as filenames in UNIX bear no relation to their file type.

What are the different file types in Linux?

Linux supports seven different types of files. These file types are the Regular file, Directory file, Link file, Character special file, Block special file, Socket file, and Named pipe file. The following table provides a brief description of these file types.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest