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.

How to close file descriptor via Linux shell command

In /proc/pid/fd/, there are too many file descriptors. Can I use shell command to close these file descriptors?

linux shell file-descriptor
Read/write from file descriptor at offset

I've been using the read(2) and write(2) functions to read and write to a file given a file descriptor. Is …

c file-descriptor
What are the possible values for file descriptors?

I am interested to know the valid values which I can expect for a file descriptor. Please let me explain …

c linux validation file-descriptor
Process leaked file descriptors error on JENKINS

I am getting this error when I configured a job to do stop and start of tomcat server: Process leaked …

file jenkins process file-descriptor
How do linux file descriptor limits work?

I was told that my server refused to accept client network connections at a specific port could be due to …

linux sockets file file-descriptor
How to redirect an output file descriptor of a subshell to an input file descriptor in the parent shell?

(In BASH) I want a subshell to use a non-STDOUT non-STDERR file descriptor to pass some data back to the …

bash shell file-descriptor
Why is select used in Linux

I was going through a serial program and I observed that they use select() before using read(). Why exactly is …

c linux file-descriptor select-syscall
What does >& mean?

I was a little confused by this expression: gcc -c -g program.c >& compiler.txt I know &&…

bash io file-descriptor io-redirection
How to write data to existing process's STDIN from external process?

I'm seeking for ways to write data to the existing process's STDIN from external processes, and found similar question How …

linux process stdin file-descriptor tty
Portable way to pass file descriptor between different processes

On most UNIX systems passing an open file between processes can be easily done for child/parent processes by fork(); …

unix fork share file-descriptor