Page 1 of 1

Nicknaming Python [ alias ]

Posted: Mon Jul 29, 2024 12:33 pm
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.