Gnome Terminal – Execute a Specific Command on Opening

gnome-terminalscripts

I would like to execute the shell command "cmatrix" whenever I open a terminal. How to go about achieving this?

Best Answer

You can add cmatrix command in your ~/.bashrc file located at home folder:

echo 'cmatrix' >> ~/.bashrc 

NOTE: Please ensure that you use >>, the append operator. If you use >, it will replace your whole ~/.bashrc with cmatrix only.