Cmd is too long to change?

131 0

For example, I set up the python environment variable, running the:

> python hello

Yes, but I still think it's too long to enter python and can be similar to.

8 Answers

61 5

Modify the permissions of the hello. Lux, plus execute permissions.

chmod +x hello.py

Add the appropriate python path to the fi & t line of.

#!/usr/bin/python

And run directly.

./hello.py

The hello can be executed with python parsing. This file is.

71 1

Modify the permissions of the hello. Lux, plus execute permissions.

chmod +x hello.py

Add the appropriate python path to the fi & t line of.

#!/usr/bin/python

And run directly.

./hello.py

The hello can be executed with python parsing. This file is.

88 5
alias py python

It's about this.
No, no, no.

alias python py
88 3
alias py python

It's about this.
No, no, no.

alias python py
66 2

There's also a method that isn't restricted by the shell.

sudo -s
cd/usr/bin/
ln -s python p

We'll use p. C. Later.

80 3

There's also a method that isn't restricted by the shell.

sudo -s
cd/usr/bin/
ln -s python p

We'll use p. C. Later.

...