知乎專欄 | 多維度架構 | 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者” |
Irssi Chat Client - Your text mode chatting application since 1999.
Irssi 是目前命令行下最好的聊天工具,難得的是這個命令行IRC還一直在更新。
sudo apt-get install irssi
進入 irssi 輸入irc命令即可
[anni@netkiller ~]$ irssi /connect irc.freenode.net /join #ubuntu,#ubuntuforums,#ubuntu+1 /quit
NAME Irssi - a modular IRC client for UNIX SYNOPSIS irssi [-dv!?] [-c server] [-p port] [-n nickname] [-w password] [-h hostname] DESCRIPTION Irssi is a modular Internet Relay Chat client. It is highly extensible and very secure. Being a fullscreen, termcap based client with many features, Irssi is easily extensible through scripts and modules. OPTIONS --config=FILE use FILE instead of ~/.irssi/config. --home=PATH PATH specifies the home directory of Irssi. Default is ~/.irssi -c, --connect=SERVER connects to SERVER -w, --password=PASSWORD use PASSWORD for authentication. -p, --port=PORT automatically connect to PORT on server. -!, --noconnect disables autoconnecting. -n, --nick=NICKNAME specify NICKNAME as your nick. -h, --hostname=HOSTNAME use HOSTNAME for your irc session. -d, --dummy use dummy terminal mode. -v, --version display the version of Irssi. -?, --help show a help message.
常用參數
[root@netkiller ~]# irssi -c irc.freenode.org -n Neo
自動連接併進入頻道
/connect irc.freenode.net /nick Neo /NETWORK ADD freenode /SERVER ADD -auto -network freenode irc.freenode.net 6667 /CHANNEL ADD -auto #netkiller freenode
IRC 網絡列表
/NETWORK LIST 20:40 Networks: 20:40 IRCnet: querychans: 5, max_kicks: 4, max_msgs: 5, max_whois: 4 20:40 EFNet: max_kicks: 4, max_msgs: 3, max_whois: 1 20:40 Undernet: max_kicks: 1, max_msgs: 3, max_whois: 30 20:40 DALnet: max_kicks: 4, max_msgs: 3, max_whois: 30 20:40 QuakeNet: max_kicks: 1, max_msgs: 3, max_whois: 30 20:40 OFTC: max_kicks: 1, max_msgs: 3, max_whois: 30 20:40 GameSurge: max_kicks: 1, max_msgs: 3, max_whois: 30 20:40 WebChat: max_kicks: 1, max_msgs: 3, max_whois: 30 20:40 Rizon: max_kicks: 1, max_msgs: 3, max_whois: 30 20:40 LinkNet: max_kicks: 1, max_msgs: 3, max_whois: 30
添加網絡
/NETWORK ADD -autosendcmd "/^msg NickServ IDENTIFY password;wait 2000" freenode /network add -nick <your-nick> Freenode
/server list 20:54 Server Port Network Settings 20:54 eu.irc6.net 6667 IRCnet 20:54 open.ircnet.net 6667 IRCnet 20:54 irc.efnet.org 6667 EFNet 20:54 irc.undernet.org 6667 Undernet 20:54 irc.dal.net 6667 DALnet 20:54 irc.quakenet.org 6667 QuakeNet 20:54 irc.oftc.net 6667 OFTC 20:54 irc.gamesurge.net 6667 GameSurge 20:54 irc.webchat.org 6667 WebChat 20:54 irc.rizon.net 6667 Rizon 20:54 irc.link-net.org 6667 LinkNet
ircii 是較為古老的命令行IRC,有些版本的Linux包資源中已經下架。例如CentOS yum search ircii 是沒有的。
TUI client
$ sudo apt-get install ircii
/etc/irc/servers
remove the string: change_this_in_etc_irc_servers
add default irc server.
172.16.0.1
running irc client
$ irc -c '#system' neo 192.168.3.9
freenode.net
$ irc -c '#debian' neo chat.freenode.net
xchat --url=irc://chat.freenode.net/wikipedia-zh xchat --url=irc://irc.freenode.net/trac
-e 可以避免開啟多個窗口,新URL將在TAB中打開。
xchat --url=irc://irc.freenode.net/trac -e