Types of Files in Linux
Types of Files in Linux
FILES IN
LINUX
BY - Gauri Yadav
LIST OF TOPICS
01 WHAT IS FILE
04 PRACTICAL IMPLEMENTAION
05 SUMMARY
What is a file?
In Linux, a file is a fundamental unit that serves as a container
for storing data, whether text, programs, configurations, or other
forms of information.
Files in Linux are organized and managed by the file system,
which defines the structure, access permissions, and location of
files on the storage devices. The file system is responsible for
maintaining the hierarchy of directories and files.
Common file types in Linux?
Red Hat Enterprise Linux (RHEL) accommodates seven file
types, with regular and directory files being the most
widespread. Regular files store everyday data, while directories
help organize this information. Additionally, block and character
special devices communicate with hardware, symbolic links act
as handy shortcuts, and less commonly used named pipes and
sockets facilitate inter-process communication.
Lets create new file add some content too and then check
Method 1: ls-l
Method 1: ls-l
Method 4: ls -l | grep ^d
Method 2: ls -l | grep ^b
Method 1: file v*
Method 2: ls -l | grep ^c
Method 2: ls -l | grep ^l
6. Socket:
A socket is a special file that is used to pass information
between applications and enables communication
between two processes. We can create a socket file
using the socket() system call. A socket file is located in
/dev of the root folder or you can use the find / -type s
command to find socket files.
YOU