Howdonew  

conda 相关命令


conda --version
# 显示conda 版本
conda info --envs
# 查看当前存在环境
conda create -n your_env_name python=X.X
# 创建新的虚拟环境
conda activate your_env_name 
# 激活虚拟环境
conda remove -n your_env_name --all
# 删除虚拟环境

添加阿里源
#设置搜索时显示通道地址   
conda config --add channels https://mirrors.aliyun.com/pypi/simple/  

# 当前的 cofig
conda config --set show_channel_urls yes

# 查看添加的镜像:    
conda config --show    
# 当前channels文件
conda config --get channels  
# 删除源     
conda config --remove-key channels


nvcc -V 查看cuda版本
nvidia-smi 
最常用的参数是 -n, 后面指定是每多少秒来执行一次命令,1秒显示一次(linux)
watch -n 1 nvidia-smi

linux相关命令:

文件按列排列

ls -a1

获取文件权限

chmod +x *.sh  

Linux下分卷Zip文件的合并并解压缩

例如linux.zip.001, linux.zip.002, linux.zip.003...
首先cat linux.zip* > linux.zip合并为一个zip包;
然后unzip linux.zip解压zip包。

posted on 2021-03-10 09:34  Howdonew  阅读(69)  评论(0)    收藏  举报