Nicknaming Python [ alias ]

Post Reply
User avatar
CoDeR
Editor
Editor
Posts: 52
Joined: Wed Dec 13, 2023 7:25 pm
Location: Cyberspace

Nicknaming Python [ alias ]

Post by CoDeR »

Nicknaming Python [ alias ] || [ alias ] ile Python'a Lakap Takmak
Naming Python on Linux systems is very simple and harmless. The important question here is which shell you are using.
Linux sistemlerde Python'a lakap takmak çok basit ve zararsızdır. Burada önemli olan soru kullandığınız hangi kabuktur.

for Bash shell

Code: Select all

echo "alias py=/usr/bin/python3" >> ~/.bashrc
echo "alias python=/usr/bin/python3" >> ~/.bashrc
for Zshrc shell

Code: Select all

echo "alias py=/usr/bin/python3" >> ~/.zshrc
echo "alias python=/usr/bin/python3" >> ~/.zshrc
Restart Terminal for the nicknames to take effect.
Lakapların aktifleşmesi için Terminali Yeniden Başlatın.
Post Reply