- Learning Linux Shell Scripting
- Ganesh Naik
- 112字
- 2021-06-25 22:02:51
File descriptors
All I/O–including files, pipes, and sockets - are handled by the kernel via a mechanism called the file descriptor. A file descriptor is a small, unsigned integer, which is an index into a file-descriptor table maintained by the kernel, and used by the kernel to reference open files and I/O streams. Each process inherits its own file-descriptor table from its parent. The first three file descriptors are 0, 1, and 2. File descriptor 0 is standard input (stdin), 1 is standard output (stdout), and 2 is standard error (stderr). When you open a file, the next available descriptor is 3, and it will be assigned to the new file.
推薦閱讀
- Google Cloud Platform Cookbook
- Practical Ansible 2
- Getting Started with MariaDB
- Learning Apache Spark 2
- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- 數據庫原理與應用技術學習指導
- 最簡數據挖掘
- Spark大數據技術與應用
- CentOS 8 Essentials
- Implementing AWS:Design,Build,and Manage your Infrastructure
- 數據掘金
- Mastering Ansible(Second Edition)
- Drupal高手建站技術手冊
- 手把手教你學Flash CS3
- Machine Learning in Java