# Default to human readable figures # alias df='df -h' # alias du='du -h' # # Misc # alias less='less -r' # raw control characters # alias whence='type -a' # where, of a sort # alias grep='grep --color' # show differences in colour # alias egrep='egrep --color=auto' # show differences in colour # alias fgrep='fgrep --color=auto' # show differences in colour # # Some shortcuts for different directory listings # alias ls='ls -hF --color=tty' # classify files in colour # alias dir='ls --color=auto --format=vertical' # alias vdir='ls --color=auto --format=long' # alias ll='ls -l' # long list # alias la='ls -A' # all but . and .. # alias l='ls -CF' #
而我们要做的只是去掉#,启动即可:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Default to human readable figures alias df='df -h' alias du='du -h' # # Misc alias less='less -r' # raw control characters alias whence='type -a' # where, of a sort alias grep='grep --color' # show differences in colour alias egrep='egrep --color=auto' # show differences in colour alias fgrep='fgrep --color=auto' # show differences in colour # # Some shortcuts for different directory listings alias ls='ls -hF --color=tty' # classify files in colour alias dir='ls --color=auto --format=vertical' alias vdir='ls --color=auto --format=long' alias ll='ls -l' # long list alias la='ls -A' # all but . and .. alias l='ls -CF' #