安装 [package name] > yum install [package name] > rpm -ivh [software name] 例: > yum install mysql > rpm -ivh MySQL-client-3.23.57-1.i386.rpm 移除 [package name] > yum remove [package name] > rpm -e [software name] 例: > yum remove httpd > rmp -e httpd 搜索 [package name] > yum search [package name] 例: > yum search httpd 更新 [package name] > yum update [package name] OR yum list updates 查看已安装包 > yum list installed > yum list installed | grep “packagename” > rpm –ql [packagename] 例如: > yum list installed | grep “ httpd” > rpm –ql httpd *yum -y install [package name] = install something without asking question/ using default setting *yum install httpd = install apache *yum install mysql = install mysql client *yum install mysql-server 安装 pico > yum -y install nano > cd /bin/ && ln -s nano pico 使用 pico 替代 vi > pico /etc/resolv.conf
rsync -avurtopg -P 32168 ./abc/ 123.123.123.123:/abc/ 或: 源机: cd && ssh-keygen -t dsa 目标机: cat source-server:/root/.ssh/id_dsa.pub >> /root/.ssh/authorized_keys
crontab -e 1 1 * * * /home/ispc/cron/kill_httpd.sh vi /home/ispc/cron/kill_httpd.sh >> ps aux | grep -ie http | awk '{print $2}' | xargs kill -9 相关链接 : http://en.wikipedia.org/wiki/Cron