DB2 commands are used to execute database administration functions and control the DB2 operational environment. The document discusses different types of DB2 commands, including DSN commands, DB2 commands, IMS commands, and CICS attachment facility commands. It also describes the structure of DB2 commands and the scopes of different commands, such as member, group, or both depending on options.