Fast review mode: answers are shown by default so you can skim quickly. Hide them if you want to self-test.
Linux supports seven file types: Regular files: Also known as ordinary files, these contain programs, text, or data, and are located in a directory. Examples include text files, Docx files, programming files, binary files, image files, and compressed files. Directory files: These contain a list of files, and are shown in blue color. Symbolic link files: These are files that point to other files, and can be either directories or regular files. A symbolic link is a textual representation of the referenced file's path. Character special files: These represent devices, such as a mouse or keyboard. Block special files: These represent blocks. Socket files: These are a type of file. Named pipe files: These are a type of file.
Each file type in Linux has its own characteristics and attributes, and serves a specific purpose. You can use the file command to list all file types in a directory using the Regex-style ranges. For example, file * lists all file types in the current working directory. You can also use the following commands to see different file types: -b or –brief fetches a short description of the file type. -i or –mime shows the MIME file type. -s or –special-files reads special files. -z or –uncompress checks and displays information inside compressed files.
Related Test: Linux Basics Practice Test: Linux File System
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.