In this topic, you will learn about, the file systems in UNIX and Types of UNIX file systems.
UNIX Operating System uses a hierarchical file system structure where in this structure all files stored in a base or root directory. In UNIX, the root is at the base of the file system and other directory placed as child directory form.
UNIX file structure allows representing files or directories. In UNIX, we can display the current path or present working directory with the help of the PWD command.
Types of UNIX file system:
UNIX Operating System offers a facility to create different types of files, Binary file, Text file, Program file, Random access file, and device file.
All the above files use the CAT command for the creation and by default provide common permission for each file. And if you want to specify different permissions then use the CH-more command.
- Binary file: It represent .GIF, .JPG, .EXE files. By default, the binary file generates automatically.
- Text file: it uses the “.txt” extension to represent any file. The text files can be edited, modified, or display directly.
- Program file: It specify shell script. It use.SH, DSH, .C, .JAVA, .CPP extension.
- Random access file: It allows accessing file structure or elements randomly. It creates with the help of a VI-editor.
- Device/System file: It creates automatically when the UNIX program install. It supports internal or external commands.
Comment below if you have queries related to the above article file systems in UNIX and Types of UNIX file systems.