Basic Class 2
Basic Class 2
┌──────────────────────────────────────────────
────────────────────────┐
│ • MobaXterm Personal Edition
v22.1 • │
│ (SSH client, X server and netwo
rk tools) │
│
│
│ ⮞ SSH session to [email protected]
│
│ • Direct SSH : ✓
│
│ • SSH compression : ✓
│
│ • SSH-browser : ✓
│
│ • X11-forwarding : ✓ (remote display is
forwarded through SSH) │
│
│
│ ⮞ For more info, ctrl+click on help or visit
our website. │
└──────────────────────────────────────────────
────────────────────────┘
9 directories, 0 files
[root@server1 ~]# ls
anaconda-ks.cfg KernelTech original-ks.cfg
[root@server1 ~]# rm -rf KernelTech/
[root@server1 ~]# ls
anaconda-ks.cfg original-ks.cfg
[root@server1 ~]# tree KernelTech/
KernelTech/ [error opening dir]
0 directories, 0 files
[root@server1 ~]# mkdir -p
KernelTech/{Linux/{advlinux,linuxclstr},Aix/{hacmp,lpar},Storage/{san,netapp}
}
[root@server1 ~]# ls
anaconda-ks.cfg KernelTech original-ks.cfg
[root@server1 ~]# tree KernelTech/
KernelTech/
├── Aix
│ ├── hacmp
│ └── lpar
├── Linux
│ ├── advlinux
│ └── linuxclstr
└── Storage
├── netapp
└── san
9 directories, 0 files
[root@server1 ~]# mkdir -p
Worldcup/{India/{sachin,shewag,kohili},Pak/{malik,rizwan,babar},Aus/
{warne,ricky,smith}}
[root@server1 ~]# tree Worldcup/
Worldcup/
├── Aus
│ ├── ricky
│ ├── smith
│ └── warne
├── India
│ ├── kohili
│ ├── sachin
│ └── shewag
└── Pak
├── babar
├── malik
└── rizwan
12 directories, 0 files
[root@server1 ~]# touch Worldcup/Aus/smith/file1
[root@server1 ~]# tree Worldcup/
Worldcup/
├── Aus
│ ├── ricky
│ ├── smith
│ │ └── file1
│ └── warne
├── India
│ ├── kohili
│ ├── sachin
│ └── shewag
└── Pak
├── babar
├── malik
└── rizwan
12 directories, 1 file
[root@server1 ~]# touch Worldcup/Pak/rizwan/file2
[root@server1 ~]# tree Worldcup/
Worldcup/
├── Aus
│ ├── ricky
│ ├── smith
│ │ └── file1
│ └── warne
├── India
│ ├── kohili
│ ├── sachin
│ └── shewag
└── Pak
├── babar
├── malik
└── rizwan
└── file2
12 directories, 2 files
[root@server1 ~]# cat > Worldcup/Aus/smith/file1
Hi this is the test file.
^C
[root@server1 ~]# cat Worldcup/Aus/smith/file1
Hi this is the test file.
[root@server1 ~]# cat > Worldcup/Pak/rizwan/file2
Hi this is the test file2.
^C
[root@server1 ~]# cat Worldcup/Pak/rizwan/file2
Hi this is the test file2.
[root@server1 ~]# cd Worldcup/
[root@server1 Worldcup]# ls
Aus India Pak
[root@server1 Worldcup]# cd Pak/
[root@server1 Pak]# ls
babar malik rizwan
[root@server1 Pak]# cd babar/
[root@server1 babar]# ls
[root@server1 babar]# touch file3
[root@server1 babar]# ls
file3
[root@server1 babar]# cat > file3
Hi this is the test file3.
^C
[root@server1 babar]# cat file3
Hi this is the test file3.
[root@server1 babar]#