SlideShare a Scribd company logo
2
Most read
5
Most read
12
Most read
Types of Files in Linux
Amar Jukuntla
LINUX | Amar Jukuntla | Assistant Professor | CSE 1
Content
• Recap
• Linux Files
• Ordinary or Regular File
• Directory
• Character special file
• Block special file
• Symbolic link
• Named pipe
• Socket
• Summary
LINUX | Amar Jukuntla | Assistant Professor | CSE 2
Recap
• Absolute Path
• Relative Path
• Linux Operating System
• Directory
LINUX | Amar Jukuntla | Assistant Professor | CSE 3
Linux Files
• Types of files
• Regular Files
• Directory Files
• Link
• Special Files
• Socket
• Pipe
LINUX | Amar Jukuntla | Assistant Professor | CSE 4
Regular File
• Regular files are called normal files or ordinary files.
• A large majority of the files found on UNIX and Linux systems are
ordinary files.
• Ordinary files contain ASCII (human-readable) text, executable
program binaries, program data, and more.
• Regular files start with - .
LINUX | Amar Jukuntla | Assistant Professor | CSE 5
Directories
• A directory is a binary file used to track and locate other files and
directories.
• The binary format is used so that directories containing large
numbers of filenames can be search quickly.
• First Character in File Listing d.
LINUX | Amar Jukuntla | Assistant Professor | CSE 6
Device Files or Special Files
• Device or special files are used for device I/O on UNIX and Linux
systems.
• They appear in a file system just like an ordinary file or a directory.
• Linux systems only provide one special file for each device.
• First Character in File Listing c
• Mechanism used for input and output, such as files in /dev.
LINUX | Amar Jukuntla | Assistant Professor | CSE 7
Links
• A link is a tool used for having multiple filenames that reference a
single file on a physical disk. They appear in a file system just like an
ordinary file or a directory.
• Like special files, links also come in two different flavors. There are
hard links and symbolic links.
• Link files are represented with l.
LINUX | Amar Jukuntla | Assistant Professor | CSE 8
Continue…
• Hard Link files
• Hard links do not actually link to the original file.
• Instead they maintain their own copy of the original file's attributes (i.e.
location on disk, file access permissions, etc.).
• If the original file is deleted, its data can still be accessed using the hard link.
• Symbolic Link Files
• Symbolic links contain a pointer, or pathname, to the original file.
• If the original file is deleted, its data can no longer be accessed using the
symbolic link, and the link is then considered to be a stale link.
LINUX | Amar Jukuntla | Assistant Professor | CSE 9
Pipes
• A special file that allows processes to communicate with each other
without using network socket semantics.
• Pipes are tools that allow two or more system processes to
communicate with each other using a file that acts as a pipe between
them.
• This type of communication is known as inter process communication
, or IPC for short.
• Pipes are represented with p.
LINUX | Amar Jukuntla | Assistant Professor | CSE 10
Sockets
• Sockets are also tools used for inter process communication.
• The difference between sockets and pipes is that sockets will facilitate
communication between processes running on different systems,
or over the network.
• A special file that provides inter-process networking protected by the
file system’s access control.
• Sockets are represented with s.
LINUX | Amar Jukuntla | Assistant Professor | CSE 11
Summary
File Type First Character in File
Listing
Description
Regular file - Normal files such as text, data, or executable files
Directory d Files that are lists of other files
Link l A shortcut that points to the location of the actual file
Special file c Mechanism used for input and output, such as files in
/dev
Socket s A special file that provides inter-process networking
protected by the file system’s access control
Pipe p A special file that allows processes to communicate
with each other without using network socket
semantics
LINUX | Amar Jukuntla | Assistant Professor | CSE 12

More Related Content

PPTX
System calls
PDF
Complete dbms notes
PPT
1. Introduction to DBMS
PDF
Serializability
PPTX
Structure of operating system
PDF
CS9222 Advanced Operating System
PDF
Unit II - 2 - Operating System - Threads
PPT
ADO .Net
System calls
Complete dbms notes
1. Introduction to DBMS
Serializability
Structure of operating system
CS9222 Advanced Operating System
Unit II - 2 - Operating System - Threads
ADO .Net

What's hot (20)

PPTX
TCP/IP Model
PPT
Memory management
PPT
Dbms relational model
PPTX
Multiprogramming&timesharing
PPTX
Congestion control
PPT
3 Tier Architecture
DOCX
Concurrency Control Techniques
PPTX
File allocation methods (1)
PPTX
Ooad unit – 1 introduction
PPTX
Challenges of Conventional Systems.pptx
PDF
PDF
Database recovery techniques
PPT
Distributed Processing
PPTX
Chapter 8 Operating Systems silberschatz : deadlocks
PPTX
Unit5 Cloud Federation,
PPT
Use Case Diagram
PPTX
Distributed operating system
PPTX
Relational database
PPT
multiprocessors and multicomputers
PPTX
Client Server Architecture ppt
TCP/IP Model
Memory management
Dbms relational model
Multiprogramming&timesharing
Congestion control
3 Tier Architecture
Concurrency Control Techniques
File allocation methods (1)
Ooad unit – 1 introduction
Challenges of Conventional Systems.pptx
Database recovery techniques
Distributed Processing
Chapter 8 Operating Systems silberschatz : deadlocks
Unit5 Cloud Federation,
Use Case Diagram
Distributed operating system
Relational database
multiprocessors and multicomputers
Client Server Architecture ppt
Ad

Similar to Types of files (20)

PPTX
MODULE 3.1 updated-18cs56.pptx
PPTX
Unix & Linux File System in Operating System
PPT
2ab. UNIX files.ppt JSS science and technology university
PPT
Karkha unix shell scritping
PDF
Operating Systems - File Systems
ODP
Linux introduction-commands2338
ODP
Linux introduction-commands2338
ODP
Linux Introduction (Commands)
PDF
Unix files
PPTX
Unix / Linux Operating System introduction.
DOCX
Linux File System.docx
PPTX
File types atul namdeo
PPT
Unit 7
PPTX
Linux Systems Programming: File Handling
PPTX
Network and System Administration Power Point
PDF
AOS Lab 1: Hello, Linux!
PPT
Basic linux day 3
ODP
Nguyễn Vũ Hưng: Basic Linux Power Tools
PDF
1 using linux_tools
PPT
cisco
MODULE 3.1 updated-18cs56.pptx
Unix & Linux File System in Operating System
2ab. UNIX files.ppt JSS science and technology university
Karkha unix shell scritping
Operating Systems - File Systems
Linux introduction-commands2338
Linux introduction-commands2338
Linux Introduction (Commands)
Unix files
Unix / Linux Operating System introduction.
Linux File System.docx
File types atul namdeo
Unit 7
Linux Systems Programming: File Handling
Network and System Administration Power Point
AOS Lab 1: Hello, Linux!
Basic linux day 3
Nguyễn Vũ Hưng: Basic Linux Power Tools
1 using linux_tools
cisco
Ad

More from Amar Jukuntla (19)

PDF
Singly linked list
PPTX
Hashing
PPTX
Planning
PDF
PDF
Problem Solving
PPTX
Intelligent Agents
PPTX
Introduction
PPTX
PPTX
Sorting
PPTX
Sorting
PPTX
Nature of open source
PPTX
Linux Directory System: Introduction
PPTX
Introduction to Data Structures
PPTX
Learning
PDF
First Order Logic resolution
PDF
First Order Logic
PDF
Agents1
PPTX
Need of object oriented programming
Singly linked list
Hashing
Planning
Problem Solving
Intelligent Agents
Introduction
Sorting
Sorting
Nature of open source
Linux Directory System: Introduction
Introduction to Data Structures
Learning
First Order Logic resolution
First Order Logic
Agents1
Need of object oriented programming

Recently uploaded (20)

PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
web development for engineering and engineering
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Welding lecture in detail for understanding
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Structs to JSON How Go Powers REST APIs.pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPT
Project quality management in manufacturing
PPTX
Geodesy 1.pptx...............................................
PPTX
Construction Project Organization Group 2.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Operating System & Kernel Study Guide-1 - converted.pdf
web development for engineering and engineering
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Welding lecture in detail for understanding
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Arduino robotics embedded978-1-4302-3184-4.pdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Structs to JSON How Go Powers REST APIs.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Lecture Notes Electrical Wiring System Components
Model Code of Practice - Construction Work - 21102022 .pdf
Project quality management in manufacturing
Geodesy 1.pptx...............................................
Construction Project Organization Group 2.pptx

Types of files

  • 1. Types of Files in Linux Amar Jukuntla LINUX | Amar Jukuntla | Assistant Professor | CSE 1
  • 2. Content • Recap • Linux Files • Ordinary or Regular File • Directory • Character special file • Block special file • Symbolic link • Named pipe • Socket • Summary LINUX | Amar Jukuntla | Assistant Professor | CSE 2
  • 3. Recap • Absolute Path • Relative Path • Linux Operating System • Directory LINUX | Amar Jukuntla | Assistant Professor | CSE 3
  • 4. Linux Files • Types of files • Regular Files • Directory Files • Link • Special Files • Socket • Pipe LINUX | Amar Jukuntla | Assistant Professor | CSE 4
  • 5. Regular File • Regular files are called normal files or ordinary files. • A large majority of the files found on UNIX and Linux systems are ordinary files. • Ordinary files contain ASCII (human-readable) text, executable program binaries, program data, and more. • Regular files start with - . LINUX | Amar Jukuntla | Assistant Professor | CSE 5
  • 6. Directories • A directory is a binary file used to track and locate other files and directories. • The binary format is used so that directories containing large numbers of filenames can be search quickly. • First Character in File Listing d. LINUX | Amar Jukuntla | Assistant Professor | CSE 6
  • 7. Device Files or Special Files • Device or special files are used for device I/O on UNIX and Linux systems. • They appear in a file system just like an ordinary file or a directory. • Linux systems only provide one special file for each device. • First Character in File Listing c • Mechanism used for input and output, such as files in /dev. LINUX | Amar Jukuntla | Assistant Professor | CSE 7
  • 8. Links • A link is a tool used for having multiple filenames that reference a single file on a physical disk. They appear in a file system just like an ordinary file or a directory. • Like special files, links also come in two different flavors. There are hard links and symbolic links. • Link files are represented with l. LINUX | Amar Jukuntla | Assistant Professor | CSE 8
  • 9. Continue… • Hard Link files • Hard links do not actually link to the original file. • Instead they maintain their own copy of the original file's attributes (i.e. location on disk, file access permissions, etc.). • If the original file is deleted, its data can still be accessed using the hard link. • Symbolic Link Files • Symbolic links contain a pointer, or pathname, to the original file. • If the original file is deleted, its data can no longer be accessed using the symbolic link, and the link is then considered to be a stale link. LINUX | Amar Jukuntla | Assistant Professor | CSE 9
  • 10. Pipes • A special file that allows processes to communicate with each other without using network socket semantics. • Pipes are tools that allow two or more system processes to communicate with each other using a file that acts as a pipe between them. • This type of communication is known as inter process communication , or IPC for short. • Pipes are represented with p. LINUX | Amar Jukuntla | Assistant Professor | CSE 10
  • 11. Sockets • Sockets are also tools used for inter process communication. • The difference between sockets and pipes is that sockets will facilitate communication between processes running on different systems, or over the network. • A special file that provides inter-process networking protected by the file system’s access control. • Sockets are represented with s. LINUX | Amar Jukuntla | Assistant Professor | CSE 11
  • 12. Summary File Type First Character in File Listing Description Regular file - Normal files such as text, data, or executable files Directory d Files that are lists of other files Link l A shortcut that points to the location of the actual file Special file c Mechanism used for input and output, such as files in /dev Socket s A special file that provides inter-process networking protected by the file system’s access control Pipe p A special file that allows processes to communicate with each other without using network socket semantics LINUX | Amar Jukuntla | Assistant Professor | CSE 12