one
add alias ll='ls -l --color=auto
to /etc/profile
,
add source /etc/profile
to /root/.bashrc
and /home/username/.bashrc
other one
echo "alias ll='ls -l --color=auto'">>/etc/profile
echo "source /etc/profile">>/root/.bashrc
echo "source /etc/profile'">>/home/username/.bashrc
网友评论