Last active
September 24, 2020 09:46
-
-
Save Boboss74/4161647019c7616fe68af7b749b369f5 to your computer and use it in GitHub Desktop.
aliases debian/ubuntu (~/.bash_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
alias ll='ls -laF' | |
# display numerical chmod within ls, https://stackoverflow.com/a/50686667/4711132 | |
alias lschmod="ls -laF --color=always -F --group-directories-first |awk '{k=0;s=0;for(i=0;i<=8;i++){;k+=((substr(\$1,i+2,1)~/[rwxst]/)*2^(8-i));};j=4;for(i=4;i<=10;i+=3){;s+=((substr(\$1,i,1)~/[stST]/)*j);j/=2;};if(k){;printf(\"%0o%0o \",s,k);};print;}'" | |
# docker | |
alias dpsa='docker ps --all' | |
alias drma='docker stop $(docker ps -aq) && docker rm $(docker ps -aq)' | |
# npm | |
alias nrb='npm run build' | |
alias nrt='npm run test' | |
alias nrut='npm run unit-tests' | |
alias nrft='npm run functional-tests' | |
alias nrbd='npm run build-doc' | |
# misc | |
alias genpass='apg -MNC -m 3 -x 6 -d && echo' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment