一、操作命令
ls -a #查看隐藏文件tar -xvf file.gz #解压vim -b xxx.shsudo apt-get remove packagename #卸载包
二、环境变量设置
.bashrc #本地登录时读取.bash_profile #远程登录时读取In-s pwd'/* -/bin #安装软件常用,将当前目录软连接到bin目录(相当于设置环境变量)echo "export PATH=/mnt/e/ubuntu/software/sratoolkit/bin:\$PATH">>~/.bashrcsource ~/.bashrc #激活添加的环境变量
三、ubuntu命令
apt-get update#Ubuntu更新apt-cache search soft name or soft descriptionapt-get install soft-name
四、centos命令
yum update#Centos更新yum search soft name or soft descriptionyum install soft official_name
五、软件安装
Python包管理器安装
easy_install package_namepip install package_name-i #https://pypi.tuna.tsinghua.edu.cn/simplel
Python包手动源码安装
python setup.py buildpython setup.py install
conda安装包
conda install package_name
安装anaconda
wget,-c https://repo.anaconda.com/archive/Anaconda2-5.1.0-Linux-x86 64.sh#-p指定安装路径#-b-f不做提示,直接安装bash Anaconda2-5.1.0-Linux-x86 64.sh-b-f-p~/conda
配置anaconda镜像
conda config--addchannelsconda-forge#Lowestpriorityconda config--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/conda config--addchannelsr#Optionalconda config--addchannelsdefaultsconda config--addchannelsbioconda#增加软件支持conda config--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/#Anocanda清华镜像,国内镜像,加速下载conda config--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/#清华通道,最高优先级conda config--addchannelshttps://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/conda config--setshow_channel_urlsyes
多线程
sudo apt-get install axelaxel -n 10 -o /tmp/ http://testdownload.net/test.tar.gz-n 指定线程数-o 指定另存为目录-s 指定每秒的最大比特数-q 静默模式
