File management in Unix Interview questions


Total available count: 13
Subject - Operating System
Subsubject - File management in Unix

How do you create special files like named pipes and device files?

The system call mknod creates special files in the following sequence.

1. Kernel assigns new inode.

2. Sets the file type to indicate that the file is a pipe, directory or special file.

3. If it is a device file, it makes the other entries like major, minor device numbers.

If the device is a disk, major device number refers to the disk controller and minor device number is the disk.




Next 5 interview question(s)

1
What is a FIFO?
2
What are links and symbolic links in UNIX file system?
3
How do you change File Access Permissions?
4
What are the Unix system calls for I/O?
5
Brief about the directory representation in UNIX?