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

  • 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.

主站蜘蛛池模板: 鱼台县| 台中市| 卓资县| 楚雄市| 黑河市| 东丰县| 若尔盖县| 三江| 织金县| 开阳县| 祁阳县| 穆棱市| 侯马市| 固镇县| 轮台县| 建瓯市| 拉萨市| 奉化市| 晴隆县| 福海县| 鄂托克旗| 张家界市| 崇文区| 同德县| 阿巴嘎旗| 海门市| 岑巩县| 雷波县| 若尔盖县| 丰都县| 瑞金市| 南安市| 崇文区| 南溪县| 界首市| 岳普湖县| 吴川市| 铁岭县| 静宁县| 巨野县| 彩票|