目的
这篇主要讲解一些基础的指令,大致上预计要讲的是
10. cd 指令
11. pwd 指令
开头依样是在 c槽的 Linux_test 资料夹里面测试
输入指令: cd /mnt/c/Linux_test
Linux_test 资料夹内有两个东西 test1 、 test2
cd 指令
cd 的功能用 Help 来看
输入指令: cd --help
cd --help
Change the shell working directory.
功能
更改壳工作目录
用法
用法有 2 种
相对路径说明
假设目前路径: /mnt/c/Linux_test
绝对路径说明
假设目前路径: /mnt/c/Linux_test
pwd 指令
pwd 的功能用 Help 来看
输入指令: pwd --help
pwd --help
Print the name of the current working directory.
功能
显示目前的工作目录
用法
用法有一种
测试指令
假设目前路径: /mnt/c/Linux_test
pwd