cp -avx * /mnt will miss any dotfiles/dirs in the root directory cp -avx / /mnt will get everything on the root file system Alan Dayley spoke forth with the blessed manuscript: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I found this question an interesting exercise to answer. It is a real > question that came up the other day. > > You are logged in as root in a bash shell. You issued the following > commands: > > mount /dev/sda1 /mnt > cd / > > Your goal is to copy your current file and directory structure onto the > sda1 partition. You can issue one of two commands. > > A. cp -avx * /mnt > B. cp -avx / /mnt > > Quiz: Describe the difference between the results you will get from each > of the above commands, A and B. Which will accomplish the stated goal? > > (Behold, the power of the Linux command line!) > > Alan > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.6 (GNU/Linux) > > iD8DBQFDEPSiDQw/VSQuFZYRAmJvAJ9V0aV2wZz2oNGbffcRcWZi7V7O3QCeK6/W > aMX1YUOOD+QSpzoW0kTPyM4= > =y6ZZ > -----END PGP SIGNATURE----- > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change you mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss