Last active
October 11, 2021 21:06
-
-
Save Alfonzzoj/05fbdc634e6165da023d4f20f03aeaad to your computer and use it in GitHub Desktop.
Aliases de comandos - Linux 🏷️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Alias | |
alias apache-stop="sudo service apache2 stop && echo 'apache2 service DETENIDO'" | |
alias apache-start="sudo service apache2 start && echo 'apache2 service INICIADO'" | |
alias apache-restart="sudo service apache2 restart && echo 'apache2 service REINICIADO'" | |
alias bashconfig="sudo nano ~/.bashrc ; source ~/.bashrc ; echo 'Bashrc actualizado' " | |
alias install="sudo apt install " | |
alias pbcopy='xclip -selection clipboard' | |
alias pbpaste='xclip -selection clipboard -o' | |
#mysql | |
alias mysql-status="systemctl status mysql.service" | |
alias mysql-start="systemctl start mysql.service && echo 'Mysql INICIADO'" | |
alias mysql-stop="systemctl stop mysql.service && echo 'Mysql DETENIDO'" | |
alias mysql-restart="systemctl restart mysql.service && echo 'Servicio REINICIADO'" | |
#=== PHP === | |
#cambiar version predetiminada de php | |
alias setup-php7.4="sudo update-alternatives --set php /usr/bin/php7.4 && sudo a2enmod php7.4 && sudo systemctl restart apache2 " | |
alias setup-php8.0="sudo update-alternatives --set php /usr/bin/php8.0 && sudo a2enmod php8.0 && sudo systemctl restart apache2 " | |
#Modificar php.ini | |
alias php7.4-config="sudo nano /etc/php/7.4/apache2/php.ini" | |
alias php8.0-config="sudo nano /etc/php/8.0/cli/php.ini" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment