1、vim ~/.bashrc
2、在文件末尾添加
alias ll="ls -l" alias tailf="tail -f"
3、. .bashrc (即时生效)
后续打开会自动生效
这两个在其他发行版里默认会有配置。
注:alias 是linux下给命令起别名的命令,也可以理解为基于现有命令自定义新命令的命令。
学到了
收藏备用
Popular Ranking
Popular Events
1、vim ~/.bashrc
2、在文件末尾添加
alias ll="ls -l"
alias tailf="tail -f"
3、. .bashrc (即时生效)
后续打开会自动生效
这两个在其他发行版里默认会有配置。
注:alias 是linux下给命令起别名的命令,也可以理解为基于现有命令自定义新命令的命令。