scripts papkasi yaratamiz
mkdir ~/scripts
run.sh
bash file yaratamiz
touch ~/scripts/run.sh
run.sh
fayl ichiga quyidagi _script_ni yozamiz
#!/bin/bash
clear && gcc $1 -o main && ./main
run.sh
faylga execution ruxsatini beramiz
chmod +x ~/scripts/run.sh
scripts papkasini global $PATH ga doimiy qo'shamiz.
echo "export PATH=$PATH:~/scripts" >> ~/.bash_profile
Top comments (2)
O'zbek tilida ham kontent ko'paysa naqadar yaxshi)
Shunga bel bog’laganmiz