Operating Systems: Syed Mansoor Sarwar
Operating Systems: Syed Mansoor Sarwar
Systems
Lecture 43
Syed Mansoor Sarwar
Agenda for Today
Review of the previous lecture
Directory Structures
Links in UNIX/Linux
File System Mounting
File Sharing
File Protection
14 September 2019 © Copyright Virtual University of
Pakistan
Review of Lecture 42
Review of the previous lecture
File Concept
File Types
File Operations
Access Methods
Directories
Directory Operations
Directory Structure
14 September 2019 © Copyright Virtual University of
Pakistan
Acyclic-Graph
Directories
Have shared subdirectories and files.
Examples:
ln -/prog1.c ~/courses/OS/programs/prog1_hard.c
ln –s ~/courses/OS/programs/prog2.c ~/prog2_soft.c
14 September 2019 © Copyright Virtual University of
Pakistan
Hard Links
~
OS
programs
prog1_hard.c 12345
14 September 2019 © Copyright Virtual University of
Pakistan
Soft Links
~
prog2_soft.c 98765
courses
Contents of prog2_soft.c OS
~/courses/OS/programs/prog2.c
programs
prog2.c 45678