You have to open the file in a text editor of some sort (such as vi or nano). I.e. "vi /etc/my.cnf" or "nano -w /etc/my.cnf".