Skip to content

Instantly share code, notes, and snippets.

@nahidacm
Last active October 19, 2022 04:29
Show Gist options
  • Save nahidacm/86e2472dad54abf15784a6bdb8d4026e to your computer and use it in GitHub Desktop.
Save nahidacm/86e2472dad54abf15784a6bdb8d4026e to your computer and use it in GitHub Desktop.
Useful bash aliases
# for Ubuntu edit the file ~/.bash_aliases
# for Centos / Redhat edit the file ~/.bashrc
dex()
{
docker exec -it "$1" /bin/bash
}
alias dps='docker ps'
# For ubuntu After editing, run source ~/.bash_aliases
# For Centos / redhat After editing, run source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment