Last active
August 18, 2025 02:48
-
-
Save mateusreis/31c0d25bd711175129b6f14e2c383005 to your computer and use it in GitHub Desktop.
.bashrc 2025 - some more ls aliases
This file contains hidden or 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
| # some more ls aliases | |
| alias prof='source ~/.bashrc' | |
| alias profile='sudo nano ~/.bashrc' | |
| alias gitk='gitk 2>/dev/null' | |
| alias gk='gitk --all 2> /dev/null &' | |
| alias la='ls -lha' | |
| alias ls='ls -lha' | |
| alias ll='ls -lhF' | |
| alias l='ls -lAhF' | |
| alias dir='ls -lha' | |
| alias c="clear" | |
| alias e="exit" | |
| alias ..="cd .." | |
| alias cd..="cd .." | |
| alias home='cd ~' | |
| alias ssh="ssh -X" | |
| alias fstab='vim /etc/fstab' | |
| alias sites='cd /var/www/html' | |
| # alternative to pbcopy | |
| # sudo apt-get install -y xclip | |
| alias pbcopy="xclip -sel clip" | |
| alias cpkey="pbcopy < ~/.ssh/id_rsa.pub" | |
| # Adicione o seguinte código no final do arquivo | |
| function apache-restart() { | |
| echo "Reiniciando apache..." | |
| sudo systemctl restart apache2 | |
| } | |
| alias apacher="apache-restart" | |
| alias stt="systemctl status apache2 && systemctl status mariadb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment