diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2005-09-29 20:55:40 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2005-09-29 20:55:40 +0000 |
commit | 59988921ebad528d4b2ea1a78be81f5feee490d5 (patch) | |
tree | b66eb3c3de1bbad64774418afb69989e18641765 /chapter06 | |
parent | 8c68addc8e21ceaec084545ee0ed6c983d054232 (diff) |
Add -v to commands that accept it
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6913 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/bash.xml | 2 | ||||
-rw-r--r-- | chapter06/binutils.xml | 4 | ||||
-rw-r--r-- | chapter06/bzip2.xml | 14 | ||||
-rw-r--r-- | chapter06/coreutils.xml | 10 | ||||
-rw-r--r-- | chapter06/createfiles.xml | 8 | ||||
-rw-r--r-- | chapter06/creatingdirs.xml | 38 | ||||
-rw-r--r-- | chapter06/devices.xml | 22 | ||||
-rw-r--r-- | chapter06/e2fsprogs.xml | 2 | ||||
-rw-r--r-- | chapter06/flex.xml | 4 | ||||
-rw-r--r-- | chapter06/gcc.xml | 6 | ||||
-rw-r--r-- | chapter06/glibc.xml | 8 | ||||
-rw-r--r-- | chapter06/groff.xml | 6 | ||||
-rw-r--r-- | chapter06/grub.xml | 4 | ||||
-rw-r--r-- | chapter06/gzip.xml | 12 | ||||
-rw-r--r-- | chapter06/hotplug.xml | 8 | ||||
-rw-r--r-- | chapter06/inetutils.xml | 2 | ||||
-rw-r--r-- | chapter06/kernfs.xml | 12 | ||||
-rw-r--r-- | chapter06/ncurses.xml | 10 | ||||
-rw-r--r-- | chapter06/psmisc.xml | 4 | ||||
-rw-r--r-- | chapter06/pwdgroup.xml | 4 | ||||
-rw-r--r-- | chapter06/readjusting.xml | 2 | ||||
-rw-r--r-- | chapter06/readline.xml | 10 | ||||
-rw-r--r-- | chapter06/shadow.xml | 12 | ||||
-rw-r--r-- | chapter06/udev.xml | 4 | ||||
-rw-r--r-- | chapter06/vim.xml | 2 | ||||
-rw-r--r-- | chapter06/zlib.xml | 6 |
26 files changed, 108 insertions, 108 deletions
diff --git a/chapter06/bash.xml b/chapter06/bash.xml index c9c3a70c7..ea30f786d 100644 --- a/chapter06/bash.xml +++ b/chapter06/bash.xml @@ -33,7 +33,7 @@ GCC, Glibc, Grep, Make, Ncurses, and Sed.</seg></seglistitem> <para>If you downloaded the Bash documentation tarball and wish to install HTML documentation, issue the following commands:</para> -<screen><userinput>tar -xf ../bash-doc-&bash-doc-version;.tar.gz && +<screen><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz && sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \ Makefile.in</userinput></screen> diff --git a/chapter06/binutils.xml b/chapter06/binutils.xml index e6ba783d8..b9113ff57 100644 --- a/chapter06/binutils.xml +++ b/chapter06/binutils.xml @@ -56,7 +56,7 @@ for Binutils and GCC.</para> <para>The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory:</para> -<screen><userinput>mkdir ../binutils-build +<screen><userinput>mkdir -v ../binutils-build cd ../binutils-build</userinput></screen> <para>Prepare Binutils for compilation:</para> @@ -94,7 +94,7 @@ circumstances.</para></important> <para>Install the <filename class="headerfile">libiberty</filename> header file that is needed by some packages:</para> -<screen><userinput>cp ../binutils-&binutils-version;/include/libiberty.h /usr/include</userinput></screen> +<screen><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h /usr/include</userinput></screen> </sect2> diff --git a/chapter06/bzip2.xml b/chapter06/bzip2.xml index 7470cd84f..cb750d0ef 100644 --- a/chapter06/bzip2.xml +++ b/chapter06/bzip2.xml @@ -62,7 +62,7 @@ utilities against it.</para> <userinput>make test</userinput>.</para> <para>If reinstalling Bzip2, perform -<userinput>rm -f /usr/bin/bz*</userinput> first, otherwise the following +<userinput>rm -vf /usr/bin/bz*</userinput> first, otherwise the following <command>make install</command> will fail.</para> <para>Install the programs:</para> @@ -73,12 +73,12 @@ utilities against it.</para> <filename class="directory">/bin</filename> directory, make some necessary symbolic links, and clean up:</para> -<screen><userinput>cp bzip2-shared /bin/bzip2 -cp -a libbz2.so* /lib -ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so -rm /usr/bin/{bunzip2,bzcat,bzip2} -ln -s bzip2 /bin/bunzip2 -ln -s bzip2 /bin/bzcat</userinput></screen> +<screen><userinput>cp -v bzip2-shared /bin/bzip2 +cp -av libbz2.so* /lib +ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so +rm -v /usr/bin/{bunzip2,bzcat,bzip2} +ln -sv bzip2 /bin/bunzip2 +ln -sv bzip2 /bin/bzcat</userinput></screen> </sect2> diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml index e1fe8dca3..3bfeb4ccd 100644 --- a/chapter06/coreutils.xml +++ b/chapter06/coreutils.xml @@ -89,17 +89,17 @@ groups:</para> <para>Move programs to the locations specified by the FHS:</para> -<screen><userinput>mv /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin -mv /usr/bin/{false,hostname,ln,ls,mkdir,mknod,mv,pwd,rm} /bin -mv /usr/bin/{rmdir,stty,sync,true,uname} /bin -mv /usr/bin/chroot /usr/sbin</userinput></screen> +<screen><userinput>mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin +mv -v /usr/bin/{false,hostname,ln,ls,mkdir,mknod,mv,pwd,rm} /bin +mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin +mv -v /usr/bin/chroot /usr/sbin</userinput></screen> <para>Some of the scripts in the LFS-Bootscripts package depend on <command>head</command> and <command>sleep</command>. As <filename class="directory">/usr</filename> may not be available during the early stages of booting, those binaries need to be on the root partition:</para> -<screen><userinput>mv /usr/bin/{head,sleep} /bin</userinput></screen> +<screen><userinput>mv -v /usr/bin/{head,sleep} /bin</userinput></screen> </sect2> diff --git a/chapter06/createfiles.xml b/chapter06/createfiles.xml index 164e165c9..734fedc33 100644 --- a/chapter06/createfiles.xml +++ b/chapter06/createfiles.xml @@ -12,10 +12,10 @@ order to satisfy these programs, create a number of symbolic links which will be replaced by real files throughout the course of this chapter after the software has been installed.</para> -<screen><userinput>ln -s /tools/bin/{bash,cat,pwd,stty} /bin -ln -s /tools/bin/perl /usr/bin -ln -s /tools/lib/libgcc_s.so{,.1} /usr/lib -ln -s bash /bin/sh</userinput></screen> +<screen><userinput>ln -sv /tools/bin/{bash,cat,pwd,stty} /bin +ln -sv /tools/bin/perl /usr/bin +ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib +ln -sv bash /bin/sh</userinput></screen> </sect1> diff --git a/chapter06/creatingdirs.xml b/chapter06/creatingdirs.xml index d877aba4a..a007df15e 100644 --- a/chapter06/creatingdirs.xml +++ b/chapter06/creatingdirs.xml @@ -10,25 +10,25 @@ <para>It is time to create some structure in the LFS file system. Create a standard directory tree by issuing the following commands:</para> -<screen><userinput>install -d /{bin,boot,dev,etc/opt,home,lib,mnt} -install -d /{sbin,srv,usr/local,var,opt} -install -d /root -m 0750 -install -d /tmp /var/tmp -m 1777 -install -d /media/{floppy,cdrom} -install -d /usr/{bin,include,lib,sbin,share,src} -ln -s share/{man,doc,info} /usr -install -d /usr/share/{doc,info,locale,man} -install -d /usr/share/{misc,terminfo,zoneinfo} -install -d /usr/share/man/man{1..8} -install -d /usr/local/{bin,etc,include,lib,sbin,share,src} -ln -s share/{man,doc,info} /usr/local -install -d /usr/local/share/{doc,info,locale,man} -install -d /usr/local/share/{misc,terminfo,zoneinfo} -install -d /usr/local/share/man/man{1,2,3,4,5,6,7,8} -install -d /var/{lock,log,mail,run,spool} -install -d /var/{opt,cache,lib/{misc,locate},local} -install -d /opt/{bin,doc,include,info} -install -d /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen> +<screen><userinput>install -dv /{bin,boot,dev,etc/opt,home,lib,mnt} +install -dv /{sbin,srv,usr/local,var,opt} +install -dv /root -m 0750 +install -dv /tmp /var/tmp -m 1777 +install -dv /media/{floppy,cdrom} +install -dv /usr/{bin,include,lib,sbin,share,src} +ln -sv share/{man,doc,info} /usr +install -dv /usr/share/{doc,info,locale,man} +install -dv /usr/share/{misc,terminfo,zoneinfo} +install -dv /usr/share/man/man{1..8} +install -dv /usr/local/{bin,etc,include,lib,sbin,share,src} +ln -sv share/{man,doc,info} /usr/local +install -dv /usr/local/share/{doc,info,locale,man} +install -dv /usr/local/share/{misc,terminfo,zoneinfo} +install -dv /usr/local/share/man/man{1,2,3,4,5,6,7,8} +install -dv /var/{lock,log,mail,run,spool} +install -dv /var/{opt,cache,lib/{misc,locate},local} +install -dv /opt/{bin,doc,include,info} +install -dv /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen> <para>Directories are, by default, created with permission mode 755, but this is not desirable for all directories. In the commands above, diff --git a/chapter06/devices.xml b/chapter06/devices.xml index 87bfd6a32..da4af0a17 100644 --- a/chapter06/devices.xml +++ b/chapter06/devices.xml @@ -37,7 +37,7 @@ accessed. This is generally done during the boot process. Since this new system has not been booted, it is necessary to do what the LFS-Bootscripts package would otherwise do by mounting <filename class="directory">/dev</filename>:</para> -<screen><userinput>mount -n -t tmpfs none /dev</userinput></screen> +<screen><userinput>mount -nvt tmpfs none /dev</userinput></screen> <para>The Udev package is what actually creates the devices in the <filename class="directory">/dev</filename> directory. Since it will not be installed @@ -51,26 +51,26 @@ mknod -m 666 /dev/ptmx c 5 2 mknod -m 666 /dev/tty c 5 0 mknod -m 444 /dev/random c 1 8 mknod -m 444 /dev/urandom c 1 9 -chown root:tty /dev/{console,ptmx,tty}</userinput></screen> +chown -v root:tty /dev/{console,ptmx,tty}</userinput></screen> <para>There are some symlinks and directories required by LFS that are created during system startup by the LFS-Bootscripts package. Since this is a chroot environment and not a booted environment, those symlinks and directories need to be created here:</para> -<screen><userinput>ln -s /proc/self/fd /dev/fd -ln -s /proc/self/fd/0 /dev/stdin -ln -s /proc/self/fd/1 /dev/stdout -ln -s /proc/self/fd/2 /dev/stderr -ln -s /proc/kcore /dev/core -mkdir /dev/pts -mkdir /dev/shm</userinput></screen> +<screen><userinput>ln -sv /proc/self/fd /dev/fd +ln -sv /proc/self/fd/0 /dev/stdin +ln -sv /proc/self/fd/1 /dev/stdout +ln -sv /proc/self/fd/2 /dev/stderr +ln -sv /proc/kcore /dev/core +mkdir -v /dev/pts +mkdir -v /dev/shm</userinput></screen> <para>Finally, mount the proper virtual (kernel) file systems on the newly-created directories:</para> -<screen><userinput>mount -t devpts -o gid=4,mode=620 none /dev/pts -mount -t tmpfs none /dev/shm</userinput></screen> +<screen><userinput>mount -vt devpts -o gid=4,mode=620 none /dev/pts +mount -vt tmpfs none /dev/shm</userinput></screen> <para>The <command>mount</command> commands executed above may result in the following warning message:</para> diff --git a/chapter06/e2fsprogs.xml b/chapter06/e2fsprogs.xml index 24ccd9629..d2cf6d0f9 100644 --- a/chapter06/e2fsprogs.xml +++ b/chapter06/e2fsprogs.xml @@ -35,7 +35,7 @@ Diffutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo</seg></seglis <para>It is recommended that E2fsprogs be built in a subdirectory of the source tree: </para> -<screen><userinput>mkdir build +<screen><userinput>mkdir -v build cd build</userinput></screen> <para>Prepare E2fsprogs for compilation:</para> diff --git a/chapter06/flex.xml b/chapter06/flex.xml index 475745fdb..cf59db946 100644 --- a/chapter06/flex.xml +++ b/chapter06/flex.xml @@ -62,7 +62,7 @@ default page is fine, so make sure it does not get regenerated:</para> class="directory">/usr/lib</filename>. Create a symlink to account for this:</para> -<screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen> +<screen><userinput>ln -sv libfl.a /usr/lib/libl.a</userinput></screen> <para>A few programs do not know about <command>flex</command> yet and try to run its predecessor, <command>lex</command>. To support those @@ -77,7 +77,7 @@ exec /usr/bin/flex -l "$@" # End /usr/bin/lex</literal> EOF -chmod 755 /usr/bin/lex</userinput></screen> +chmod -v 755 /usr/bin/lex</userinput></screen> </sect2> diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index de204c1f4..2e28c9ff1 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -56,7 +56,7 @@ Non-bootstrap builds omit this flag by default, so apply the following <para>The GCC documentation recommends building GCC outside of the source directory in a dedicated build directory:</para> -<screen><userinput>mkdir ../gcc-build +<screen><userinput>mkdir -v ../gcc-build cd ../gcc-build</userinput></screen> <para>Prepare GCC for compilation:</para> @@ -90,12 +90,12 @@ refer back to them as necessary.</para> <filename class="directory">/lib</filename> directory. To support those packages, create this symlink:</para> -<screen><userinput>ln -s ../usr/bin/cpp /lib</userinput></screen> +<screen><userinput>ln -sv ../usr/bin/cpp /lib</userinput></screen> <para>Many packages use the name <command>cc</command> to call the C compiler. To satisfy those packages, create a symlink:</para> -<screen><userinput>ln -s gcc /usr/bin/cc</userinput></screen> +<screen><userinput>ln -sv gcc /usr/bin/cc</userinput></screen> <note><para>At this point, it is strongly recommended to repeat the sanity check performed earlier in this chapter. Refer back to <xref diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index 4f142cca4..c8847411a 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -60,7 +60,7 @@ of achieving a clean build.</para> threading libraries installed by Glibc. Unpack the tarball from within the Glibc source directory:</para> -<screen><userinput>tar -xf ../glibc-linuxthreads-&glibc-version;.tar.bz2</userinput></screen> +<screen><userinput>tar -xvf ../glibc-linuxthreads-&glibc-version;.tar.bz2</userinput></screen> <para>Glibc has two tests which fail when the running kernel is 2.6.11 or later. The problem has been determined to be with the tests themselves, not with the @@ -84,7 +84,7 @@ tests on x86 processors when compiled with GCC-&gcc-version;:</para> <para>The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory:</para> -<screen><userinput>mkdir ../glibc-build +<screen><userinput>mkdir -v ../glibc-build cd ../glibc-build</userinput></screen> <para>Prepare Glibc for compilation:</para> @@ -177,7 +177,7 @@ instructions, instead of the <parameter>install-locales</parameter> target used above, will install the minimum set of locales necessary for the tests to run successfully:</para> -<screen><userinput>mkdir -p /usr/lib/locale +<screen><userinput>mkdir -pv /usr/lib/locale localedef -i de_DE -f ISO-8859-1 de_DE localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro localedef -i en_HK -f ISO-8859-1 en_HK @@ -256,7 +256,7 @@ will output the name of the time zone (e.g., Then create the <filename>/etc/localtime</filename> file by running:</para> -<screen><userinput>cp --remove-destination /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \ +<screen><userinput>cp -v --remove-destination /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \ /etc/localtime</userinput></screen> <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone diff --git a/chapter06/groff.xml b/chapter06/groff.xml index c413cae8b..fd4d7edfe 100644 --- a/chapter06/groff.xml +++ b/chapter06/groff.xml @@ -50,9 +50,9 @@ to contain the default paper size. For users in the United States, <para>Some documentation programs, such as <command>xman</command>, will not work properly without the following symlinks:</para> -<screen><userinput>ln -s soelim /usr/bin/zsoelim -ln -s eqn /usr/bin/geqn -ln -s tbl /usr/bin/gtbl</userinput></screen> +<screen><userinput>ln -sv soelim /usr/bin/zsoelim +ln -sv eqn /usr/bin/geqn +ln -sv tbl /usr/bin/gtbl</userinput></screen> </sect2> diff --git a/chapter06/grub.xml b/chapter06/grub.xml index 141e3bff6..f09338818 100644 --- a/chapter06/grub.xml +++ b/chapter06/grub.xml @@ -51,8 +51,8 @@ unset them when building GRUB.</para> <para>Install the package:</para> <screen><userinput>make install -mkdir /boot/grub -cp /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen> +mkdir -v /boot/grub +cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen> <para>Replace <filename class="directory">i386-pc</filename> with whatever directory is appropriate for the hardware in use.</para> diff --git a/chapter06/gzip.xml b/chapter06/gzip.xml index ecb86a835..3f15e0112 100644 --- a/chapter06/gzip.xml +++ b/chapter06/gzip.xml @@ -59,12 +59,12 @@ that the new location gets placed into the script:</para> class="directory">/bin</filename> directory and create some commonly used symlinks to it:</para> -<screen><userinput>mv /usr/bin/gzip /bin -rm /usr/bin/{gunzip,zcat} -ln -s gzip /bin/gunzip -ln -s gzip /bin/zcat -ln -s gzip /bin/compress -ln -s gunzip /bin/uncompress</userinput></screen> +<screen><userinput>mv -v /usr/bin/gzip /bin +rm -v /usr/bin/{gunzip,zcat} +ln -sv gzip /bin/gunzip +ln -sv gzip /bin/zcat +ln -sv gzip /bin/compress +ln -sv gunzip /bin/uncompress</userinput></screen> </sect2> diff --git a/chapter06/hotplug.xml b/chapter06/hotplug.xml index 9af9cefbe..cf08575fa 100644 --- a/chapter06/hotplug.xml +++ b/chapter06/hotplug.xml @@ -40,22 +40,22 @@ running kernel.</para> <para>Copy a file that the <quote>install</quote> target omits.</para> -<screen><userinput>cp etc/hotplug/pnp.distmap /etc/hotplug</userinput></screen> +<screen><userinput>cp -v etc/hotplug/pnp.distmap /etc/hotplug</userinput></screen> <para>Remove the init script that Hotplug installs since we are going to be using the script included in the LFS-Bootscripts package:</para> -<screen><userinput>rm -rf /etc/init.d</userinput></screen> +<screen><userinput>rm -rfv /etc/init.d</userinput></screen> <para>Network device hotplugging is not yet supported by the LFS-Bootscripts package. For that reason, remove the network hotplug agent:</para> -<screen><userinput>rm -f /etc/hotplug/net.agent</userinput></screen> +<screen><userinput>rm -fv /etc/hotplug/net.agent</userinput></screen> <para>Create a directory for storing firmware that can be loaded by <command>hotplug</command>:</para> -<screen><userinput>mkdir /lib/firmware</userinput></screen> +<screen><userinput>mkdir -v /lib/firmware</userinput></screen> </sect2> diff --git a/chapter06/inetutils.xml b/chapter06/inetutils.xml index c8251c5c2..568476c89 100644 --- a/chapter06/inetutils.xml +++ b/chapter06/inetutils.xml @@ -97,7 +97,7 @@ servers.</para></listitem> <para>Move the <command>ping</command> program to its FHS-compliant place:</para> -<screen><userinput>mv /usr/bin/ping /bin</userinput></screen> +<screen><userinput>mv -v /usr/bin/ping /bin</userinput></screen> </sect2> diff --git a/chapter06/kernfs.xml b/chapter06/kernfs.xml index eb6bba52f..34273b7b2 100644 --- a/chapter06/kernfs.xml +++ b/chapter06/kernfs.xml @@ -13,12 +13,12 @@ used for them. The content of the file systems resides in memory.</para> <para>Begin by creating directories onto which the file systems will be mounted:</para> -<screen><userinput>mkdir -p $LFS/{proc,sys}</userinput></screen> +<screen><userinput>mkdir -pv $LFS/{proc,sys}</userinput></screen> <para>Now mount the file systems:</para> -<screen><userinput>mount -t proc proc $LFS/proc -mount -t sysfs sysfs $LFS/sys</userinput></screen> +<screen><userinput>mount -vt proc proc $LFS/proc +mount -vt sysfs sysfs $LFS/sys</userinput></screen> <para>Remember that if for any reason you stop working on the LFS system and start again later, it is important to check that these file @@ -29,9 +29,9 @@ environment.</para> chroot environment. To keep the host up to date, perform a <quote>fake mount</quote> for each of these now:</para> -<screen><userinput>mount -f -t tmpfs tmpfs $LFS/dev -mount -f -t tmpfs tmpfs $LFS/dev/shm -mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts</userinput></screen> +<screen><userinput>mount -vft tmpfs tmpfs $LFS/dev +mount -vft tmpfs tmpfs $LFS/dev/shm +mount -vft devpts -o gid=4,mode=620 devpts $LFS/dev/pts</userinput></screen> </sect1> diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml index 33ff5341d..f01229256 100644 --- a/chapter06/ncurses.xml +++ b/chapter06/ncurses.xml @@ -47,22 +47,22 @@ Gawk, GCC, Glibc, Grep, Make, and Sed</seg></seglistitem> <para>Give the Ncurses libraries execute permissions:</para> -<screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen> +<screen><userinput>chmod -v 755 /usr/lib/*.&ncurses-version;</userinput></screen> <para>Fix a library that should not be executable:</para> -<screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen> +<screen><userinput>chmod -v 644 /usr/lib/libncurses++.a</userinput></screen> <para>Move the libraries to the <filename class="directory">/lib</filename> directory, where they are expected to reside:</para> -<screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen> +<screen><userinput>mv -v /usr/lib/libncurses.so.5* /lib</userinput></screen> <para>Because the libraries have been moved, a few symlinks point to non-existent files. Recreate those symlinks:</para> -<screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so -ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen> +<screen><userinput>ln -sfv ../../lib/libncurses.so.5 /usr/lib/libncurses.so +ln -sfv libncurses.so /usr/lib/libcurses.so</userinput></screen> </sect2> diff --git a/chapter06/psmisc.xml b/chapter06/psmisc.xml index 6952268a1..f9824b2e8 100644 --- a/chapter06/psmisc.xml +++ b/chapter06/psmisc.xml @@ -61,7 +61,7 @@ package.</para></listitem> class="directory">/bin</filename>. Therefore, move them to <filename class="directory">/usr/bin</filename>:</para> -<screen><userinput>mv /bin/pstree* /usr/bin</userinput></screen> +<screen><userinput>mv -v /bin/pstree* /usr/bin</userinput></screen> <para>By default, Psmisc's <command>pidof</command> program is not installed. This usually is not a problem because it is installed later @@ -70,7 +70,7 @@ in the Sysvinit package, which provides a better particular system, complete the installation of Psmisc by creating the following symlink:</para> -<screen><userinput>ln -s killall /bin/pidof</userinput></screen> +<screen><userinput>ln -sv killall /bin/pidof</userinput></screen> </sect2> diff --git a/chapter06/pwdgroup.xml b/chapter06/pwdgroup.xml index 66ed175bd..418da1982 100644 --- a/chapter06/pwdgroup.xml +++ b/chapter06/pwdgroup.xml @@ -84,8 +84,8 @@ do not already exist. Initialize the log files and give them proper permissions:</para> <screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} -chgrp utmp /var/run/utmp /var/log/lastlog -chmod 664 /var/run/utmp /var/log/lastlog</userinput></screen> +chgrp -v utmp /var/run/utmp /var/log/lastlog +chmod -v 664 /var/run/utmp /var/log/lastlog</userinput></screen> <para>The <filename>/var/run/utmp</filename> file records the users that are currently logged in. The <filename>/var/log/wtmp</filename> diff --git a/chapter06/readjusting.xml b/chapter06/readjusting.xml index 7c11d9333..9a24e7597 100644 --- a/chapter06/readjusting.xml +++ b/chapter06/readjusting.xml @@ -97,7 +97,7 @@ the process.</para> <para>Once everything is working correctly, clean up the test files:</para> -<screen><userinput>rm dummy.c a.out</userinput></screen></caution> +<screen><userinput>rm -v dummy.c a.out</userinput></screen></caution> </sect1> diff --git a/chapter06/readline.xml b/chapter06/readline.xml index f3180a46d..f9ba2bb2a 100644 --- a/chapter06/readline.xml +++ b/chapter06/readline.xml @@ -61,19 +61,19 @@ includes other fixes recommended by the Readline author.</para> <para>Give Readline's dynamic libraries more appropriate permissions:</para> -<screen><userinput>chmod 755 /lib/lib{readline,history}.so*</userinput></screen> +<screen><userinput>chmod -v 755 /lib/lib{readline,history}.so*</userinput></screen> <para>Now move the static libraries to a more appropriate location:</para> -<screen><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen> +<screen><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen> <para>Next, remove the <filename class="extension">.so</filename> files in <filename class="directory">/lib</filename> and relink them into <filename class="directory">/usr/lib</filename>.</para> -<screen><userinput>rm /lib/lib{readline,history}.so -ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so -ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen> +<screen><userinput>rm -v /lib/lib{readline,history}.so +ln -sfv ../../lib/libreadline.so.5 /usr/lib/libreadline.so +ln -sfv ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen> </sect2> diff --git a/chapter06/shadow.xml b/chapter06/shadow.xml index a0a64b899..8b0ad56d7 100644 --- a/chapter06/shadow.xml +++ b/chapter06/shadow.xml @@ -60,7 +60,7 @@ files:</para> <indexterm zone="shadow-limits-login_access"><primary sortas="e-/etc/limits">/etc/limits</primary></indexterm> <indexterm zone="shadow-limits-login_access"><primary sortas="e-/etc/login.access">/etc/login.access</primary></indexterm> -<screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen> +<screen><userinput>cp -v etc/{limits,login.access} /etc</userinput></screen> <para id="shadow-login_defs">Instead of using the default <emphasis>crypt</emphasis> method, use the more secure <emphasis>MD5</emphasis> method of password @@ -86,20 +86,20 @@ the <command>sed</command> given below:</para> <para>Move a misplaced program to its proper location:</para> -<screen><userinput>mv /usr/bin/passwd /bin</userinput></screen> +<screen><userinput>mv -v /usr/bin/passwd /bin</userinput></screen> <para>Move Shadow's libraries to more appropriate locations:</para> -<screen><userinput>mv /lib/libshadow.*a /usr/lib -rm /lib/libshadow.so -ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen> +<screen><userinput>mv -v /lib/libshadow.*a /usr/lib +rm -v /lib/libshadow.so +ln -sfv ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen> <para>The <parameter>-D</parameter> option of the <command>useradd</command> program requires the <filename class="directory">/etc/default</filename> directory for it to work properly:</para> -<screen><userinput>mkdir /etc/default</userinput></screen> +<screen><userinput>mkdir -v /etc/default</userinput></screen> </sect2> diff --git a/chapter06/udev.xml b/chapter06/udev.xml index d1e7d8291..a3f16876e 100644 --- a/chapter06/udev.xml +++ b/chapter06/udev.xml @@ -44,11 +44,11 @@ <para>Udev's configuration is far from ideal by default, so install the configuration files here:</para> -<screen><userinput>cp ../udev-config-3.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen> +<screen><userinput>cp -v ../udev-config-3.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen> <para>Install the documentation that explains how to create Udev rules:</para> -<screen><userinput>install -m644 -D docs/writing_udev_rules/index.html /usr/share/doc/udev-&udev-version;/index.html</userinput></screen> +<screen><userinput>install -m644 -D -v docs/writing_udev_rules/index.html /usr/share/doc/udev-&udev-version;/index.html</userinput></screen> <!-- Edit Me --> <para>Run the <command>udevstart</command> program to create our full diff --git a/chapter06/vim.xml b/chapter06/vim.xml index 299ea6e23..9a03c9b3c 100644 --- a/chapter06/vim.xml +++ b/chapter06/vim.xml @@ -87,7 +87,7 @@ redirecting the output to a log file.</para> when users habitually enter <command>vi</command>, create a symlink:</para> -<screen><userinput>ln -s vim /usr/bin/vi</userinput></screen> +<screen><userinput>ln -sv vim /usr/bin/vi</userinput></screen> <para>If an X Window System is going to be installed on the LFS system, it may be necessary to recompile Vim after installing X. Vim diff --git a/chapter06/zlib.xml b/chapter06/zlib.xml index c11a41f62..9e5369adf 100644 --- a/chapter06/zlib.xml +++ b/chapter06/zlib.xml @@ -57,8 +57,8 @@ class="extension">.so</filename> file in <filename class="directory">/lib</filename>. We will remove it and relink it into <filename class="directory">/usr/lib</filename>:</para> -<screen><userinput>rm /lib/libz.so -ln -sf ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen> +<screen><userinput>rm -v /lib/libz.so +ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen> <para>Build the static library:</para> @@ -75,7 +75,7 @@ make</userinput></screen> <para>Fix the permissions on the static library:</para> -<screen><userinput>chmod 644 /usr/lib/libz.a</userinput></screen> +<screen><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen> </sect2> |