1.创建/tmp目录下的:a_c,a_b,b_c,b_d
[root@foundation0 tmp]# touch {a,b}_{c,d}
[root@foundation0 tmp]# ls
a_c a_d b_c b_d
2.创建/tmp/mylinux目录下的
myliunx/
├── bin
├── boot
│ └── grub
├── dev
├── etc
│ ├── rc.d
│ │ └── init.d
│ └── sysconfig
│ └── network-scripts
├── lib
│ └── modules
├── lib64
├── proc
├── sbin
├── sys
├── tmp
├── usr
│ └── local
│ ├── bin
│ └── sbin
└── var
├── lock
├── log
└── run
mkdir /tmp/myliunx cd /tmp/myliunx
mkdir bin boot dev etc lib lib64 proc sbin sys tmp usr var lock log ru
mkdir /tmp/myliunx/boot/grub mkdir /tmp/myliunx/etc/rc.d/init.d
mkdir /tmp/myliunx/etc/sysconfig/network-scripts
mkdir /tmp/myliunx/lib/modules mkdir /tmp/myliunx/usr/local/{bin,sbin}
或 mkdir -p /tmp/mylinux/{bin,boot/grub,dev,etc/{rc.d/init.d,sysconfig/network-scripts},lib/modules,lib64,proc,sbin,sys,tmp,usr/local/{bin,sbin},var,lock,log,run}