$sudo vi /etc/environment
編輯使用者變數:
$sudo vi /etc/profile
重新載入環境變數:
source /etc/profile
source /etc/environment
$sudo vi /etc/environment
$sudo vi /etc/profile
source /etc/profile
source /etc/environment
$ps aux搜尋要找的程式:(例如notepad)
$ps aux|grep notepad強制關閉程式:(例如notepad++)
$killall notepad++
tar -xvf ~/Downloads/jdk-7u6-linux-i586.tar.gz
sudo mkdir -p /usr/lib/jvm/jdk1.7.0
sudo mv jdk1.7.0_06/* /usr/lib/jvm/jdk1.7.0/
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1
$sudo chmod -R a+w /var/www/