How should I add a simple one line script to my startup?

When I open the ubuntu terminal, I want it to run this code automatically:

linuxlogo

I have the linuxlogo package installed and I just installed systemd, but I haven't been able to figure out how to turn that one line into a script and insert it last in the boot process. It's not a big thing, but I would like to be able to do this.


Solution 1:

Include the command in the .bashrc file located in your home directory. That file is executed automatically each time you open an interactive terminal.

.bashrc is a hidden file in your home directory. You will be able to see it in your file manager if you turn "Show hidden files" on.