2
如何列出在shell中定义的所有别名。 像下面的命令列出的所有文件/目录中的文件夹 我在的〜/ .bashrc定义了一些别名,我想列出所有在linux shell中获取所有别名
命令
ls in a directory
如何列出在shell中定义的所有别名。 像下面的命令列出的所有文件/目录中的文件夹 我在的〜/ .bashrc定义了一些别名,我想列出所有在linux shell中获取所有别名
ls in a directory
你想知道如果你有一个UNIX别名已设置特定的命令?
可以通过发出此命令行上很容易找到它:
alias
此命令将列出当前设置为你shell帐号的所有别名。
只需键入alias
在终端? 这应该会给你所有活跃的别名。
例如:
$alias
alias ..='cd ..'
alias ...='cd ../..'
alias ga='git add'
alias gc='git commit'
alias gitlg='git log --graph --pretty=format:'\''%Cred%h%Creset -
%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-
commit'
alias gs='git st'
alias ll='ls -l'
alias ls='ls -F --color=auto --show-control-chars'
[列出鱼/ bash shell中所有可用的别名]的可能副本(https://stackoverflow.com/questions/39942004/list-all-aliases-available-in-fish-bash-shell) –