login scripts for easy use
after terminal login, i usually change the following login script for convenient use:
(1) by default, the user is zaurus.
/home/zaurus/.profile
if [-f ~/.bashrc]; then
. ~/.bashr;
fi
su
that makes the login change to root automatically
(2) adding some useful alias
/home/zaurus/.bashrc
PS1="[\u@\w]\$ "
alias ff="find / | grep"
alias la="ls -a"
(3) copy /home/zaurus/.bashrc to /home/root
0 Comments:
Post a Comment
<< Home