gentoo / linux / 未分类 · 2012年11月4日

linux桌面的一些快捷设置

usermod -G root evan
sudo vi /etc/sudoers
root ALL=(ALL) ALL
evan ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group sudo to execute any command
%sudo ALL=(ALL) ALL
vi .bashrc
alias vi=’vim’
alias halt=’sudo halt’
alias reboot=’sudo reboot’
alias ifconfig=’/sbin/ifconfig eth0 | grep ” inet addr” ‘
#alias ifconfig=”/sbin/ifconfig eth0 | grep ‘inet addr’ ”
#alias ifconfig=’/sbin/ifconfig |head’
alias ll=’ls -l’
alias go=’ssh -i /home/evan/.ssh/guest guest@11.0.10.91′