LINUX 一些操作
阿新 • • 發佈:2018-12-10
sudo su # 切換到root模式
echo 3 > /proc/sys/vm/drop_caches # 清除cache記憶體至free
su username # 返回到~目錄
方法1:whereis python
檢視所有python的路徑,不止一個
方法2:which python
檢視當前使用的python路徑
scp -r [email protected]:/home/username/program/covering/model_fcn/cla/uface_celeb A/resnet/alldata_demo ./
# -r 資料夾
scp [email protected]:/home/username/program/covering/model_fcn/cla/uface_celeb A/resnet/alldata_demo ./
# 檔案
Ubuntu 16.04安裝配置Samba服務
https://blog.csdn.net/wbaction/article/details/72758673
sudo mount -t cifs -o username=username,password=123456789,uid=$(id -u),gid=$(id -g) //192.168.1.8/workspace/username /home/username/store --rw
import mxnet as mx # error on this line
libcudart.so.8.0: cannot open shared object file: No such file or directory
所需的libcudart.so.8.0如果正確安裝的話,以下兩種方法同理:
sudo ldconfig /usr/local/cuda-9.2/lib64
(轉自libcudart.so.8.0: cannot open shared object file: No such file or directory)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-8.0/lib64。如果仍然不行,再嘗試執行: export PATH=$PATH:/usr/local/cuda-8.0/bin export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda-8.0/lib64 source /etc/profile
若需要將檔案移到根目錄下,需要在命令前面加上sudo