:: How to fix /etc/bashrc read only issue on CentOS
+ error permission denied
# echo "alias ftp='/usr/bin/ftp'" >> /etc/bashrc -bash: /etc/bashrc: Permission denied # ls -l /etc/bashrc -rw-r--r-- 1 root root 1708 Sep 22 2009 /etc/bashrc
+ check and change attribute file
# lsattr /etc/bashrc ----i-------- /etc/bashrc # chattr -i /etc/bashrc # lsattr /etc/bashrc ------------- /etc/bashrc
+ edit the file
# echo "alias ftp='/usr/bin/ftp'" >> /etc/bashrc
+ checking the file
# tail -n1 /etc/bashrc alias ftp='/usr/bin/ftp'
:: Links
+ Google