Created
May 13, 2021 06:55
-
-
Save e5k/3621f78f79a65e4fb35390598df5ca88 to your computer and use it in GitHub Desktop.
Useful commands in bashrc
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
alias cp='cp -i' | |
alias mv='mv -i' | |
alias rm='rm -iv' | |
alias mkdir='mkdir -p' | |
alias ps='ps auxf' | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' | |
alias .....='cd ../../../..' | |
# Alias's for multiple directory listing commands | |
alias la='ls -Alh' # show hidden files | |
alias ls='ls -aFh --color=always' # add colors and file type extensions | |
alias lx='ls -lXBh' # sort by extension | |
alias lk='ls -lSrh' # sort by size | |
alias lc='ls -lcrh' # sort by change time | |
alias lu='ls -lurh' # sort by access time | |
alias lr='ls -lRh' # recursive ls | |
alias lt='ls -ltrh' # sort by date | |
alias lm='ls -alh |more' # pipe through 'more' | |
alias lw='ls -xAh' # wide listing format | |
alias ll='ls -Fls' # long listing format | |
alias labc='ls -lap' #alphabetical sort | |
alias lf="ls -l | egrep -v '^d'" # files only | |
alias ldir="ls -l | egrep '^d'" # directories only |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment