Interesting pop quiz
Alan Dayley
alandd at consultpros.com
Sat Aug 27 16:17:54 MST 2005
-----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-----
More information about the PLUG-discuss
mailing list