script papka 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 -0 main && ./main
run.sh
faylga execution ruxsatini beramiz
chmod +x~/scripts/run.sh
scripts papkasini global $PATHga doimiy qo'shamiz.
echo "export PATH=$PATH:`/scripts" >>~.bash_profile.
Top comments (0)