What I did after I installed Ubuntu 12.10

Define some safe commands: 

 Create file ~/bin/longliqwrc.sh

  
  
  
  
  1. alias rm='rm -i' 
  2. alias cp='cp -i' 
  3. alias mv='mv -i' 

Add the following lines to ~/.bashrc

  
  
  
  
  1. if [ -f ~/bin/longliqw.sh ]; then 
  2.     . ~/bin/longliqw.sh 
  3. fi 

Add the following lines to ~/.profile

  
  
  
  
  1. if [ -f "$HOME/.bashrc" ]; then 
  2.     . "$HOME/.bashrc" 
  3. fi 

 

你可能感兴趣的:(linux,ubuntu,ubuntu)