【问题标题】:How to change the text of the command to run an app in Linux?如何更改命令文本以在 Linux 中运行应用程序?
【发布时间】:2020-02-12 03:37:55
【问题描述】:

我使用 Arch。例如,为了在终端中运行 Google Chrome,您必须运行长命令 google-chrome-stable。如何更改此命令以使其更简洁(例如chrome)?我经常从终端运行这个浏览器,因为当你在文本编辑器中编写一些 html/css 代码并使用浏览器运行它以查看它是如何工作时,它更方便 Web 开发。 谢谢!对不起,我的英语不是我的母语。

【问题讨论】:

  • 在文档中查找 bash 或您使用的任何 shell 的别名。

标签: linux google-chrome terminal command


【解决方案1】:

问题解决了。我刚刚将alias chrome="google-chrome-stable" 行添加到我的~/.bashrc 文件中并重新启动系统。

【讨论】:

    猜你喜欢
    • 2020-05-14
    • 2012-04-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-10
    • 1970-01-01
    • 2016-03-11
    相关资源
    最近更新 更多