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

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.

主站蜘蛛池模板: 泾川县| 来安县| 年辖:市辖区| 抚宁县| 巨野县| 金阳县| 顺平县| 霍山县| 子洲县| 卓尼县| 文昌市| 浠水县| 定结县| 蒙城县| 仁怀市| 绿春县| 绥中县| 大兴区| 潞城市| 察雅县| 长寿区| 古丈县| 尤溪县| 仙居县| 海盐县| 元谋县| 甘肃省| 澜沧| 内丘县| 泗洪县| 郧西县| 叙永县| 木兰县| 光泽县| 吉木萨尔县| 雷州市| 隆林| 庆安县| 固原市| 定安县| 漳州市|