close

[sean@localhost ~]$ alias
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
[sean@localhost ~]$

--

[sean@localhost ~]$ alias grep='grep --color'
[sean@localhost ~]$ cat /etc/passwd | grep sean
sean:x:501:501::/home/sean:/bin/bash

--

vi /etc/sean/.bashrc

 # .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# User specific aliases and functions

alias grep='grep --color'

 

------

移除 alias 設定

unalias

暫時停用

\grep (用反斜線)

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 sean 的頭像
    sean

    My Source Code

    sean 發表在 痞客邦 留言(0) 人氣()