Sitemap
Bugs That Bite

Helping make the world a better place, one error message at a time.

Member-only story

Making the python command run python3 in Linux

2 min readDec 27, 2023

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚙️ Check out my series on Automating Cybersecurity Metrics | Code.

🔒 Related Stories: Bugs | AWS Security | Secure Code

💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I have a bunch of pentesting tools and security scanners written over time and some of them depend on “python” being available. Some depend on “python3.” Some of them depending “python” calling “python3.” It’s a mess.

Then there’s AWS where Amazon Linux 2 still uses python 2.7 or something under the hood likely due to precedence issues that create security problems in. Python 3. I’m not sure.

In any case, if you need “python” to run “python3” for your use case, you can use this simple trick.

Edit your ~/.bash_profile file.

--

--

Teri Radichel
Teri Radichel

Written by Teri Radichel⁠

CEO 2nd Sight Lab | Pentesting | Research | AWS Security Hero | Masters of Infosec & Masters Software Engineering | GSE | IANS | SANS Difference Makers Award

Bugs That Bite
Bugs That Bite

Published in Bugs That Bite

Helping make the world a better place, one error message at a time.