Lx4U-book/docs/scripts/classic-file-system.sh
2021-11-04 19:24:31 +03:00

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