Re: Interesting pop quiz

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mike Garfias
Date:  
To: Main PLUG discussion list
Subject: Re: Interesting pop quiz
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:
>
> 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
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss