官术网_书友最值得收藏!

9.11 Configuring Aliases

As you gain proficiency with the shell environment it is likely that you will find yourself frequently issuing commands with the same arguments. For example, you may often use the ls command with the l and t options:

$ ls –lt

To reduce the amount of typing involved in issuing a command, it is possible to create an alias that maps to the command and arguments. For example, to create an alias such that entering the letter l will cause the ls –lt command to be executed, the following statement would be used:

$ alias l="ls –lt"

Entering l at the command prompt will now execute the original statement.

主站蜘蛛池模板: 丹江口市| 故城县| 清水县| 花莲市| 新乡县| 泾源县| 安远县| 昌都县| 屯门区| 柳河县| 沂水县| 修武县| 翁源县| 柳州市| 稻城县| 黑水县| 华坪县| 泽普县| 丰都县| 大足县| 铜陵市| 五大连池市| 白沙| 白银市| 兴宁市| 寻乌县| 临朐县| 苗栗县| 洛南县| 县级市| 沈阳市| 龙川县| 洮南市| 丹寨县| 康平县| 筠连县| 大石桥市| 永仁县| 靖州| 宝山区| 西畴县|