什么手机游戏能作弊器:Ubuntu简洁update--upgrade--autoclean--autoremove命令

来源:百度文库 编辑:中财网 时间:2024/05/11 04:19:45
为了节省自己的时间,用了下面几个小技巧

Step 1    ----------------------------------------------------------------------
$vi update.sh

and paste these command into "update" file(没有前面的行号)

#!/bin/sh
sudo apt-get upgrade
sudo apt-get update
sudo apt-get autoclean
sudo apt-get autoremove
echo "Done with upgrade--update--autoclean--autoremove"

保存退出
Step 2    ----------------------------------------------------------------------
$chmod +x update.sh
Step 3    ----------------------------------------------------------------------
$sudo mv update.sh /usr/bin/
Step 4    ----------------------------------------------------------------------
$sudo gedit ~/.bashrc
and add the line alias update='sh /usr/bin/update.sh'
save and exit.

从此以后,自己要搞什么小动作,升级之类的,只要输入update就可以了。吼吼