Difference between revisions of "File descriptor"

From wikieduonline
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Draft}}
 
 
[[wikipedia:File descriptor]]
 
[[wikipedia:File descriptor]]
  
Line 7: Line 6:
 
  echo "" > "/proc/$pid/fd/$fd"
 
  echo "" > "/proc/$pid/fd/$fd"
  
 +
 +
0 [[stdin]]
 +
[[1]] [[stdout]]
 +
[[2]] [[stderr]]
 +
 +
 +
Open YOUR_FILE_TO_READ as file descriptor 3 for reading:
 +
[[exec]] 3< YOUR_FILE_TO_READ
 +
 +
 +
file descriptor 2342543535 [[out of range]]
 +
 
== Related terms ==
 
== Related terms ==
 
* [[Zabbix agent]] file descriptor monitorization
 
* [[Zabbix agent]] file descriptor monitorization
Line 13: Line 24:
 
* [[Resource starvation]]
 
* [[Resource starvation]]
 
* <code>[[sysctl]] fs.file-max</code>
 
* <code>[[sysctl]] fs.file-max</code>
 +
* [[2]]>[[&1]]
 +
* [[Amazon EFS quotas]]
 +
* [[geth --fdlimit]]
 +
* <code>[[/etc/security/limits.conf]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{fd}}
 +
* {{stdin}}
 
* {{files}}
 
* {{files}}
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 15:23, 25 October 2024

wikipedia:File descriptor

echo "" > "/proc/$pid/fd/$fd"


0 stdin
1 stdout
2 stderr


Open YOUR_FILE_TO_READ as file descriptor 3 for reading:
exec 3< YOUR_FILE_TO_READ


file descriptor 2342543535 out of range

Related terms[edit]

See also[edit]

Advertising: