實驗概述
實驗背景
Linux是一套免費使用和自由傳播的類Unix操作系統,是一個基于POSIX和Unix的多用戶、多任務、支持多線程和多CPU的操作系統。它能運行主要的Unix工具軟件、應用程序和網絡協議。它支持32位和64位硬件。Linux繼承了Unix以網絡為核心的設計思想,是一個性能穩定的多用戶網絡操作系統。**
實驗介紹
本實驗基于科研助手環境,主要介紹Linux的基本命令,幫助大家了解并掌握基本的Linux命令。
實驗環境
1、進入科研助手控制臺-應用商城頁面,選擇【類型】為“教學與實踐”,“Linux系統教學與實踐"鏡像,點擊“使用此鏡像”
2、進入開發機購買頁面,資源可以選擇CPU,CPU: 4核 內存: 16GB即可滿足教學環境。框架版本為預置的jupyter-mysqltraining。
3、購買完成后,回到開發機列表,點擊右側操作欄【打開】進入開發機。
4、跳轉至jupyter環境,點擊【終端】可直接進入實驗環境。
前置說明
實驗手冊的文件名以及目錄僅供參考,大家可設置為自己便于操作的文件名或者目錄,或者加上唯一標識,比如名字縮寫。
命令實操
查看文件夾
以當前所在目錄為/home為例:
步驟1 查看當前文件夾信息
輸入:
ls
輸出:
batchcom dataset-bc-pub
使用ls命令,查看當前目錄下的所有文件及文件夾。
輸入命令ls --help 查看ls命令詳情。
輸入:
ls --help輸出:
Usage: ls [OPTION]... [FILE]... List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort is specified. Mandatory arguments to long options are mandatory for short options too. -a, --all ? ? ? ? ? ? ? ? ?do not ignore entries starting with . -A, --almost-all ? ? ? ? ? do not list implied . and .. ? --author ? ? ? ? ? ? ? with -l, print the author of each file ... ... GNU coreutils online help: <//www.gnu.org/software/coreutils/> For complete documentation, run: info coreutils 'ls invocation'ls的命令參數有很多,本實驗將一些經常使用的參數進行一一列舉,幫助大家去了解ls命令。
步驟2 列表方式查看當前文件夾信息
輸入:
ls -l
輸出:
total 8
-rw-r--r-- 1 batchcom batchcom 7637 Apr ?1 10:44 Mysql教學.ipynb
drwxr-x--- 1 batchcom batchcom ? 70 Apr ?1 10:02 batchcom
drwxrwxrwx 8 root ? ? root ? ? ?168 Mar 15 22:46 dataset-bc-pub
ls -l 按照列表的形式,輸出當前目錄的所有信息。
一般關注文件的類型、文件的權限、文件所屬的用戶及用戶組、文件的創建時間和文件的名稱,對于文件的硬鏈接數本實驗暫不關注。
這里的信息可以分為8個部分。
參數選項 描述 備注 - d 描述當前文件類型 rw-rw-r-- 描述當前文件的權限,三個為一組 第一組對應的為該文件用戶的權限 第二組為文件所屬用戶組的權限 第三組為其他用戶組的權限 r:可讀 w:可寫 x:可執行 -:無權限 1 1 8 batchcom 當前文件的所屬的用戶 文件屬于batchcom用戶創建 batchcom 當前文件所屬的用戶組 文件歸屬于batchcom用戶組 7637 70 168 Apr 1 10:44 文件的創建時間 Mysql教學.ipynb 文件的名稱 ls -l 在Linux使用中也會簡寫為 ll 。
步驟3 查看文件夾中所有信息
輸入:
ls -a
輸出:
. .. .ipynb_checkpoints Mysql教學.ipynb batchcom dataset-bc-pub
ls -a 把當前目錄的所有信息都列舉出來,同時包含隱藏文件。
在Linux系統中 . 開頭的文件一般是隱藏文件。
. 表示當前文件夾。
.. 表示父目錄。
步驟4 按文件大小查看文件夾信息
輸入:
ls -lS
輸出:
total 56
-rw-r--r-- 1 batchcom batchcom 55611 Apr 1 10:53 Mysql教學.ipynb
drwxrwxrwx 8 root root 168 Mar 15 22:46 dataset-bc-pub
drwxr-x--- 1 batchcom batchcom 70 Apr 1 10:02 batchcom
參數S使得ls的輸出項按照文件大小從大到小排序。
-lS ls命令支持多個參數項拼湊在一起生效。這里表示ls的輸出項按照文件大小從大到小以文件列表的形式展示輸出項。也可以分開來生效,即 ls -l -S。
步驟5 列表方式查看其他目錄
輸入:
ls -l /
輸出:
total 4
lrwxrwxrwx 1 root root 7 Jan 26 10:05 bin -> usr/bin
drwxr-xr-x 2 root root 6 Apr 18 2022 boot
drwxr-xr-x 5 root root 440 Apr 1 10:50 dev
drwxr-xr-x 1 root root 4096 Apr 1 10:52 etc
drwxrwxrwx 1 root root 47 Apr 1 10:53 home
lrwxrwxrwx 1 root root 7 Jan 26 10:05 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Jan 26 10:05 lib32 -> usr/lib32
lrwxrwxrwx 1 root root 9 Jan 26 10:05 lib64 -> usr/lib64
lrwxrwxrwx 1 root root 10 Jan 26 10:05 libx32 -> usr/libx32
drwxr-xr-x 2 root root 6 Jan 26 10:05 media
drwxr-xr-x 2 root root 6 Jan 26 10:05 mnt
drwxr-xr-x 1 root root 35 Apr 1 09:59 opt
dr-xr-xr-x 1420 root root 0 Apr 1 10:50 proc
drwx------ 2 root root 37 Jan 26 10:13 root
drwxr-xr-x 1 root root 20 Apr 1 10:51 run
lrwxrwxrwx 1 root root 8 Jan 26 10:05 sbin -> usr/sbin
drwxr-xr-x 2 root root 6 Jan 26 10:05 srv
dr-xr-xr-x 13 root root 0 Mar 17 00:26 sys
drwxrwxrwt 1 root root 28 Apr 1 10:52 tmp
drwxr-xr-x 1 root root 53 Jan 26 10:05 usr
drwxr-xr-x 1 root root 41 Jan 26 10:13 var
ls 一般默認是查看當前目錄下的文件信息,也支持查看其他文件夾的信息。在命令最后緊跟一個絕對路徑或者相對路徑,可以查看輸入的path下的目錄信息。
查看當前目錄的絕對路徑
步驟1 查看當前目錄的絕對路徑
輸入:
pwd
輸出:
/home
表示當前路徑的絕對路徑。
在Linux操作中,需要通過pwd命令查看當前路徑的絕對路徑,避免因為手寫錯誤或者記憶錯誤造成文件路徑寫錯,減少可預見的錯誤操作。
在Linux操作過程中,Shell客戶端界面只會顯示當前父目錄的名稱,而不會顯示全部的目錄地址。
切換目錄
步驟1 切換至根目錄
輸入:
cd /
輸入:
ls
輸出:
bin dev home lib32 libx32 mnt proc run srv tmp var
boot etc lib lib64 media opt root sbin sys usr
通過Shell的客戶端界面可以看到,當前目錄從~切換到了/,也就是根目錄下,同時查看根目錄下的文件信息,進行核實。
~ 波浪線代表的目錄地址為當前用戶的主目錄。
輸入:
cd ~
輸入:
pwd
輸出:
/home/batchcom
輸入:
ls
輸出:
log
可以看到通過切換路徑為~,可以直接切換到當前用戶的用戶主目錄。
創建目錄
步驟1 創建新目錄
輸入:
cd /home
mkdir ./mkdir_test
輸入:
ll
輸出:
total 56
-rw-r--r-- 1 batchcom batchcom 55611 Apr 1 10:53 Mysql教學.ipynb
drwxr-x--- 1 batchcom batchcom 70 Apr 1 10:56 batchcom
drwxrwxrwx 8 root root 168 Mar 15 22:46 dataset-bc-pub
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 10:58 mkdir_test
在用戶目錄下創建一個文件夾,命名為mkdir_test。
mkdir 創建目錄默認在當前目錄下創建指定的文件夾,也可以緊跟對應的路徑。
輸入:
mkdir --help
步驟2 創建多級目錄
輸入:
mkdir -p /home/dir1/dir2/dir3
輸入:
ls -R /home/dir1
輸出:
/home/dir1:
dir2
/home/dir1/dir2:
dir3
/home/dir1/dir2/dir3:
mkdir默認只能在目錄下創建子目錄,無法在不存在的子目錄下創建孫子目錄。因此通過-p參數,遞歸地創建目錄,避免因為目錄不存在而造成目錄創建失敗。
如果不加-p參數。
輸入:
mkdir ~/dir11/dir2/dir3輸出:
mkdir: cannot create directory ‘/home/batchcom/dir11/dir2/dir3’: No such file or directory用戶無法創建目錄dir3,因為不存在目錄/root/dir11/dir2。
刪除目錄
步驟1 刪除一個目錄
輸入:
rmdir /home/dir1
輸出:
rmdir: failed to remove '/home/dir1': Directory not empty
rmdir在刪除目錄的時候需要目錄內為空,即不存在文件和文件夾。
可以通過rmdir --help查看命令使用。
輸入:
rmdir --help
步驟2 刪除多級目錄
如果需要刪除多個文件夾,需要添加-rf參數。
輸入:
rm -rf /home/dir1
輸入:
ll
輸出:
total 24
drwxrwxrwx 1 root root 109 Apr 1 13:00 ./
drwxr-xr-x 1 root root 51 Apr 1 11:46 ../
drwxr-xr-x 1 batchcom batchcom 42 Apr 1 10:44 .ipynb_checkpoints/
-rw-r--r-- 1 batchcom batchcom 16749 Apr 1 11:50 Mysql教學.ipynb
drwxr-x--- 1 batchcom batchcom 109 Apr 1 12:57 batchcom/
drwxrwxrwx 5 root root 71 Mar 26 15:42 dataset-assist-0/
drwxrwxrwx 4 root root 4096 Feb 26 16:59 dataset-bc-pub/
drwxrwxrwx 3 root root 83 Mar 20 18:10 dataset-fs-0/
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 12:57 mkdir_test/
創建文件
步驟1 創建空白文件
輸入:
cd ~
輸入:
touch file1
輸入:
ls
輸出:
file1 log mkdir_test
創建一個名叫file1的空白文件。
輸入:
touch --help
步驟2 創建指定時間戳的文件
輸入:
touch -t 202504011230 file2
輸入:
ll
輸出:
total 20
drwxr-x--- 1 batchcom batchcom 135 Apr 1 13:02 ./
drwxrwxrwx 1 root root 109 Apr 1 13:00 ../
-rw------- 1 batchcom batchcom 1203 Apr 1 11:48 .bash_history
-rw-r--r-- 1 batchcom batchcom 220 Jan 7 2022 .bash_logout
-rw-r--r-- 1 batchcom batchcom 4240 Mar 11 15:02 .bashrc
drwxr-xr-x 3 batchcom batchcom 17 Apr 1 10:02 .cache/
drwxr-xr-x 1 batchcom batchcom 29 Apr 1 10:44 .ipython/
drwxr-xr-x 1 batchcom batchcom 33 Apr 1 10:44 .jupyter/
drwxr-xr-x 1 batchcom batchcom 19 Apr 1 09:59 .local/
-rw-r--r-- 1 batchcom batchcom 807 Jan 7 2022 .profile
drwxr-xr-x 1 batchcom batchcom 29 Apr 1 09:59 .supervisor-pid/
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 12:30 file2
drwxr-xr-x 1 batchcom batchcom 24 Apr 1 09:59 log/
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 12:57 mkdir_test/
使用-t參數創建了一個指定的時間戳202504011230的文件file2。
-t參數后面緊跟的時間戳格式為[[CC]YY]MMDDhhmm[.ss]。
步驟3 更新文件時間戳
輸入:
touch -r file1 file2
輸入:
ls -l
輸出:
total 20
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file2
drwxr-xr-x 1 batchcom batchcom 24 Apr 1 09:59 log/
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 12:57 mkdir_test/
使用-r參數,指定file1文件的時間戳作為file2文件的時間戳。使得file2文件的時間戳得到了更新。
步驟4 創建多個文件
輸入:
touch file3 file4
輸入:
ls
輸出:
file1 file2 file3 file4 log mkdir_test
touch命令后緊跟多個文件名稱,會自動創建多個文件。
文件復制
步驟1 文件復制
輸入:
cp file1 file1_cp
輸入:
ls
輸出:
file1 file1_cp file2 file3 file4 log mkdir_test
通過cp命令復制file1文件,并命名為file1_cp。這里是重新創建了一個文件。
可以通過輸入cp --help查看使用規則:
cp --helpcp的命令雖然參數很多,但常用的參數比較少,一般都是直接復制文件即可。cp后面緊跟的就是兩個文件的路徑。
步驟2 保留文件屬性復制
使用-a參數復制文件保留文件屬性
輸入:
cp -a file1 file1_cp_a
輸入:
ls -l
輸出:
total 20
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file1_cp
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1_cp_a
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file2
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file3
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file4
drwxr-xr-x 1 batchcom batchcom 24 Apr 1 09:59 log/
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 12:57 mkdir_test/
file1_cp_a文件的所有屬性與file1保持一致。
步驟3 文件夾復制
創建一個新的文件夾dir1之后使用-r參數復制文件夾。
輸入:
mkdir dir1
輸入:
cp -r dir1 dir1_cp
輸入:
ls -l
輸出:
total 0
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 13:06 dir1
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 13:07 dir1_cp
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file1_cp
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1_cp_a
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file2
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file3
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file4
drwxr-xr-x 1 batchcom batchcom 24 Apr 1 09:59 log
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 12:57 mkdir_test
通過-r參數可以復制文件夾,也可以添加-a參數來復制文件夾的所有屬性。
輸入:
cp -a -r dir1 dir1_cp_a
輸入:
ls -l
輸出:
total 0
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 13:06 dir1
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 13:07 dir1_cp
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 13:06 dir1_cp_a
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file1_cp
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1_cp_a
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file2
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file3
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file4
drwxr-xr-x 1 batchcom batchcom 24 Apr 1 09:59 log
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 12:57 mkdir_test
文件移動
文件移動命令mv,通過mv移動文件,類似于Windows的剪切,同時做剪切過程中也可以進行文件的重命名。
可以使用mv -help查看使用規則,輸入:
mv --help
步驟1 文件移動
將文件file1移動至文件夾dir1中。
輸入:
mv file1 dir1/
輸入:
ll dir1/
輸出:
total 0
drwxr-xr-x 2 batchcom batchcom 19 Apr 1 13:09 ./
drwxr-x--- 1 batchcom batchcom 226 Apr 1 13:09 ../
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1
mv的第一個參數為對應的文件路徑,第二個參數為目標路徑。如果第二個參數為目錄路徑,那么移動之后的文件名稱保持一致;如果第二個參數為文件路徑,那么移動之后的文件名稱會自動重命名。
輸入:
mv file1_cp dir1/file1_cp_mv輸入:
ll dir1輸出:
total 0 drwxr-xr-x 2 batchcom batchcom 38 Apr 1 13:10 ./ drwxr-x--- 1 batchcom batchcom 210 Apr 1 13:10 ../ -rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1 -rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file1_cp_mv
移動完成之后原來的文件就會消失。
輸入:
ll
輸出:
total 0
drwxr-xr-x 2 batchcom batchcom 38 Apr 1 13:10 dir1
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 13:07 dir1_cp
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 13:06 dir1_cp_a
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1_cp_a
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file2
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file3
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file4
drwxr-xr-x 1 batchcom batchcom 24 Apr 1 09:59 log
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 12:57 mkdir_test
步驟2 文件夾移動
將文件夾dir1_cp移動至dir1。
輸入:
mv dir1_cp dir1
輸入:
ll dir1
輸出:
total 0
drwxr-xr-x 3 batchcom batchcom 53 Apr 1 13:11 ./
drwxr-x--- 1 batchcom batchcom 195 Apr 1 13:11 ../
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 13:07 dir1_cp/
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file1_cp_mv
文件夾的移動與文件移動是一樣的。是否會自動重命名看第二個參數是什么路徑。如果是目錄路徑則不重命名,如果不是則會自動重命名。
步驟3 移動文件夾內某些文件
移動dir1中的file開頭的文件至文件夾dir1_cp_a中。
輸入:
mv dir1/file* dir1_cp_a
輸入:
ll dir1
輸出:
total 0
drwxr-xr-x 3 batchcom batchcom 21 Apr 1 13:11 ./
drwxr-x--- 1 batchcom batchcom 195 Apr 1 13:11 ../
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 13:07 dir1_cp/
輸入:
ll dir1_cp_a
輸出:
total 0
drwxr-xr-x 2 batchcom batchcom 38 Apr 1 13:11 ./
drwxr-x--- 1 batchcom batchcom 195 Apr 1 13:11 ../
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file1_cp_mv
通過name*的方式去匹配文件夾中以name為開頭的文件。
文件刪除
通過命令rm做文件刪除操作。
可以通過rm --help查看使用規則,輸入:
rm --help
步驟1 刪除文件
刪除文件file2
輸入:
rm file2
輸入:
ls -l
輸出:
total 0
drwxr-xr-x 3 batchcom batchcom 21 Apr 1 13:11 dir1
drwxr-xr-x 2 batchcom batchcom 38 Apr 1 13:11 dir1_cp_a
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:01 file1_cp_a
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file3
-rw-r--r-- 1 batchcom batchcom 0 Apr 1 13:04 file4
drwxr-xr-x 1 batchcom batchcom 24 Apr 1 09:59 log
drwxr-xr-x 2 batchcom batchcom 6 Apr 1 12:57 mkdir_test
rm命令緊跟文件的路徑,表示刪除對應該路徑下的文件。
步驟2 刪除多個文件
刪除文件file3 file4
輸入:
rm file3 file4
輸入:
ls
輸出:
dir1 dir1_cp_a file1_cp_a log mkdir_test
rm 后面緊跟多個文件可以刪除多個文件。如果文件有規律,也可以使用通配符*的方式來匹配。
rm file*
步驟3 刪除文件夾
刪除文件夾dir1。
輸入:
rm -r dir1
輸入:
ls
輸出:
dir1_cp_a file1_cp_a log mkdir_test
rm默認只能刪除文件,通過參數-r可以刪除文件夾。
rm 刪除操作之后文件就丟失了,因此在操作過程中做刪除操作的時候需要多多注意待刪除的目標文件或者文件夾的路徑是否正確。
rm -r也支持刪除多個文件夾。需要在后面緊跟多個文件夾,也可以使用通配符來匹配。
文件查看
文件查看的命令主要介紹三個,一個是cat,一個是head,一個是tail。
cat命令主要是查看文件的所有內容;head用作查看文件的頭部內容;tail用作查看文件的末尾內容。
步驟1 cat查看文件
查看系統環境變量文件/etc/profile。
輸入:
cat /etc/profile
輸出:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "${PS1-}" ]; then
if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "$(id -u)" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
cat命令緊跟需要查看的文件路徑,這個路徑可以是絕對路徑也可以是相對路徑。
cat 詳細參數:
輸入:
cat --help
步驟2 head查看文件
查看環境變量文件/etc/profile前5行的信息。
輸入:
head -5 /etc/profile
輸出:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "${PS1-}" ]; then
if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
通過-5的方式來指定需要查看多少行的數據(不指定參數默認查看前10行的數據)。
head命令參數詳情:
輸入:
head --help
步驟3 tail查看文件
查看環境變量文件/etc/profile末尾5行的信息。
輸入:
tail -5 /etc/profile
輸出:
. $i
fi
done
unset i
fi
通過-5的方式來指定需要查看末尾多少行的數據(不指定參數默認查看末尾10行的數據)。
tail命令參數詳情:
輸入:
tail --help
tail 還有一個比較常用的操作是使用參數-f,可以實時監控查看的文件,文件一旦新增了內容就會將新增的內容顯示出來。
實驗小結
本次實驗通過敲擊一些常用的Linux命令來輔助學習Linux的基礎操作,主要有瀏覽文件、創建文件、文件操作,為后續的Linux高階語法奠定基礎。