# bind - perldoc - phpman

> **TLDR:** Bash builtin to manage bash hotkeys and variables.
>
- List all bound commands and their hotkeys:
  `bind {{p|-P}}`
- Query a command for its hotkey:
  `bind -q {{command}}`
- Bind a key:
  `bind -x '"{{key_sequence}}":{{command}}'`
- List user defined bindings:
  `bind -X`
- Display help:
  `help bind`

*Source: tldr-pages*

---

    bind SOCKET,NAME
            Binds a network address to a socket, just as [bind(2)](https://www.chedong.com/phpMan.php/man/bind/2/markdown) does.
            Returns true if it succeeded, false otherwise. NAME should be a
            packed address of the appropriate type for the socket. See the
            examples in "Sockets: Client/Server Communication" in perlipc.

