/ 表示根目录
./ 表示当前目录
../ 当前目录的上一级目录
以此类推
../../ 表示当前目录的上一级的上一级的目录 更详细的Linux命令介绍请如下图所示进行查询:
/是指根目录,就和Windows的我的电脑那个位置差不多。
./是指用户所在的当前目录。
如下所示:
[root~]# cd /etc
[root etc]# pwd
/etc
[rootetc]# cd /
[root /]# pwd
/
[root /]# cd /etc
[rootetc]# cd ./
[rootetc]# pwd
/etc
[root etc]#