create nested directories
[root@localhost ~]# mkdir -p c1/c2/c3/c4
to check the structure
[root@localhost ~]# ls -r c1
c2
[root@localhost ~]# cd c1
[root@localhost c1]# ls -r c2
c3
[root@localhost c1]# cd c2
[root@localhost c2]# ls -r c3
c4
[root@localhost c2]# cd c3
[root@localhost c3]# ls
c4
to check the working directories
[root@localhost c4]# pwd
/root/c1/c2/c3/c4
[root@localhost ~]# mkdir -p c1/c2/c3/c4
to check the structure
[root@localhost ~]# ls -r c1
c2
[root@localhost ~]# cd c1
[root@localhost c1]# ls -r c2
c3
[root@localhost c1]# cd c2
[root@localhost c2]# ls -r c3
c4
[root@localhost c2]# cd c3
[root@localhost c3]# ls
c4
to check the working directories
[root@localhost c4]# pwd
/root/c1/c2/c3/c4
No comments:
Post a Comment