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

  • Ubuntu 20.04 Essentials
  • Neil Smyth
  • 115字
  • 2021-06-11 17:39:43

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.

主站蜘蛛池模板: 定结县| 柳江县| 镇雄县| 大荔县| 遵义县| 库伦旗| 建宁县| 和平区| 长沙市| 潞西市| 嘉兴市| 镇宁| 揭阳市| 扶风县| 呼伦贝尔市| 阿鲁科尔沁旗| 荔浦县| 沭阳县| 黄龙县| 锡林郭勒盟| 建瓯市| 文安县| 阿拉善右旗| 婺源县| 旬邑县| 特克斯县| 连江县| 丹阳市| 岳西县| 运城市| 大同县| 姜堰市| 疏勒县| 乌兰县| 资阳市| 社旗县| 通渭县| 吉木萨尔县| 林周县| 宜春市| 侯马市|