1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-07 06:53:37 +02:00
tldr/pages/common/less-than-more-than.md

17 lines
416 B
Markdown
Raw Normal View History

2025-08-26 13:01:21 +03:00
# <>
> Open a file descriptor for read and write.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Opening-File-Descriptors-for-Reading-and-Writing>.
- Open a file in a file descriptor for read an write:
`exec {{3}}<>{{path/to/file}}`
- Open a file descriptor to a remote connection:
`exec {{3}}<>/dev/{{tcp}}/{{remote_host}}/{{port_number}}`
- Close a file descriptor:
`exec {{3}}<>-`