Linux command
ii 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Connect to IRC server
ii -s [irc.libera.chat] -n [nickname]
Connect with port
ii -s [irc.libera.chat] -p [6697] -n [nickname]
Specify IRC directory
ii -s [server] -i [~/.irc] -n [nickname]
Join channel
echo "/j #channel" > ~/irc/server/in
Send message
echo "Hello world" > ~/irc/server/#channel/in
说明
ii (IRC It) is a minimalist filesystem-based IRC client. It creates a directory structure where each server and channel is a directory with in (write to send) and out (read for messages) files. This design follows the Unix philosophy, allowing IRC interaction through standard file operations and shell scripts. It can be combined with tools like tail, cat, and custom scripts.
参数
- -s _server_
- IRC server address.
- -p _port_
- Server port (default 6667).
- -n _nickname_
- IRC nickname (defaults to $USER).
- -k _env_var_
- Environment variable that holds the IRC password (avoids exposing it on the command line).
- -f _fullname_
- Real name (GECOS field).
- -i _prefix_
- IRC directory prefix (default ~/irc).
- -t
- Connect using TLS.
- -v
- Do not verify the TLS certificate.
- -4
- Only connect over IPv4.
- -6
- Only connect over IPv6.
- -u _socket_
- Connect to a UNIX domain socket instead of a network server.
FAQ
What is the ii command used for?
ii (IRC It) is a minimalist filesystem-based IRC client. It creates a directory structure where each server and channel is a directory with in (write to send) and out (read for messages) files. This design follows the Unix philosophy, allowing IRC interaction through standard file operations and shell scripts. It can be combined with tools like tail, cat, and custom scripts.
How do I run a basic ii example?
Run `ii -s [irc.libera.chat] -n [nickname]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s _server_ do in ii?
IRC server address.