一、操作命令

  1. ls -a #查看隐藏文件
  2. tar -xvf file.gz #解压
  3. vim -b xxx.sh
  4. sudo apt-get remove packagename #卸载包

二、环境变量设置

  1. .bashrc #本地登录时读取
  2. .bash_profile #远程登录时读取
  3. In-s pwd'/* -/bin #安装软件常用,将当前目录软连接到bin目录(相当于设置环境变量)
  4. echo "export PATH=/mnt/e/ubuntu/software/sratoolkit/bin:\$PATH">>~/.bashrc
  5. source ~/.bashrc #激活添加的环境变量

三、ubuntu命令

  1. apt-get update#Ubuntu更新
  2. apt-cache search soft name or soft description
  3. apt-get install soft-name

四、centos命令

  1. yum update#Centos更新
  2. yum search soft name or soft description
  3. yum install soft official_name

五、软件安装

Python包管理器安装

  1. easy_install package_name
  2. pip install package_name-i #https://pypi.tuna.tsinghua.edu.cn/simplel

Python包手动源码安装

  1. python setup.py build
  2. python setup.py install

conda安装包

  1. conda install package_name

安装anaconda

  1. wget,-c https://repo.anaconda.com/archive/Anaconda2-5.1.0-Linux-x86 64.sh
  2. #-p指定安装路径
  3. #-b-f不做提示,直接安装
  4. bash Anaconda2-5.1.0-Linux-x86 64.sh-b-f-p~/conda

配置anaconda镜像

  1. conda config--addchannelsconda-forge#Lowestpriority
  2. conda config--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  3. conda config--addchannelsr#Optional
  4. conda config--addchannelsdefaults
  5. conda config--addchannelsbioconda#增加软件支持
  6. conda config--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/#Anocanda清华镜像,国内镜像,加速下载
  7. conda config--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  8. conda config--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/#清华通道,最高优先级
  9. conda config--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
  10. conda config--setshow_channel_urlsyes

多线程

  1. sudo apt-get install axel
  2. axel -n 10 -o /tmp/ http://testdownload.net/test.tar.gz
  3. -n 指定线程数
  4. -o 指定另存为目录
  5. -s 指定每秒的最大比特数
  6. -q 静默模式