Score:1

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

cn flag

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.

cocomac avatar
cn flag
If you want it to run when you open a terminal, just add it to the end of your `~/.bashrc` file (on a new line). Getting it to show up when the computer boots up is more complicated
hu flag
Why did you have to install systemd?
cocomac avatar
cn flag
@mikewhatever I missed that, but if they had to install systemd, and they don't know how to do something when they open a terminal, something very strange is happening with what they are doing. OP: Please don't just run commands without knowing what they do.
Score:1
cn flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.