How to find out where alias (in the bash sense) is defined when running Terminal in Mac OS X

后端 未结 10 1137
时光取名叫无心
时光取名叫无心 2020-12-13 03:50

How can I find out where an alias is defined on my system? I am referring to the kind of alias that is used within a Terminal session launched from Mac OS X (10.6.3).

10条回答
  •  一个人的身影
    2020-12-13 04:13

    you can just simply type in alias on the command prompt to see what aliases you have. Otherwise, you can do a find on the most common places where aliases are defined, eg

    grep -RHi "alias" /etc /root
    

提交回复
热议问题