3 # Creates a standard directory tree on the current
6 mkdir
-pv {bin
,boot
,etc
/opt
,home
,lib
,mnt
,opt
}
7 mkdir
-pv {media
/{floppy
,cdrom
},sbin
,srv
,var
}
8 install -dv -m 0750 root
9 install -dv -m 1777 tmp var
/tmp
10 mkdir
-pv usr
/{,local
/}{bin
,include
,lib
,sbin
,src
}
11 mkdir
-pv usr
/{,local
/}share
/{doc
,info
,locale
,man
}
12 mkdir
-v usr
/{,local
/}share
/{misc
,terminfo
,zoneinfo
}
13 mkdir
-pv usr
/{,local
/}share
/man
/man
{1.
.8}
14 for dir
in usr usr
/local; do
15 ln -sv share
/{man
,doc
,info
} $dir
17 mkdir
-v var
/{lock
,log
,mail,run
,spool
}
18 mkdir
-pv var
/{opt
,cache
,lib
/{misc
,locate},local}