chap6 creating directories

Robert Connolly robert at linuxfromscratch.org
Fri Apr 16 18:48:30 PDT 2004


Anyone have opinions about using install(1) (/usr/bin/install) instead of 
mkdir and chmod for creating directories. For example:

mkdir -p /{root,sbin,tmp,usr/local,var,opt}
mkdir -p /var/{tmp,opt,cache,lib/misc,local}
chmod 0750 /root
chmod 1777 /tmp /var/tmp
vs
install -d /{sbin,usr/local,var,opt}
install -m 0750 -d /root
install -m 1777 -d /{tmp,var/tmp}

It doesn't save us much/anything but I think it has better style or use of the 
available applications. Install() could also be used instead of touch().




More information about the hlfs-dev mailing list