1. 程式人生 > >ubuntu常見的一些指令用法

ubuntu常見的一些指令用法

安裝deb包:
sudo dpkg -i xxxx.deb

win10 ubuntu 雙系統時間不同的修改方法:
timedatectl %檢視時間
sudo timedatectl set-local-rtc 1 %修改時間
timedatectl %檢視時間

尋找帶net的程序並殺死
ps -e | grep Net % ps -e 表示顯示所有的程序,grep Net表示找名字中帶Net的程序,並顯示其程序號
sudo kill -9 853 %kill -9表示強制關閉,之後跟的是程序號

ubuntu install pip:
sudo apt-get install python-pip

ubuntu install netease music:
http://music.163.com/#/download
sudo dpkg -i netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb
if wrong:
sudo apt-get -f install
sudo dpkg -i netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb

putty winscp project
命令列設定引數:

python xxx.py --images /path/to/images

執行

python xxx.py 

檢測linux系統中是否已經安裝了pip

pip --version

python 報錯: ImportError: cannot import name imread
有可能是沒有安裝scipy
也有可能需要安裝需要install PIL or Pillow

pip install Pillow