Difference between revisions of "File descriptor"

From wikieduonline
Jump to navigation Jump to search
Line 14: Line 14:
  
 
  Open YOUR_FILE_TO_READ as file descriptor 3 for reading:
 
  Open YOUR_FILE_TO_READ as file descriptor 3 for reading:
  exec 3< YOUR_FILE_TO_READ
+
  [[exec]] 3< YOUR_FILE_TO_READ
  
 
   
 
   

Revision as of 10:42, 4 April 2023

This article is a Draft. Help us to complete it.

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


Related terms

2>&1

See also

Advertising: