What Is a Regular File in Linux?
Contents

The regular file is a most common file type found on the Linux system. It governs all different files such us text files, images, binary files, shared libraries, etc. You can create a regular file with the touch command: $ touch linuxcareer.com.

Is a text file a regular file?

Text files are regular files that contain information stored in ASCII format text and are readable by the user. You can display and print these files.

Is directory a regular file?

They’re text or binary data, called ‘regular files’ to distinguish them from other types like directories, symbolic links, sockets etc. It is not a directory, device file, block device, FIFO or socket. If you do an ls -l. The ones which start with a “-” are the files.

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