先接著昨日的學(xué)習(xí)
練習(xí)cd操作:進(jìn)入tmp目錄,然后查看當(dāng)前路徑,然后返回主目錄

練習(xí)刪除操作:
刪除doodle.txt
刪除整個(gè)huahua目錄
刪除rm_test(已經(jīng)是空目錄了)

vi
新建腳本或文本文檔
進(jìn)入編輯模式之后,先輸入 i ,進(jìn)入輸入模式
編輯完成后,按 Esc鍵,退出編輯模式
在左下角輸入:x,保存并推出

cat
cat 文本文件 查看并將文本文件的內(nèi)容輸入到屏幕
q 退出cat
head 默認(rèn)輸出前十行
tail 默認(rèn)輸出后十行
加- n 行數(shù) 自定義輸出幾行

cp
復(fù)制文件
cp file1 file2 復(fù)制file1,命名為file2

mv
將文件移入文件夾,或者重命名
mv file1 路徑a 將file1移入到路徑a
mv file1 file2 將file1重命名為file2

解決下面問題 https://man.linuxde.net
ls輸出的是橫向的列表,怎樣輸出長格式列表(提示:搜索ls)
-l:以長格式顯示目錄下的內(nèi)容列表。輸出的信息從左到右依次包括文件名,文件類型、權(quán)限模式、硬連接數(shù)、所有者、組、文件大小和文件的最后修改時(shí)間等;

如何查看長格式列表中文件的大???(提示:ls)
ls -lh

查看Linux系統(tǒng)版本
內(nèi)存與硬盤空間?(提示:分別是三個(gè)命令)
lsb_release -a 查看系統(tǒng)版本
df -lm 查看硬盤空間情況
free -m 查看內(nèi)存

怎樣建立類似/tmp/tmp1/tmp1.1 這樣的層級目錄(提示:搜索mkdir)
mkdir -p tmp/tmp1/tmp1.1

怎樣刪除這些層級目錄(提示:搜索rm)
rm -r 遞歸處理,將指定目錄下的所有文件與子目錄一并處理


Day3 Linux環(huán)境下的軟件安裝
Miniconda
conda(Linux的應(yīng)用商店)的精華版
下載miniconda
1.搜索“miniconda 清華" (清華的conda鏡像網(wǎng)站)
- 查看服務(wù)器是多少位的
uname -a64位
uname -a.png - 安裝最新版本
- 復(fù)制下載鏈接
- 進(jìn)入biosoft目錄
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh
wget.png
安裝miniconda
bash Miniconda3-latest-Linux-x86_64.sh
激活miniconda
source ~/.bashrc

添加鏡像
# 使用清華鏡像 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda conda config --set show_channel_urls yes
使用conda
查看當(dāng)前服務(wù)器上安裝的所有軟件列表
conda list

搜索conda軟件
conda search soft
安裝軟件
conda install soft -y
卸載軟件
conda remove soft -y
進(jìn)階
查看conda環(huán)境
conda info --envs

