I have python file my_script.py
When I run:
chmod +x my_script.py
I end up with two files that are called my_script.py
, one executable file and one python file, when I try to get the size of the file:
du -sh my_script.py
I am getting the size of the python file (4.0K), but I want to know the size of the executable.
Is there a way to change a name of the executable file? To something say my_script
without .py
?
chmod +x my_script.py
is ran is pretty severe, your answers have pointed that out :).