[root@iterbest temp]# echo {a,b,c}
a b c
[root@iterbest temp]# echo user{1,5,8}
user1 user5 user8
[root@iterbest temp]# echo {0..10}
0 1 2 3 4 5 6 7 8 9 10
[root@iterbest temp]# echo {0..10..2}
0 2 4 6 8 10
[root@iterbest temp]# echo a{2..-1}
a2 a1 a0 a-1
[root@iterbest temp]# ls
passwd
[root@iterbest temp]# mkdir {dir1,dir2,dir3}
[root@iterbest temp]# ls
dir1 dir2 dir3 passwd
[root@iterbest temp]# ls -ld dir{1,2,3}
drwxr-xr-x. 2 root root 4096 Dec 26 21:41 dir1
drwxr-xr-x. 2 root root 4096 Dec 26 21:41 dir2
drwxr-xr-x. 2 root root 4096 Dec 26 21:41 dir3
[root@iterbest temp]# chmod 777 dir{1,2}
[root@iterbest temp]# ls
dir1 dir2 dir3 passwd
网友评论