In this article, we will see how to run python script in Linux
Suppose your python script is named as test.py, save it to a specific location in your system and then follow the steps below to run it:
- Open the terminal by searching for it in the dashboard or pressing
- Navigate the terminal to the directory where the script is located using the
python test.pyin the terminal to execute the script.
NOTE: If the script is python3, use python3 in the terminal command: