Chatting on the Net Chatting on the Net Chatting on the Net
Home     |    Site Map     |    IRC Bookstore     |    Kool Web Toolz     |    Friends of NIU     |    About Mike and Judy     |    Privacy Statement



Most IRC clients (IRC programs) are written to use the standard Unix commands. However, not all clients will accept all the Unix commands. Many clients also use modifications of the commands or commands that only work with the particular client. Bear this in mind and read your specific clients documentation for the commands it does support. The commands presented here are the ones most commonly supported by most IRC clients. Click here to download a zipped text file of all the commands on this page.
 
There are three syntax conventions that you need to remember with IRC commands.
 
All IRC commands begin with the forward slash, " / ". Anything else you type is considered text typed to the screen as normal conversation.
 
All channel names begin with a pound sign, " # "There is an exception here. Some channel names will begin with a " & ", but those are few and far between and you may never see them in your travels on IRC.
 
IRC is not case sensitive. So you can use either upper, lower, or mixed case letters if you wish in your commands.


Note: the use of " # " indicates that the channel name should be substituted...
i.e. #newbies in these examples.


GENERAL COMMANDS
Command
Description
Example
/join [#] use to join a channel /join #newbies
/part [#] use to leave a channel /part #newbies
/leave [#] same as part /leave #newbies
/quit (message) use to quit IRC. A message may be added to the command, but is optional. /quit see ya'll later!
/whois [nick] used to get info on a nick. /whois pipur
/whowas [nick] used to get info on a nick that has just left IRC or a person who has just changed their nick. /whowas pipur
/who [#] shows nicks, addresses, and optional user info if available for users on a channel /who #newbies
/names [#] shows nicks of users on a channel /names #newbies
/msg [nick] [message] sends a private message (whisper) to a user /msg pipur hello there
/query [nick] opens a new window for private dialog with a nick /query pipur
/nick [newnick] if I wanted to change my current nick, pipurur, to pipur, I would use this command /nick pipur
/me [action describe] If pipur typed this example, it would be displayed as *pipur waves to Alleghany /me waves to Alleghany
/away [away message] use to tell others you are not currently at your computer. A message can be included. To set yourself back, type /away again. /away checking mail!
/list requests a list of currently formed channels from the server. The listing you request is not updated until you issue the request again. /list
/invite [nick] [#] use to invite a nick who is elsewhere on IRC to join you on a channel. /invite pipur #newbies
/ignore [nick/address] use to prevent someone from talking to you. The persons nick or address may be used. /ignore pipur
/kick [#] [nick] used to kick a user from the channel. You must be a channel op to use this command. /kick #newbies pipur
/mode [nick] +i This is the invisible mode. You are not literally invisible on IRC. Users on the same channel as you still see you there.You are invisible to a user who does a /who or /names. A /whois nick, however, will show your user information and the channels you're on. /mode pipur +i

 
Channel Operator Mode Commands
Channel operators (also known as ops) control the channel they are on. They will have an " @ " in front of their nick. They are effectively the "bosses" of the channel. There are two ways to become a channel operator. First is by creating a channel. You create a channel by joining a channel that does not currently exist. When you do this, the server sets you as the channel op. The second way is to be made an operator by an existing operator.

Channel ops maintain control of the channel through the use of channel mode commands. These are commands that only channel operators have access to, and can be used to perform various functions on the channel.

Please Note: only channel operators have access to the following function
Typing a minus sign " - " in place of the plus sign " + " reverses the command...
i.e. +o ops, and -o deops

Note: the use of " # " indicates that the channel name should be substituted...
i.e. #newbies in these examples.
OPERATOR AND CHANNEL MODE COMMANDS
Mode Command
Description
Example
/mode [#] +o [nick] grant ops to a nick /mode #newbies +o pipur
/mode [#] +b [address] ban a nick by their address from the channel. The proper address format is *!*username@*.host.domain /mode #newbies +b *!*jp@*.irc.com
/mode [#] +m set the channel mode to moderate. This means that only ops can type to the channel. All others are silenced on the channel. /mode #newbies +m
/mode [#] +v [nick] used in conjunction with +m mode. After setting to moderate, a user can be given permission to speak by setting the mode to +v. /mode #hi +v pipur
/mode [#] +s makes the channel secret. It will not be shown in a channel listing. It can still be joined if the channel name is known. /mode #newbies +s
/mode [#] +p makes the channel private. The channel cannot be joined unless an invite is issued. The users on the channel can be listed with a /who or /names command. /mode #newbies +p
/mode [#] +i makes the channel invite only. You must be invited by another nick on the channel to join. /mode #newbies +i
/mode [#] +t restricts channel topic changes to operators only. /mode #newbies +t
/mode [#] +n prevents messages from outside the channel from being sent to the channel. This does not affect personal messages to individual users. /mode #newbies +n
/mode [#] +l [number] limits the number of users that may occupy the channel. In this example, the limit is 6 users. /mode #newbies +l 6
/mode [#] +k [keyword] sets a password for the channel. Cannot join without typing /join #channelname [keyword] /mode #newbies +k shazam

 
CTCP and DCC Commands
CTCP stands for Client-To-Client-Protocol. The CTCP command performs certain client specific functions on the IRC network. It permits you to find out various kinds of information and perform some useful functions on IRC. Many clients allow you to use CTCP to customize various functions, such as setting up a file server on your system, or providing a means to grant op status to users when you are not there to do it yourself. CTCP commands can also be disabled by the user, so don't be surprised if you get no information back from a user when you initiate certain CTCP requests to them.

DCC is Direct Client-to-Client. This is probably one of the most useful and desirable functions on IRC. With DCC you can send and receive files and chat directly, privately, and securely to someone on IRC. The DCC channel is not subject to lag and is secure because it does not use the IRC chat channels to transmit information. It forms a direct link between two users (hence direct-client-to-client).

CAUTION!! As useful as DCC is, you should be very cautious about receiving files. NEVER accept a file from someone you don't know or trust! Just like the real world, there are virus lurking out there, and there are jerks on IRC just waiting to send system corrupting files to unsuspecting users. At the very least, run a virus scan on a file before you execute it. It will save you lots of headaches in the long run.

CTCP Commands (using pipur in the sample replies)
Command
Description
You Might See Something Like This
/ctcp [nick] ping ping is used to determine the amount of time it takes for your signal (messages) to get to another nick and back in seconds. It measures the amount of lag time for the message. Excessive lag can make communication difficult. [pipur PING reply]: 2 secs
/ctcp [nick] version version is used to query a nicks' client for the type or name of the IRC program they are running. [pipur VERSION reply]: mIRC16 v3.8 IRC Client K.Mardam-Bey
/ctcp [nick] finger finger gives additional information about a nick. Sometimes its not much different from the /whois [nick] information. [pipur FINGER reply]: Don't judge me by my "looks" (biscuits@neosoft.com) Idle 3 seconds (Beware, lest the magic overwhelm you....)
/ctcp [nick] userinfo the userinfo ctcp function usually gives about the same information as the finger reply. [pipur USERINFO reply]: Don't judge me by my "looks" (biscuits@neosoft.com) Idle 0 seconds (Beware, lest the magic overwhelm you....)
/ctcp [nick] clientinfo clientinfo ctcp function will tell you what functions are active on the nicks' client. Can be useful if you want to know if things like DCC, ping, or finger are active on their system. [pipur CLIENTINFO reply]: ACCEPT ACTION CLIENTINFO DCC ECHO FINGER PING RESUME SOUND TIME USERINFO VERSION
/ctcp [nick] time this checks the local date and time on a nicks' computer. I guess it might be useful if you wanted to know what time it was in Australia, if your were talking to an Aussie. [pipur TIME reply]: Tue Dec 26 15:38:21 1995

DCC Commands
Command
Description
/dcc chat [nick] this initiates a dcc chat session with the specified nick. Since the connection does not go through the IRC network, it is the most secure type of direct communication with another user. Depending on your client, you will probably get some kind of message asking you to accept the DCC chat request.
/dcc send [nick] [filename] this command initiates a file send to the designated nick. The file name and the full path of the file on your system must be specified.
/dcc get [nick] [filename] this command acknowledges and accepts a DCC file transfer initiated by another user to you. Once you have typed the GET response, the file transfer to you will begin.
/dcc close [nick] use this command to refuse a DCC file offer or chat request sent to you, or stop a DCC transfer that is in progress, or to close a DCC chat session.
/dcc list use this function to get a listing of currently active DCC connections that you have going.