Open In App

Run python script from anywhere in linux

In Linux, there is a way to execute python files from anywhere. This can be done by typing several commands in the terminal.

Prerequisite:

Steps:

This will create the four directories in the check folder. Now any python file placed in the check directory we can be executed from anywhere in the terminal by typing the file name.


Article Tags :