I just realized that you can run a command at login by appending it to your .bashrc
For instance, I added a curl pointing to a certain address that immediately upon login returns a message that tells me whether I’m connected to my VPN provider or not.
Sorry for the beginner revelation. Just thought it was cool. :3


Just a reminder: When you tell Linux to give you a shotgun, it will not ask if you plan to aim it at your foot.
Keep another terminal open when you try this.
I recommend leaving Bash and the standard terminal at default settings mostly and don’t tinker too much with it. Then install Zsh, tinker with it as you like and set Zsh as the default shell for your alternative terminal (in example Kitty). In case something goes wrong, then you will be able to load a safe environment, and it shouldn’t f…un up your next login either.
Thanks! Will do! I also always have an install image on a USB stick in case I need to rescue a botched system xD
Since we’re providing clearly helpful and not at all possibly destructive help, if you run this all of your dreams will come true:
In case someone is not aware of this joke: Do not run that command! It’s a destructive Fork-bomb and a troll command. See https://en.wikipedia.org/wiki/Fork_bomb
Since
I wonder if it’s possible to make
unrunable by forcing POSIX compliance or disabling bash, falling back to sh.
I’m not going to test this. Assuming that is correct statement, one could just use POSIX shell by
#!/bin/shto make sure this doesn’t happen. In modern systems this is just Bash with--posixoption I think, but I’m not sure actually. But the script itself could run a new instance of Bash. I also wonder if this would work with Zsh too.