mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-23 22:42:26 +08:00
20 lines
677 B
Bash
20 lines
677 B
Bash
mkdir -pv $LIN/{bin,etc,lib,lib64,sbin,usr,var}
|
|
mkdir -pv $LIN/{boot,home,mnt,opt,srv}
|
|
mkdir -pv $LIN/usr/{,local/}{bin,sbin,include,lib,src}
|
|
mkdir -pv $LIN/{dev,proc,sys,run}
|
|
|
|
mkdir -pv $LIN/etc/{opt,sysconfig}
|
|
mkdir -pv $LIN/lib/firmware
|
|
mkdir -pv $LIN/media/{floppy,cdrom}
|
|
mkdir -pv $LIN/usr/{,local/}share/{color,dict,doc,info,locale,man}
|
|
mkdir -pv $LIN/usr/{,local/}share/{misc,terminfo,zoneinfo}
|
|
mkdir -pv $LIN/usr/{,local/}share/man/man{1..8}
|
|
mkdir -pv $LIN/var/{cache,local,log,mail,opt,spool}
|
|
mkdir -pv $LIN/var/lib/{color,misc,locate}
|
|
|
|
ln -sfv /run $LIN/var/run
|
|
ln -sfv /run/lock $LIN/var/lock
|
|
|
|
install -dv -m 0750 $LIN/root
|
|
install -dv -m 1777 $LIN/tmp $LIN/var/tmp
|