mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 07:46:49 +00:00
22 lines
509 B
Plaintext
22 lines
509 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# <>
|
|
|
|
> 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}}<>-`
|