File management in Unix Interview questions

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

What are the Unix system calls for I/O?

1. open(pathname,flag,mode) - open file

2. creat(pathname,mode) - create file

3. close(filedes) - close an open file

4. read(filedes,buffer,bytes) - read data from an open file

5. write(filedes,buffer,bytes) - write data to an open file

6. lseek(filedes,offset,from) - position an open file

7. dup(filedes) - duplicate an existing file descriptor

8. dup2(oldfd,newfd) - duplicate to a desired file descriptor

9. fcntl(filedes,cmd,arg) - change properties of an open file

10. ioctl(filedes,request,arg) - change the behaviour of an open file

The difference between fcntl and ioctl is that the former is intended for any open file, while the latter is for device-specific operations

Next 4 interview question(s)

Brief about the directory representation in UNIX?
What is inode?
How are devices represented in UNIX?

What is 'inode'?