r/learnpython 2d ago

Question.. I need answers

How can I automate Phyton so that when I open my laptop it execute commands on my Linux terminal?

I severely need to know how

r/Phyton

r/learnpython

r/programming

r/AskProgramming

0 Upvotes

6 comments sorted by

View all comments

3

u/NoForm5443 2d ago

I don't think your issue is with python, but with Linux and your distribution

I think most distros do systemd now, check https://docs.fedoraproject.org/en-US/quick-docs/systemd-understanding-and-administering/

You may want to learn about bash scripting before, maybe start with https://www.linuxfoundation.org/blog/blog/classic-sysadmin-writing-a-simple-bash-script

If you want it done for each terminal, look at .bashrc, .profile and similar things

1

u/Diezel666 2d ago

Agreed. This is not a Python question, as much as it is Linux administration.