pycod
很多人在说我们讲故事吹NB 但是我们吹过的NB ,正在一一变为现实 !!!!!

第一步将alias ll='ls -l'添加到/etc/profile

# head /etc/profile
# /etc/profile
alias ll='ls -l'
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.

第二步

# source /etc/profile

#ll

###################################################

问题:常用命令“ll”失效,如图所示

 

"ll"命令不是linux的基本命令,它是"ls -l"的别名,部分版本并不直接支持“ll”命令输出。

 

解决方法:

运行“vi ~/.bashrc”,查看该文件里是否有“alias ll='ls -l'”这样的数据,如有,将数据前的“#”去掉,如果没有,将“alias ll='ls -l'”加进去并保存,然后运行“source ~/.bashrc”命令,即可成功。如下图:


————————————————
版权声明:本文为CSDN博主「themeth」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/themeth/java/article/details/81005632

posted on 2020-06-17 16:57  pycod  阅读(1829)  评论(0编辑  收藏  举报