Linux 001
一、w
查看用戶登錄情況
二、top
查看誰在執(zhí)行什么命令
三、查看一個文件夾的內(nèi)容
1、進(jìn)入到文件夾后ll
2、ll [dir]/*
3、創(chuàng)建十個文件夾:mkdir folder{1..10}
四、cd ~
回到自己的地盤
五、wget
下載網(wǎng)絡(luò)數(shù)據(jù),很牛逼
[使用wget批量下載geo數(shù)據(jù)集的全部文件?- 知乎 (zhihu.com)]
mkdir ~/scRNA/atac?
cd ~/scRNA/atac?
awk '{print $1}' list.txt ?|while read id;do (nohup wget https://ftp.ncbi.nlm.nih.gov/geo/series/GSE129nnn/GSE129785/suppl/$id & );done
六、cat more less head tail
查看文件
七、awk sed grep
linux三劍客,三駕馬車
八、tr
轉(zhuǎn)換,text replace
echo $PATH | tr ':' '\n'
九、安裝軟件
mkdir -p ~/biosoft/bowtie2
cd?~/biosoft/bowtie2
wget?https://sourceforge.net/projects/bowtie-bio/files/bowtie2/2.5.1/
然后解壓,make,make install
十、調(diào)用函數(shù)
1、賦值$:bowtie2=/share/home/Olive/biosoft/bowtie2/bowtie2-2.5.1-linux-x86_64/bowtie2
2、別名alias:alias?bowtie2='/share/home/Olive/biosoft/bowtie2/bowtie2-2.5.1-linux-x86_64/bowtie2',然后bowtie2,這個不用$
3、環(huán)境變量export:export PATH="$PATH:/share/home/Olive/biosoft/bowtie2/bowtie2-2.5.1-linux-x86_64“
4、永久修改
務(wù)必理解:出了任何問題就vim ~/.bashrc,然后修改
echo 'export PATH="/share/home/Olive/biosoft/tree/tree-2.1.0/bin:$PATH" ' >> ~/.bashrc?
source ~/.bashrc
echo 'export PATH="$PATH:/share/home/Olive/biosoft/tree/tree-2.1.0"'?>>~/.bashrc?