Difference between revisions of "File descriptor"
Jump to navigation
Jump to search
(Created page with "{{Draft}} * /proc/sys/fs/file-nr == See also == * {{files}}") |
|||
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[wikipedia:File descriptor]] | |
− | * /proc/sys/fs/file-nr | + | * <code>cat [[/proc/sys/fs/]]file-nr</code> |
+ | * <code>cat /proc/sys/fs/file-max</code> | ||
+ | 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 == | ||
+ | * [[Zabbix agent]] file descriptor monitorization | ||
+ | * [[inode]] | ||
+ | * [[Python]]: <code>[[os]].close(fd)</code> | ||
+ | * [[Resource starvation]] | ||
+ | * <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]] |
Latest revision as of 15:23, 25 October 2024
cat /proc/sys/fs/file-nr
cat /proc/sys/fs/file-max
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]
- Zabbix agent file descriptor monitorization
- inode
- Python:
os.close(fd)
- Resource starvation
sysctl fs.file-max
- 2>&1
- Amazon EFS quotas
- geth --fdlimit
/etc/security/limits.conf
See also[edit]
- File descriptor,
/etc/security/limits.conf
- Standard streams:
/dev/stdin
,/dev/stdout
,/dev/stderr
,/dev/null
, File descriptor,set -x, 2>&1, stdbuf
- file, File system, directory,
touch
,mkdir
,ls
,ln
truncate
,fallocate
,split
,stat
, inode, File descriptor, superblock, block size (blockdev
),fuser
,lsof
,scrub
,chattr
, ulimit (nofiles),cp
,mv
,file (command)
,mkfifo
,chmod
Advertising: