Changeset 17ca548
- Timestamp:
- 08/02/2020 05:13:12 AM (4 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- ba82c18
- Parents:
- a0de64c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/creatingdirs.xml
ra0de64c r17ca548 11 11 <title>Creating Directories</title> 12 12 13 <para>It is time to create the full structure in the LFS file system. Create 14 a standard directory tree by issuing the following commands:</para> 13 <para>It is time to create the full structure in the LFS file system.</para> 15 14 16 <screen><userinput>mkdir -pv /{bin,boot,etc/{opt,sysconfig},home,lib/firmware,mnt,opt} 17 mkdir -pv /{media/{floppy,cdrom},srv,var} 15 <para>Create some root-level directories that are not in the limited set 16 required in the previous chapters by issuing the following command:</para> 17 18 <screen><userinput>mkdir -pv /{boot,home,mnt,opt,srv}</userinput></screen> 19 20 <para>Create the required set of subdirectories below the root-level by 21 issuing the following commands:</para> 22 23 <screen><userinput>mkdir -pv /etc/{opt,sysconfig} 24 mkdir -pv /lib/firmware 25 mkdir -pv /media/{floppy,cdrom} 18 26 mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src} 19 27 mkdir -pv /usr/{,local/}share/{color,dict,doc,info,locale,man} 20 28 mkdir -pv /usr/{,local/}share/{misc,terminfo,zoneinfo} 21 29 mkdir -pv /usr/{,local/}share/man/man{1..8} 22 install -dv -m 0750 /root 23 install -dv -m 1777 /tmp /var/tmp 30 mkdir -pv /var/{cache,local,log,mail,opt,spool} 31 mkdir -pv /var/lib/{color,misc,locate} 24 32 25 mkdir -v /var/{log,mail,spool}26 33 ln -sv /run /var/run 27 34 ln -sv /run/lock /var/lock 28 mkdir -pv /var/{opt,cache,lib/{color,misc,locate},local}</userinput></screen> 35 36 install -dv -m 0750 /root 37 install -dv -m 1777 /tmp /var/tmp</userinput></screen> 29 38 30 39 <para>Directories are, by default, created with permission mode 755, but
Note:
See TracChangeset
for help on using the changeset viewer.