Last active
July 28, 2024 11:52
-
-
Save fanpero87/4a3235a35dd5f66873b03e008bd890c7 to your computer and use it in GitHub Desktop.
Alias for Linux (Debian/Ubuntu)
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
## Terminal shortcuts | |
alias ..="cd ../" | |
alias ...="cd ../../" | |
alias ....="cd ../../../" | |
alias .....="cd ../../../../" | |
alias ll="ls -alF --color=auto" | |
alias l="ls -l --color=auto" | |
alias update="sudo apt update && sudo apt upgrade -y" | |
alias install="sudo apt install -y" | |
alias ports="netstat -tulanp" | |
alias space="df -Th" | |
alias process="ps faux" | |
alias reboot='sudo /sbin/reboot' | |
alias poweroff='sudo /sbin/poweroff' | |
alias grep='grep --color=auto' | |
alias egrep='egrep --color=auto' | |
## Nginx shortcuts | |
alias nreload="sudo /usr/local/nginx/sbin/nginx -s reload" | |
alias ntest="sudo /usr/local/nginx/sbin/nginx -t" | |
## Laravel shortcuts | |
alias pat="php artisan tinker" | |
alias pas="php artisan serve" | |
alias a="php artisan" | |
#alias sail="bash vendor/bin/sail" | |
#alias sail up="./vendor/bin/sail up" | |
#alias sail shell="./vendor/bin/sail shell" | |
## Github shortcuts | |
alias repo="gh repo create" | |
alias gi="git init" | |
alias ga="git add -A" | |
alias gc="git commit -m" | |
alias gp="git push --set-upstream origin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup alias commands on Linux systems
nano ~/.bashrc
Copy/Paste the shortcuts
Active the file to keep aliases between sessions