DEV Community

Zaw Htut Win
Zaw Htut Win

Posted on

Linux command to list all the executable Python versions

sudo find /usr/bin -type f -executable -iname 'python*'
Enter fullscreen mode Exit fullscreen mode

This will find the executable files start with 'python' inside /usr/bin directory.

Top comments (1)

Collapse
 
raddevus profile image
raddevus

That's a good one. Bookmarked! Thanks for sharing