[Novalug] Elementory command line question
pereira at speakeasy.net
Sun Feb 21 09:07:06 EST 2010
cmhowe at patriot.net wrote:
> Whst's my mistake?
> I verify, using
> ls -l ./chasmhowe/*
> that my files are all there, and I also verify, using
> vi ./chasmhowe/particular-file
> that particular-file is intact. But I can't put it in the obvious place by
> cp ./chasmhowe/particular-file /chasmhowe/
> I know this because doing so generates the warning
> cp: target '/chasmhowe/' is not a target
> What should I do?
You can avoid a lot of typing by doing those commands
from the directory that the files are in, not from another directory.
Your commands are done from the directory '/home', not from your home
directory which is '/home/chasmhowe'. Your 'particular file' is already
in its obvious place, viz., the home directory.
So, do this:
(this command should put you into your home directory: verify with ls -l)
(verify that the file is still the same).
Now, I'd suggest not to leave the file in your home directory, but to make
another directory where you put all the files of this particular type, with
this particular content, or however you want to organize things. Say, you want
to call this new directory 'stuff'.
cp particular-file stuff
ls -l stuff
and you should see your 'particular-file' in the directory stuff.
called ' Bonus points for explaining why.
> Charlie the Perpetual Newbie
> Novalug mailing list
> Novalug at calypso.tux.org
More information about the Novalug