Skip to content

Instantly share code, notes, and snippets.

@alisanie
Last active March 25, 2020 14:59
Show Gist options
  • Save alisanie/d73ddcf52e5c6c52fda8b729443986b0 to your computer and use it in GitHub Desktop.
Save alisanie/d73ddcf52e5c6c52fda8b729443986b0 to your computer and use it in GitHub Desktop.
Linux Server zshrc alias
#Zshrc Main Command
alias editAlias="vim ~/.zshrc_alias"
alias editZshr="vim ~/.zshrc"
alias reloadZsh=". ~/.zshrc"
alias ll="ls -lahG"
alias myip="arp -a"
alias editVimrc='vim ~/.vimrc'
alias editRepoMain="sudo vim /etc/apt/sources.list"
alias osVersion="lsb_release -a"
alias openWebFolder="cd /media/usbhdd/piHD/web"
#Tools
alias pyloadReload="sudo service pyload restart"
alias pyloadstatus="sudo service pyload status"
alias editPyload="vim /home/pi/.pyload/pyload.conf"
alias transmitionReload="sudo service transmission-daemon reload"
alias editTransmition="sudo vim /etc/transmission-daemon/settings.json"
alias pyloadCoreDemand="pyLoadCore --daemon"
alias rcp="rsync -avhr --progress"
alias rmv="rsync -avhr --progress --remove-source-files"
#mysql
alias mysqlSetup="sudo mysql_secure_installation"
alias mysqlStart="sudo systemctl start mysql.service"
alias mysqlStop="sudo systemctl stop mysql.servicep"
alias mysqlRestart="sudo systemctl restart mysql.service"
alias mysqlStatus="sudo systemctl status mysql.service"
#nging
alias nginxStar="sudo /etc/init.d/nginx start"
alias nginxStop="sudo /etc/init.d/nginx stop"
alias nginxRelaod="sudo /etc/init.d/nginx restart"
alias nginxStatus="sudo /etc/init.d/nginx status"
alias editNginx="sudo vim /etc/nginx/nginx.conf"
alias nginxErrorLog="tail -f /var/log/nginx/error.log"
alias nginxAccessLog="tail -f /var/log/nginx/access.log"
#php
alias phpReloadFpm=" sudo /etc/init.d/php7.1-fpm restart"
alias composer="composer.phar"
alias phpEditCong="sudo vim /etc/php/7.1/fpm/pool.d/www.conf"
alias phpIniEdit="sudo vim /etc/php/7.1/fpm/php.ini "
alias composer='/usr/local/bin/composer'
#vpn for OSMC
alias vpn="echo PASSWORD | sudo openconnect -b uk2.cisadd.com --no-cert-check -u USERNAME --passwd-on-stdin"
alias Vpn="echo PASSWORD | sudo openconnect -b uk2.cisadd.com --no-cert-check -u USERNAME --passwd-on-stdin"
alias killVpn="sudo pkill openconnect"
#openFolder
alias openItsShowTime="cd /media/ItsShowTime/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment