Solved

Open File vs Open file descriptiors

Posted on 2011-03-22
4
242 Views
Last Modified: 2012-05-11
Hi,

What is the difference between open file descriptors and open files? I'm  using  linux centOS.

0
Comment
Question by:mokkan
4 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 167 total points
Comment Utility
An "open file" is represented by an entry in a kernel table (one per process), and a file descriptor is an index to this table.

The application doesn't access a file directly but passes this descriptor to the kernel which uses it as a key to access the file "on behalf" of the application.

So an "open file descriptor" is an index to a table of "open files".

wmp
0
 
LVL 12

Assisted Solution

by:upanwar
upanwar earned 167 total points
Comment Utility
This could also explain you.

http://www.netadmintools.com/art295.html
0
 
LVL 4

Assisted Solution

by:roemelboemel
roemelboemel earned 166 total points
Comment Utility
short - and not 100% accurate - answer:

"everything is a file"
an open file descriptor is a "thing" which represents an open file
long answer:
http://en.wikipedia.org/wiki/File_descriptor
0
 

Author Closing Comment

by:mokkan
Comment Utility
should be fixed.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now