Top "File-descriptor" questions

Generally, a file descriptor is an index for an entry in a kernel-resident data structure containing the details of all open files.

What are file descriptors, explained in simple terms?

What would be a more simplified description of file descriptors compared to Wikipedia's? Why are they required? Say, take shell …

unix operating-system file-descriptor
What is the theoretical maximum number of open TCP connections that a modern Linux box can have

Assuming infinite performance from hardware, can a Linux box support >65536 open TCP connections? I understand that the number of …

tcp linux-kernel port file-descriptor
What can lead to "IOError: [Errno 9] Bad file descriptor" during os.system()?

I am using a scientific software including a Python script that is calling os.system() which is used to run …

python subprocess posix file-descriptor ioerror
Retrieve filename from file descriptor in C

Is it possible to get the filename of a file descriptor (Linux) in C?

c linux file file-descriptor
IOException: Too many open files

I'm trying to debug a file descriptor leak in a Java webapp running in Jetty 7.0.1 on Linux. The app had …

java linux jetty ioexception file-descriptor
Check the open FD limit for a given process in Linux

I recently had a Linux process which “leaked” file descriptors: It opened them and didn't properly close some of them. …

linux scripting operating-system limit file-descriptor
What's the difference between a file descriptor and file pointer?

I want to know the difference between a file descriptor and file pointer. Also, in what scenario would you use …

c file-descriptor file-pointer
Bad file descriptor

I'm learning about file descriptors and I wrote this code: #include <unistd.h> #include <stdio.h> #…

c file unix file-descriptor
How do file descriptors work?

Can someone tell me why this does not work? I'm playing around with file descriptors, but feel a little lost. #!/…

bash shell stdout stdin file-descriptor
C's printf and fprintf(stdout,) are not printing

This is a bit of an odd one. My code wasn't outputting what I thought it should. I added some …

c file-descriptor printf