[Terminal] alias ll='ls -l'终端重命名重启失效,不会自动保存
Tofloor
poster avatar
山海
deepin
2022-04-06 22:47
Author

image.png

Reply Favorite View the author
All Replies
babyfengfjx
Super Moderator
CQA
2022-04-06 22:52
#1
  • sudo vim ~/.bashrc
  • 录屏_deepin-terminal_20220406145011.gif
Reply View the author
SamLukeYes
deepin
2022-04-06 23:06
#2
babyfengfjx
  • sudo vim ~/.bashrc
  • 录屏_deepin-terminal_20220406145011.gif

编辑家目录里的文件还用 sudo 是什么鬼scream

Reply View the author
babyfengfjx
Super Moderator
CQA
2022-04-06 23:13
#3
SamLukeYes

编辑家目录里的文件还用 sudo 是什么鬼scream

哈哈,习惯性了😂

Reply View the author
jia954951185
deepin
2022-04-06 23:41
#4

别搞别名了,

创建一个ll文件,写上这些东西

#!/bin/bash
ls -l

把权限给了

直接甩到/usr/bin/

目录下,完活

Reply View the author
jia954951185
deepin
2022-04-06 23:42
#5
jia954951185

别搞别名了,

创建一个ll文件,写上这些东西

#!/bin/bash
ls -l

把权限给了

直接甩到/usr/bin/

目录下,完活

简单不折腾

Reply View the author
jia954951185
deepin
2022-04-07 00:15
#6
jia954951185

别搞别名了,

创建一个ll文件,写上这些东西

#!/bin/bash
ls -l

把权限给了

直接甩到/usr/bin/

目录下,完活

Reply View the author
如何优雅deepin
deepin
2022-04-07 05:13
#7

也阔以vim ~/.bash_aliases 哦

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2022-04-07 06:03
#8

alias本来就是重启就删除的

想永久添加需要改配置

当然写一个shell放到~/.local/bin就好了

Reply View the author
[^_^]
deepin
2022-04-07 22:37
#9

alias 写配置文件里就好。

比如 ~/.profile 之类的。

我一堆自己的 alias。

Reply View the author
山海
deepin
2022-06-29 18:35
#10
babyfengfjx
  • sudo vim ~/.bashrc
  • 录屏_deepin-terminal_20220406145011.gif

谢谢,这也太好了

Reply View the author